473,387 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Executing a url within a php script

Hi,

What is the best way of triggering another script (through a url)
within a background php script?

I have a script whatever.php that gets called in the background by a
mobile operator. Within this script I need to trigger another script
through a url (this in turn sends out a SMS to a mobilephone). Eg,
none of these gets executed in a browser.

I thought file_get_contents would do the trick but apparently not.. :(

Thanks!
Feb 4 '08 #1
3 1687
What is the best way of triggering another script (through a url)
within a background php script?
CURL?
Feb 4 '08 #2
On 4 Feb, 15:57, e...@tigerbuck.com wrote:
Hi,

What is the best way of triggering another script (through a url)
within a background php script?

I have a script whatever.php that gets called in the background by a
mobile operator. Within this script I need to trigger another script
through a url (this in turn sends out a SMS to a mobilephone). Eg,
none of these gets executed in a browser.

I thought file_get_contents would do the trick but apparently not.. :(

Thanks!
It should do - read up on safe_mode, file_wrappers etc.

(or use CURL)

C.
Feb 5 '08 #3
NC
On Feb 4, 7:57 am, e...@tigerbuck.com wrote:
>
What is the best way of triggering another script (through a url)
within a background php script?

I have a script whatever.php that gets called in the background by a
mobile operator. Within this script I need to trigger another script
through a url (this in turn sends out a SMS to a mobilephone). Eg,
none of these gets executed in a browser.

I thought file_get_contents would do the trick but apparently not.. :(
Check allow_url_fopen setting on your system. If it's off, your
scripts are not allowed to access remote files.

Cheers,
NC
Feb 6 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TheDustbustr | last post by:
I'm writing a game in C++ that calls out to Python for scripting. The C++ kernel holds an instance of ScriptCtl and calls the load(filename) method to load a script, then run() to run all loaded...
18
by: Brad Pears | last post by:
Can someone give me some sample code on how one would go about executing a command line "command" from within an ASP form? We need to run an application called GnuPG which allows us to encrypt an...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
5
by: reycri | last post by:
Hi, I need to be able to do this: var func = new Function("var me = <selfRef>; alert(me.params);"); func.params = "This is a test parameter"; window.setTimeout(func, 500); Basically, I...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.