Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

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 Codewalkers Forums Sponsor:
  #1  
Old June 14th, 2002, 12:09 PM
geekmug geekmug is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 geekmug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to geekmug Send a message via AIM to geekmug
Problems as a webpage

My script runs fine when you run it from the command line and redirect the output to a html file, but if you run it straight through the web server, then the output gets corrupted. I'd imagine because the output file gets too large, but do I need to work around this or not?

Reply With Quote
  #2  
Old June 14th, 2002, 12:29 PM
noda noda is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Montreal, Quebec, Canada
Posts: 20 noda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to noda
RE: Problems as a webpage

Putting header("Content-Type: image/png"); at the top of your script is a good start.

Also make sure you're running the same version of PHP on the command-line and on the web server, and make sure they're compiled with the same options.

Reply With Quote
  #3  
Old June 14th, 2002, 12:39 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Problems as a webpage

How "corrupted"? what do you expect it to show and what does it end up showing?

Reply With Quote
  #4  
Old June 14th, 2002, 01:36 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Problems as a webpage

Nothing in the rules state that the script must be runnable from a web browser...

Reply With Quote
  #5  
Old June 14th, 2002, 01:42 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Problems as a webpage

So if my script saves the image as a .png file and you run it command line style, then open the maze.png (or something) manually to see results, it won't have receive any penalty? ie. you'll only judge on the final "maze" product(whether it be html, image, whatever), not the loading screen(s), generator method, etc. etc.?

Reply With Quote
  #6  
Old June 14th, 2002, 01:47 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Problems as a webpage

Nothing in the rules state that the script must be runnable from a web browser...



Reply With Quote
  #7  
Old June 14th, 2002, 02:15 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Problems as a webpage

heh, no kidding.. ;)

Reply With Quote
  #8  
Old June 15th, 2002, 12:57 AM
geekmug geekmug is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 geekmug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to geekmug Send a message via AIM to geekmug
RE: Problems as a webpage

well, my output isn't a png image.. so that isn't the reason. But, fyi, the current gd library does have size restrictions somewhere in it. It'll truncate loading from a file past a certain byte count. But anyways, no my HTML gets borked.. it becomes random bytes in the middle of it. I think it relates to the absurb size mize I was using.. the HTML output is 1.5Mb :p

Reply With Quote
  #9  
Old June 15th, 2002, 10:17 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Problems as a webpage

hehe, geez, 1.5mb is prolly just ever so slightly big for a browser to handle That must've been one _helluva_ big maze..

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Problems as a webpage


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT