Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-12-2004, 12:56 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
execute php script from /etc/ppp/ip-up

I īve write a php script, and I want that this script to be excecuted whete the file /etc/ppp/ip-up is excecuted. So I add the line:

php /my/route/to/file/file.php

in the file etc/ppp/ip-up

But when the file etc/ppp/ip-up executes, it doesnīt executes the php script.

Does anyone know how to do this?


Old 11-12-2004, 02:19 AM   #2
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Try putting in the full path to the php binary, i.e:

/usr/local/bin/php /my/route/to/file/file.php

(depending on where it is)


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 09:09 AM
How to Execute PHP Script? notooth Linux - General 2 06-02-2005 06:43 AM
execute php script automatically? brandnewbie Linux - Newbie 1 08-14-2004 06:42 AM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 12:51 PM
execute pkzip.exe from a php script cuboctahedron Linux - General 7 04-24-2003 09:14 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration