LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-11-2004, 11:56 PM   #1
tomcontr
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?

Regars

Thomas.
 
Old 11-12-2004, 01:19 AM   #2
CroMagnon
Member
 
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)
 
  


Reply



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 08:09 AM
How to Execute PHP Script? notooth Linux - General 2 06-02-2005 05:43 AM
execute php script automatically? brandnewbie Linux - Newbie 1 08-14-2004 05:42 AM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
execute pkzip.exe from a php script cuboctahedron Linux - General 7 04-24-2003 08:14 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:44 AM.

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