PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 4th, 1999, 08:12 AM
Ramon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am using a flash form which sends data to a PHP script but I want the script to return nothing so the original page remains loaded in the browser window.

Normally when a PHP script is being parsed the browser window turns blank, when I do not return any text.

Reply With Quote
  #2  
Old December 8th, 1999, 09:11 AM
Hans
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
A simple solution is to temporarily open a small new browser window and execute the php file there. Close the window after execution and you're done. I don't think there's any way to execute a php script in the background somehow (it does have to be called by the browser, so your page will go blank anyway)

Reply With Quote
  #3  
Old December 15th, 1999, 07:31 AM
PAV
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
PHP script is parsed on the server side, so if you want PHP scripts to be executed a request to the server has to be made (i.e. (re)loading of a page).
Why not just execute the script on a reload of the original page. Put the script in the page and send the flashform outcome by a url-variable (page.php3?name="value") to trigger the script on reloading: if(isset($name)) { [execute script lines] }
After that the page just returns as it was, or you can modify it according to the outcome of the executed script. Just as you wish.

Greets, Peter

Reply With Quote
  #4  
Old December 19th, 1999, 05:11 AM
cbolt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You can listen to them, or you can do it the right way:

<?
header("HTTP/1.0 204 No Response");
?>

and nothing else.

Reply With Quote
  #5  
Old December 27th, 1999, 10:38 PM
Randy
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CBolt - You ought to write for DevShed. URL

Thanks for all your input and insight. If you're interested in talking about writing for the site, drop me a line at writers@devshed.com


Reply With Quote
  #6  
Old December 28th, 1999, 04:39 AM
nico
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
or you could load the script in a 'hidden' frame?
cbolt's solution seems to be the nicest tho.

Reply With Quote
  #7  
Old December 28th, 1999, 06:16 PM
cbolt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Randy, sorry but I'm too busy with my own site at the moment. Thanks for the offer though.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Return nothing

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap