|
Posted by Jerry Stuckle on 10/17/06 20:46
Bob Bedford wrote:
>>Some hosts let you change the timeout using ini_set, does yours?
>
> No, id doesn't allow using ini_set. (it would be too simple).
>
>
>>If not could you split the processing over two scripts?
>
> That's the way I'm looking for.
>
>
>>In the first script parse the xml file, update database, copy the image
>>to a temporary file and use $_SESSION to store the temp filename. Then
>>redirect to the second script using header('Location:') and let the 2nd
>>script finish off the resizing & database updates
>>
>>This way you have a whole twenty seconds to play with.
>
> It's there any way in PHP to execute (without using location as it changes
> page) a new page ? I don't have access to exec()...
> My idea is to manage the recording in the database then every time I've new
> images, send them to a new script. The main process will do easely in 10
> seconds then every process will redim and save the images (time consuming)
> and it may also do it in 10 seconds.
>
> Problem: I don't know how to do so (launch an other script without exec)
> passing the files (like a normal post or get will do).
>
> Bob
>
>
>
Bob,
You don't "launch another page with exec()". Rather, you redirect to
the new page with header('Location: pagename').
Just be sure you don't create any output before this. And you can save
the data you're working on in the session (or pass it as GET parameters).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|