[PHP] Date Listing
Hi everyone! Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1=2002-10-01 $date2= 2003-12-10 I want a function to list all the dates that are between these two. 2002-10-01 2002-10-02 2002-10-03 . . 2003-12-09 2003-12-10 Has anyone done something like this before. Thanks, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: So the server where you're running the PHP script can't connect to the server you specify in your include() call. So, you can now remove PHP from the problem and work on that. [...] Hope that helps. Chris Thank you Chris..i solved the problem with an etry in /etc/hosts in the webserver. Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 17:52, Chris Shiflett wrote: --- Pablo Zorzoli [EMAIL PROTECTED] wrote: ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. OK, so this proves that this method works in your environment. Given this, can you identify the differences between this code and your own? Maybe if you try to break it down into its simplest case, you will reveal some subtle error that we all missed. Cris and rest of the list, I've tried with the simlpest example: --- output.php ? echo Hello World!; ? -- test.php htmlheadtitletesing!/title/head body ?php include ('http://***.com/output.php'); ? /body/html -- The result is: I spend a lot of time waiting for the response, and i only receive a blank page with the title testing! (wich is okay), but i don't get the hello world. Any clue? Regards, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: Maybe it times out? Maybe the server where your PHP script is located cannot access the server at ***.com? Maybe the output that output.php generates isn't what you expect? Basically, because you can include Google's home page successfully, the error lies in something else. Try this from the server hosting your PHP script: wget http://***.com/output.php Then type: vi output.php Are the contents what you expect? That's it i cannot wget it from the webserver i get failed: Connection timed out. i tried to wgetit from another machine and i get the desired output. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with remote include
Hi all, I'm having trouble while i try to include a php file. the testing code is something loke the sort. html head/head body h1 test:/h1 ?php include ('http://blabla.com/script.php?var1=a'); ? /body /html script.php should echo some text, but i don't get any output. In my php.ini I have allow_url_fopen = On, is there any other thing to configure. And both scripts are under the same domain webserver. Thanks, Pablo Zorzoli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:00, Chris Shiflett wrote: When you visit http://blabla.com/script.php?var1=a and view source, what do you see? Is it valid PHP? yap, exactly. if i paste th elink i my browser i see the results expected.. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:18, CPT John W. Holmes wrote: You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into your browser. Is that what you're trying to do? yes John, tht's exactly what i want to get. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] redirect
On Wed, 2003-10-29 at 16:17, alain dhaene wrote: But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in /home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on line 30 In registratieData there is a include file to registratieFuncties.php. And in the file registratieFuncties.php there is a include file to Connecties.inc for the connectiestring to the database You cannot do any echo ; before header(location:..); maybe that's the problem. regards.. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:36, Chris Shiflett wrote: The results you expect might not be right. This doesn't help me help you. Is it valid PHP? Can you show us *exactly* what you see when you view source in your browser? i see one line containing the expected html code.The scrip is a counter that outputs the img tags to fecth the images: img src=digit4.gifimg src=digit2.gif that's all i get, and all i would like to get with the remote include. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can you tell us what something like this produces? ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php