| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Parse error; In PHP script | |
|---|---|
| Tweet Topic Started: Oct 1 2005, 02:21 PM (462 Views) | |
| SSS | Oct 1 2005, 02:21 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Hi, I am working on a Button Generator (generates code for affiliates on your website), and it requests the footer from another PHP file on the server called "Footer.php". I'm having a problem. It gives me this error on the footer of the script: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/blahblahblah/public_html/sss/scripts/Footer.php on line 13 This is line 13 of Footer.php:
The "?>" part is the closing of another script in that PHP file. I'm not really good at PHP, so I don't know what's wrong with line 13. ![]() Anyone know what's wrong with it? |
![]() |
|
| Cool Dude 2k | Oct 1 2005, 02:30 PM Post #2 |
![]()
<?php echo "Linux"; ?>
![]() ![]() ![]() ![]()
|
Try out this.
|
![]() |
|
| SSS | Oct 1 2005, 02:55 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks, that worked, but I have another problem. It reports the execution time as this: [ Script Execution time: 3E-05 secs ] instead of the correct one. How can I fix that? Nevermind, I just removed the Execution time all together. It's not really useful for this script, as it doesn't really do much to make a high creation time.
|
![]() |
|
| Jeremy | Oct 3 2005, 01:36 AM Post #4 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The execution time it was generating was so low that it put it out in exponential value. 3e-05 (i.e. 3 x 10 ^ -5). Edit: To make it show the appropriate value, you can use sprintf(). This may produce trailing zeros, though.
|
![]() |
|
| SSS | Oct 3 2005, 05:06 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
How would I go about creating a script that will check if the version of the button generator is the latest? Let's say if the latest version build is 100105. To use the version check, I would append ?v=100105 at the end of the checker URL and it would come up with this image since the version is the latest: If the version input was lower than that number (i.e. ?v=697) I would want it to come up with this image: How would I go about this? :unsure: |
![]() |
|
| Cool Dude 2k | Oct 3 2005, 07:22 PM Post #6 |
![]()
<?php echo "Linux"; ?>
![]() ![]() ![]() ![]()
|
Heres what I used. ![]() http://df2k.5gigs.com/version/Pic.html |
![]() |
|
| SSS | Oct 3 2005, 08:16 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks, that worked!
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
10:43 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)






10:43 AM Jul 11