Web Hosting Talk







View Full Version : PHP - need a way to "fork" with Godaddy


ferna084
06-13-2007, 01:47 PM
Hey guys, my current web host is Godaddy.com. I'm trying to write a Mashup with the Flickr API that will allow users to submit pictures to my Flickr premium account and also create a Photoset(album) in the process. I got it to work but the problem is that uploading on the user side, feels really slow because not only does he have to wait for the image to upload... but he has to wait for the php file to return the method calls from the Flickr API.

I found a couple of ways to to "fork" the part of the code that calls the Flickr API methods, but they require you to be able to call exec() and pcntl_fork() php functions, which sadly Godaddy.com has disabled....

Are there any other ways to do this without these functions? I think server side CGI scripts could do the trick... Also can anyone recommend a web host that gives you exec() and pcntl_fork() rights?

Thanks

Xeentech
06-13-2007, 02:16 PM
Are you allowed cron access?

You could store the uploaded images on your GoDaddy account.. then a cron handles the upload to flickr afterwards..

MysticServer
06-13-2007, 02:29 PM
You could use some AJAX tricks.. Point the form to a iframe.. and have a java script fire when the user clicks submit (or after the upload is finished)..

-Jason

ferna084
06-13-2007, 05:18 PM
I doubt I have cron rights... quick question, if I use SSI cgi includes within a PHP file... will it wait for the result from the cgi script? or just launch it and continue execution?

Burhan
06-14-2007, 01:48 AM
No, includes are a blocking function. It will wait for the include to get done before it continues.

Your only option is asynchronous calls (ie, AJAX)