nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> What Is The Path To Php?
hostingMod-NS
post Jul 17 2008, 07:38 AM
Post #1





Group: Administrators
Posts: 18
Joined: 9-May 08
Member No.: 1,114



PHP doesn't require a path. When you name your scripts .php, the server will automatically parse it if your package includes PHP.

Remember PHP is only available for the Unix platform.
Go to the top of the page
 
+Quote Post
kenn
post Aug 5 2009, 01:00 PM
Post #2





Group: Verified NS Member
Posts: 2
Joined: 5-August 09
Member No.: 4,916



QUOTE (hostingMod-NS @ Jul 17 2008, 08:56 AM) *
PHP doesn't require a path. When you name your scripts .php, the server will automatically parse it if your package includes PHP.

Remember PHP is only available for the Unix platform.


But I need to run a php script as a cron job. What path should I use for php?
Go to the top of the page
 
+Quote Post
jsaade
post Mar 12 2010, 04:52 AM
Post #3





Group: Verified NS Member
Posts: 3
Joined: 8-February 10
Member No.: 7,694



$filepath = $_SERVER['DOCUMENT_ROOT'].substr(dirname($_SERVER['SCRIPT_FILENAME']), strlen($_SERVER['DOCUMENT_ROOT']))."/";
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2010 Time is now: 18th March 2010 - 11:42 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates