Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-23-2008, 09:47 PM URGENT PHP Help!
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
After a rather time consuming and disasterous transfer from plesk to cpanel dedicated server.. I'm at the point of shooting myself.

I'm noticing some strange things, such as random mysql_num_rows returning errors like "Database not found" when some return fine..?

And then there's the other thing.. where extra slashes are being added to my $_POST data.. is this a new feature in one of the latest versions of php? Because for all my mysql variable inserts have mysql_real_escape_string.. do i need to remove those now?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
 
Register now for full access!
Old 09-24-2008, 01:17 AM Re: URGENT PHP Help!
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Do you really need control panel to run a dedicated server?

Extra slashes may be caused by some magic_gpc_quotes = on. Mysql may eventually die due to the lack of memory. You should carefully revise your php and mysql configs, tune them appropriately and restart both mysql and apache.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 09-24-2008, 06:35 AM Re: URGENT PHP Help!
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
Ok, I figured it out by myself hehe.

mysql_num_rows was caused by a previous query error further up that was hidden.

and the slashes, exactly as you said..

My question now is.. what's the standard preference? Have that magic_quotes option on or off?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 09-24-2008, 06:50 AM Re: URGENT PHP Help!
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
off, if you do not want unpredictable results
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to URGENT PHP Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13063 seconds with 12 queries