- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Problem with a php script.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 09:21 AM
тАО02-13-2006 09:21 AM
I have a php script that is malfunctioning and therefore keeping a website offline. The website was functioning but I discovered an error while creating the user guide and asked the developer to fix it.
He says he did, but I guess he didn't test it well. Now he's unavailable for a few days and I'd like to get the site back online.
The error from the error log of apache:
[client 82.81.181.6] PHP Parse error: parse error, unexpected '{' in /home/httpd/chicago50thward/htdocs/db_functions.php on line 385
[client 82.81.181.6] PHP Parse error: parse error, unexpected '{' in /home/httpd/chicago50thward/htdocs/db_functions.php on line 603
The code is attached.
The core functionality of the entire website is built into this module. At least thats what I believe.
Anyway I believe this is a simple syntax error and that someone might spot the code quickly.
I know the developer will eventually fix this, but I'm on an airplane in 54 hours and really hope I can fix this now.
TIA, 10 points for a fix that works. I will provide further information upon request.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Tags:
- PHP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 09:33 AM
тАО02-13-2006 09:33 AM
Re: Problem with a php script.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 09:53 AM
тАО02-13-2006 09:53 AM
Solutionif (mysql_escape_string(strip_tags(trim($curr_ans)))
The "if" statement isn't being closed out.
And on line #602, there is no right paren ")" closing out the mysql_escape_string() call.
if (mysql_escape_string(strip_tags(trim($curr_status)) !
= "")
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:01 AM
тАО02-13-2006 10:01 AM
Re: Problem with a php script.
I'll give it a try on Tuesday, IST.
Please feel free to add new suggestions, there is always some reward for posting to my threads.
I'm sleepy and going to act on that situation befor trying to fix it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:17 AM
тАО02-13-2006 10:17 AM
Re: Problem with a php script.
384
if (mysql_escape_string(strip_tags(trim($curr_ans))))
602
if (mysql_escape_string(strip_tags(trim($curr_status)) != ""))
New log results:
[client 82.81.181.6] PHP Parse error: parse error, unexpected '{' in /home/httpd/chicago50thward/htdocs/db_functions.php on line 385
[Mon Feb 13 16:16:42 2006] [error] [client 82.81.181.6] File does not exist: /web/chicago50thward/htdocs/favicon.ico
[client 82.81.181.6] PHP Parse error: parse error, unexpected '{' in /home/httpd/chicago50thward/htdocs/db_functions.php on line 641
I corrected an error on line 640 and.....
WALA!
Site is working.
ITRC is best. A particularly busy ITRC member needs to buy me a beer next time I'm in Tel Aviv.
Thanks a lot. Points Inbound.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:21 AM
тАО02-13-2006 10:21 AM
Re: Problem with a php script.
Something I can print and read when I want to sleep on the plane.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:30 AM
тАО02-13-2006 10:30 AM
Re: Problem with a php script.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:40 AM
тАО02-13-2006 10:40 AM
Re: Problem with a php script.
I will read the site.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 03:11 PM
тАО02-13-2006 03:11 PM
Re: Problem with a php script.
When i was managing a PHP project, many develeopers in our team used only this guide,
http://us2.php.net/distributions/manual/php_manual_en.chm
PHP manual is the best thing to start with.
http://us3.php.net/manual/en/
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 05:00 PM
тАО02-13-2006 05:00 PM
Re: Problem with a php script.
If you are having php manual then php is nothing. Hope you are great in html, perl and c. Then it is simple.
http://www.php.net/download-docs.php
Download manual to your desktop and use whenever you are getting problem with php. And more php list is veryyyy active.
--
Muthu