Web Hosting Forums Web Discussions on Hosting Webmaster forums Web Hosting Forums Domain Name Forums Web Hosting

Go Back   Web Hosting Forums Web Discussions on Hosting Webmaster forums Web Hosting Forums Domain Name Forums Web Hosting > Main Web Hosting Discussions Forums > Programming Discussion

Programming Discussion Web Hosting Forums - Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-08-2005, 05:36 AM   #1 (permalink)
Banned
Join Date: Aug 2005
Posts: 51
john_robot is on a distinguished road
Smile How to check that PHP is running and that Safe Mode is OFF !

Use notepad (or other text editor) create an ASCII text file with this line:

PHP Code:
<?php phpinfo() ?>
Save that file as test.php
Must be a text file with .php extension - NOT test.php.txt

>Upload test.php (as ASCII file) - to the server

Run test.php from the browser
e.g. www.domain.com/test.php

This will display all the php settings. Use 'find' to check the 'safe' mode section to make sure it is OFF. e.g. look under the Configuration PHP Core Table in the Directive column to see that safe mode is off.

Check that register_globals are on
Use 'find' to check that register_globals are on ! If they need to be turned on - then the settings at your host will determine the method that must be used.

For apache server, add this : php_flag register_globals on to the .htaccess file.
Create a php.ini file with this : register_globals = on; (or similar depending on your host!)
Note 1: A php.ini or a .htaccess file should be in the same directory (or a higher directory) as the script. Both are ASCII (regular text) files that must be unloaded as text files.

Note 2: To check to see if the change worked, recheck test.php (above) and look at the 'local' column to see if register_globals are now on.
john_robot is offline  
profile.gif find.gif Reply With Quote
Old Sponsored Ads   # a.
Ads
Hosting Master
Join Date: Feb 2006
Location: HWHT
Posts: 1100
Ads is on a distinguished road



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
AdsPromoter is online
profile.gif sendpm.gif email.gif find.gif buddy.gif Reply With Quote
Old 12-27-2005, 03:57 PM   #2 (permalink)
HWHT Addict
Join Date: Dec 2005
Location: At home
Posts: 37
b00nw33 is on a distinguished road
What is this safe mode, and why would you want it to be off? Would it be less secure?
b00nw33 is offline  
profile.gif sendpm.gif find.gif Reply With Quote
Old Sponsored Ads   # a.
Ads
Hosting Master
Join Date: Feb 2006
Location: HWHT
Posts: 1100
Ads is on a distinguished road



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
AdsPromoter is online
profile.gif sendpm.gif email.gif find.gif buddy.gif Reply With Quote
Old 12-28-2005, 06:34 PM   #3 (permalink)
SuperExpert
Join Date: Sep 2005
Location: Netherlands
Posts: 625
Keuzeserver is on a distinguished road
You can also use PHPDev, it will make your pc a webserver.
Its not important if you have internet or not, but you can view your php/mysql site now.
Just google for phpdev.
Good Luck
__________________
Sander Keuzenkamp
Public Relations Representative

Prosoft Studio
"Bringing Satisfaction To The Web"
http://www.prosoftstudio.com
Keuzeserver is offline  
profile.gif home.gif sendpm.gif find.gif Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.