Re: [PHP] Random Images

2003-02-05 Thread Kevin Waterson
This one time, at band camp, V Dub <[EMAIL PROTECTED]> wrote: > Tom! > > Here's one way: > or you could do something like this... Simply set the image directory and fire it up or something like that, someone is bound to show some mistakes in here but it works Kevin -- __

RE: [PHP] Powerpoint presentations?!?

2003-02-05 Thread John W. Holmes
> I've been asked to write code that will dynamically generate Microsoft > Powerpoint presentations. It has to assemble collections of pages, and > possibly substitute a word or phrase here and there (mailmerge style). > > There doesn't seem to be a published document describing Powerpoint file >

[PHP] Powerpoint presentations?!?

2003-02-05 Thread Paul Chvostek
I've been asked to write code that will dynamically generate Microsoft Powerpoint presentations. It has to assemble collections of pages, and possibly substitute a word or phrase here and there (mailmerge style). There doesn't seem to be a published document describing Powerpoint file format or

RE: [PHP] Internet Explorer cache friendly headers?

2003-02-05 Thread John W. Holmes
> Browser cache that is. > I started to use session_cache_limiter() with a value of private. It > seems to work great with > Mozilla and Opera, but IE 5 & 6 doesn't seems to handle it too well. > I have to continually refresh the page to get the latest data. > > Is anyone else experiencing this b

[PHP] Internet Explorer cache friendly headers?

2003-02-05 Thread Gerard Samuel
Browser cache that is. I started to use session_cache_limiter() with a value of private. It seems to work great with Mozilla and Opera, but IE 5 & 6 doesn't seems to handle it too well. I have to continually refresh the page to get the latest data. Is anyone else experiencing this behaviour? Are

RE: [PHP] Random Images

2003-02-05 Thread John W. Holmes
> I'm trying to set it up so that a random image from either a mysql table > or a text file list is displayed on a page each time a user goes to it. > I'm a little stumped as to how to do this with phpany suggestions? What do you have so far? ---John W. Holmes... PHP Architect - A monthly m

Re: [PHP] Random Images

2003-02-05 Thread V Dub
Tom! Here's one way: I named all of the images to display 1.jpg - 7.jpg This code is at the top of the page: I have this code where I want the image to appear: HTH VW Quoting Tom Ray <[EMAIL PROTECTED]>: ### I'm trying to set it up so that a random image from either a mysql table ### o

[PHP] Random Images

2003-02-05 Thread Tom Ray
I'm trying to set it up so that a random image from either a mysql table or a text file list is displayed on a page each time a user goes to it. I'm a little stumped as to how to do this with phpany suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] counter freezes whole site!

2003-02-05 Thread John W. Holmes
> This code is supposed to write a 24h cookie at first visit, and then > checks for it at every refresh, if the cookie doesnt exist, it increases a > counter on the DB. Simple, right? Then why did it stop working out of the > blue? It loops on the refresh, keeps thinking the cookie is not act

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Bobby Patel
try looking at the status of register_globals on both versions. "Chip Wiegand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Jason Wong <[EMAIL PROTECTED]> wrote on 02/05/2003 12:49:16 PM: > > > On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote: > > >

[PHP] counter freezes whole site!

2003-02-05 Thread Pag
Hi, I am having a serious problem on my site. It was working fine until a day ago, when it simply freezes. After i made a few checks i realized it loops on this code. I tried everything but i cant understand why and i am going crazy trying to figure it out! This code is supposed to write a 24

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote: > > 1) Read the changelog/history/release notes of all versions of php > > between the > > 4.0.3 and up to 4.2.3 > > > > 2) Check the php log (turn on full error reporting). > The log is 23 pages long and doesn't to all the way back to

RE: [PHP] empty and isset

2003-02-05 Thread Bryan Lipscy
Belay that one. I figured it out. My err. I will shut up and go back to lurk mode. So sorry, please don't flog me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] empty and isset

2003-02-05 Thread John W. Holmes
> Env: Slackware 8.1, Apache 1.3.27, PHP 4.3.0 > Bugs: None found for these issues. > > I am running to this same problem. The isset() function appears to have > problems with the empty text value. The empty() function sees the value > of $_POST['q1'] as expected. > > So why is both isset() and

Re: [PHP] empty and isset

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 13:20, Bryan Lipscy wrote: > Env: Slackware 8.1, Apache 1.3.27, PHP 4.3.0 > Bugs: None found for these issues. > > I am running to this same problem. The isset() function appears to have > problems with the empty text value. The empty() function sees the value > of $_

Re: [PHP] empty and isset

2003-02-05 Thread Sunfire
yes tnx that did work now any blank variable i need tested in that set wont show up on the list.. i have a few other bugs to work out with printing and formatting but will take care of that a little later... - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Sunfire'" <

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 07:48, Sunfire wrote: > on any server i ever dealt with if i put: > > > in the edit box for the value i always always end up with what $sent stands for..the only way i found it to work is with echo <<< but > maybe im missing something With the above you should end up

RE: [PHP] empty and isset

2003-02-05 Thread Bryan Lipscy
Env: Slackware 8.1, Apache 1.3.27, PHP 4.3.0 Bugs: None found for these issues. I am running to this same problem. The isset() function appears to have problems with the empty text value. The empty() function sees the value of $_POST['q1'] as expected. So why is both isset() and empty() retur

RE: [PHP] empty and isset

2003-02-05 Thread John W. Holmes
If(!empty($member['Areacode2']) || !empty($member['Exchange2']) || !empty($member['Number2'])) { echo $member['Areacode2'] . '-' . $member['Exchange2'] . '-' . $member['Number2']; } The mail wrapping will mess that up, but hopefully you get the idea. You're looking for Areacode2 OR Exchange2 OR N

[PHP] Re: reading CD information

2003-02-05 Thread Sreekandh
yes we can read the cd label in PHP by the following shell script dd if=/dev/cdrom bs=1 skip=32808 count=32 through shell_exec() function Adam Williams wrote: Is it possible to have PHP read cd label information? You know in windows like after you put in a CD and use Windows Explorer and go to

[PHP] PHP Database Abstraction Layer

2003-02-05 Thread Luke Woollard
I once read a great article in the first or second issue of http://www.phparch.com/ on database abstraction layers. At which point I used the tutorial as a starting point for creating a very similar structure I named dbWave. There are only minor differences and a postgresql driver is now included f

Re: [PHP] empty and isset

2003-02-05 Thread Sunfire
ok i dont know if this will help at all since the code that doesnt work wont fit in the message (got error saying i cant send that much all at once) this is what i got out of var_dump.. first set of variables: $member[Areacode1]=string(3)"123" 123 $member[Exchange1]=string(3)"123"123 $member[Number

[PHP] Re: OOP confused

2003-02-05 Thread Justin Garrett
class one{ var $prev; } class two{ var $head; function two(){ $this->head = new one(); $this->head->prev = NULL; } } Change prev which is in head which is in this to NULL. Justin Garrett "Michael P. Carel" <[EMAIL PROTECTED]> wrote in message 004001c2cd77$6af2e2

[PHP] Thanks problem solved

2003-02-05 Thread Brad Esclavon
once removed from same directory as the login page, the secured page was secure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting errors

2003-02-05 Thread Chris Shiflett
--- Brad Esclavon <[EMAIL PROTECTED]> wrote: > the secured page is viewable from the internet if i > explicitly enter the url. I have set the secured > page's permissions to 700 and the input page to 755. > even though my permissions disallow outside access, > why can you get to the secured page?

Re: [PHP] Redirecting errors

2003-02-05 Thread Leif K-Brooks
Because apache has the same access when a user requests it as when a page requests it. Try putting it outside of the web root... Brad Esclavon wrote: I have written a script that validates a username/pwd input and if usr/pwd is correct, includes the protected page, or if usr/pwd is wrong, inpu

[PHP] Redirecting errors

2003-02-05 Thread Brad Esclavon
I have written a script that validates a username/pwd input and if usr/pwd is correct, includes the protected page, or if usr/pwd is wrong, input page reloads the form onto itself with a form submit. all of the code is correct, except that the secured page is viewable from the internet if i explic

RE: [PHP] empty and isset

2003-02-05 Thread John W. Holmes
They both work, you're just not using the correct logic or something. Show your code again... your actual code that isn't working (so you say) and the form that's being submitted. Also, is register_globals on or off? Load this small bit of code as proof that it works: ---John W. Holmes...

[PHP] Re: mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
I fixed my problem. For archive purposes (as of PHP 4.3.0), to install mcrypt support you only need to install libmcrypt. No need for mcrypt, or mhash ... forget anything else you might read. The installation problem I had was indeed a bug in PHP which I am happy to say is fixed in the latest

Re: [PHP] emulate full post wth redirect

2003-02-05 Thread Jason Sheets
Take a look at curl. http://www.php.net/curl Jason On Wed, 2003-02-05 at 18:10, Shawn McKenzie wrote: > Wow, has it really been a year. No replies??? Any ideas??? Anyone??? > > Thanks! > Shawn > > "Bobby Patel" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

[PHP] emulate full post wth redirect

2003-02-05 Thread Shawn McKenzie
Wow, has it really been a year. No replies??? Any ideas??? Anyone??? Thanks! Shawn "Bobby Patel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, I want to emulate a POST request to Paypal. Originally a POST request > is sent from the user (through a f

Re: [PHP] FW: Printing

2003-02-05 Thread Jason Sheets
As long as your print system supports it any printer should work. The question should be is a LaserJet 3150 a good choice for what you need to print. Jason On Wed, 2003-02-05 at 16:03, Chris Kay wrote: > > Anyone know if a LaserJet 3150 would be a good choice to print remotely? > > -Origina

[PHP] empty and isset

2003-02-05 Thread Sunfire
i tried to use empty and isset to check and see if variables were being used in a form.. im not getting any kind of good answer from the server when i try using empty and isset... it all works the same and that is cut out anything regardless of if it was used or not... any thing to help? the docs

Re: [PHP] PHP Application Server

2003-02-05 Thread Edgar Castanedo
Thanks for your feedback. I've never worked on an open soure project until now, so I still have a lot of research to do. I guess I should save all of this for general discussions. I'll post something later, when I actually have something going. Thanks Again Manuel Lemos <[EMAIL PROTECTED]>

RE: [PHP] Reading Posted variable names

2003-02-05 Thread John W. Holmes
> I am trying to write a quick form->mail script (like Matt's) and I am > stuck > on one small part: > > form: > > > > > > > > > > > > > > > > Form.php (receiver of the form post): > foreach($_POST as $x) { > print "$x"; > } > > > Will output the values of field1, field2, etc

[PHP] PHP Application Server

2003-02-05 Thread Edgar Castanedo
I like the way php works now, but I feel that there are times when it might benefit to have an application server dedicated to php. One example is extensibility. Adding extensions to PHP can get harry, especially if you are working with multiple servers and you want to stay up to date with the

[PHP] Reading Posted variable names

2003-02-05 Thread Mike Morton
I am trying to write a quick form->mail script (like Matt's) and I am stuck on one small part: form: Form.php (receiver of the form post): foreach($_POST as $x) { print "$x"; } Will output the values of field1, field2, etc BUT - how do I get the field names on the form.php pa

Re: [PHP] PHP Application Server

2003-02-05 Thread Manuel Lemos
Hello, On 02/05/2003 09:44 PM, Edgar Castanedo wrote: Thanks for your reply. I know that this is going to be a huge task, but I am hoping that together with the nature of the Open Source community, we can build an app server which is comparable, if not better than one of the commercial app server

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > on any server i ever dealt with if i put: > > > in the edit box for the value i always always end up > with way i found it to work is with echo <<< but maybe im > missing something You are "missing" correct PHP syntax and correct HTML syntax, so I guess th

RE: [PHP] Is my syntax wrong?

2003-02-05 Thread John W. Holmes
> >> I think we are almost there. This code is not producing an error, but > >> it is also not incrementing the database. The value stays at zero. Any > >> idea what could be wrong? > >> > >> $inc_current_ad = WrapMySQLDatabaseResults("macasap", "update ads > > where > >> ad_id = ".$current_ad->Val

Re: [PHP] WYSIWYG Content Management system?

2003-02-05 Thread Hardik Doshi
Thats really great. I will keep in touch with you. If you can provide some more information regarding CMS then it would be nice. thanks in advance Hardik Baroiller Pierre-Emmanuel <[EMAIL PROTECTED]> wrote:Hi. I'm working on a CMS tool like this. It's a very hard work ... The biggest problem is

[PHP] OOP confused

2003-02-05 Thread Michael P. Carel
Hi to all; Just a little question about OOP. I'm just confused with the symbol '->' . In the article that i've red : #this reads "change the value of the variable $head within this class to black $this->head="black" #how do i read this line $this->head->prev=NULL I'm just confused with this li

Re: [PHP] Vars in URL

2003-02-05 Thread Shawn McKenzie
O.K. I found this at php.net but it doesn't seem to bring up the paypal page. I guess I am trying to simulate a form POST using headers. Any ideas??? $paypal_vars is an array of the vars and values that paypal needs. foreach($paypal_vars as $key => $value) { $value = urlencode(stripslashes

[PHP] List-Unsubscribe

2003-02-05 Thread Bruce Levick
``List-Unsubscribe''

Re: [PHP] 'superglobal'

2003-02-05 Thread Kevin Waterson
This one time, at band camp, Brian V Bonini <[EMAIL PROTECTED]> wrote: > They're not working, that's why I ask... Is my PHP version too old? sure is, update to 4.3.0 and it will work fine or... use $HTTP_SERVER_VARS Kevin -- __ (_ \

Re: [PHP] 'superglobal'

2003-02-05 Thread Brian V Bonini
On Wed, 2003-02-05 at 19:04, Kevin Waterson wrote: > This one time, at band camp, > Brian V Bonini <[EMAIL PROTECTED]> wrote: > > > What is it that has to be set in php.ini for a superglobal to work? > > You dont need to set anything, they work out-of-the-box > > just try something like this...

Re: [PHP] 'superglobal'

2003-02-05 Thread Kevin Waterson
This one time, at band camp, Brian V Bonini <[EMAIL PROTECTED]> wrote: > What is it that has to be set in php.ini for a superglobal to work? You dont need to set anything, they work out-of-the-box just try something like this... Kevin -- __ (_ \

[PHP] 'superglobal'

2003-02-05 Thread Brian V Bonini
What is it that has to be set in php.ini for a superglobal to work? -- - -- Brian V Bonini -=gfx-Design=- [EMAIL PROTECTED] __ gfx-Design --Web Design and Hosting Services-- http://www.gfx-design.com http://www.gfxdesign.net [EMAIL PROTECTED] Phon

[PHP] 'superglobal'

2003-02-05 Thread V Bonini (gfx-Design)
What is it that has to be set in php.ini for a superglobal to work? -- - -- Brian V Bonini -=gfx-Design=- [EMAIL PROTECTED] __ gfx-Design --Web Design and Hosting Services-- http://www.gfx-design.com http://www.gfxdesign.net [EMAIL PROTECTED] Phon

[PHP] PHP Application Server

2003-02-05 Thread Edgar Castanedo
Thanks for your reply. I know that this is going to be a huge task, but I am hoping that together with the nature of the Open Source community, we can build an app server which is comparable, if not better than one of the commercial app servers on the commercial markets. I'd really like to hear

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Sunfire
on any server i ever dealt with if i put: > in the edit box for the value i always always end up with To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 5:44 PM Subject: Spam: Re: RE: [PHP] Variable Problem > --- Sunfire <[EMAIL PROTECTED]> wrote: > > you c

[PHP] Re: PHP Application Server

2003-02-05 Thread Manuel Lemos
Hello, On 02/05/2003 09:04 PM, Edgar Castanedo wrote: believe PHP outshines them all. I am interested in heading an opensource PHP project. Basically it is the development of a PHP application server. Currently, there is nothing out there like this for PHP which I believe is widely supported or k

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread chip . wiegand
Jason Wong <[EMAIL PROTECTED]> wrote on 02/05/2003 12:49:16 PM: > On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote: > > After copying the web site to the new server some pages no longer include > > the > > 'include' pages. I am using php frames. I load the index page, it's just > > bl

[PHP] PHP Application Server

2003-02-05 Thread Edgar Castanedo
I have been programming in various languages for some time now. Out of all of the languages which I have used, I enjoy coding in PHP more so than in any other language. I have programmed in PHP, Java/JSP/Servlets, ColdFusion, Perl/CGI, ASP, to name a few. Still, I believe PHP outshines them al

[PHP] FW: Printing

2003-02-05 Thread Chris Kay
Anyone know if a LaserJet 3150 would be a good choice to print remotely? -Original Message- From: Chris Kay Sent: Wednesday, 5 February 2003 3:09 PM To: [EMAIL PROTECTED] Subject: Printing I am thinking of running a print job from one system via the internet to a network printer, this

Re: [PHP] Vars in URL

2003-02-05 Thread Shawn McKenzie
I am trying to do something simple to sell items with paypal. One of the options paypal has is a return url, so that after the buyer pays via the paypal website they are forwarded to the return url (my site) so they can access some info.. The problem is that the form on my site that collects info

Re: [PHP] Vars in URL

2003-02-05 Thread Chris Shiflett
--- Shawn McKenzie <[EMAIL PROTECTED]> wrote: > I want to pass vars to another site but I don't want > to use a form. How can I pass these vars to another > site without the vars being shown in the URL. That question is far too vague in terms of who needs to be passing data where. If you want to p

[PHP] Vars in URL

2003-02-05 Thread Shawn McKenzie
I want to pass vars to another site but I don't want to use a form. How can I pass these vars to another site without the vars being shown in the URL. I tried header("Location:"); TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] Variable Problem

2003-02-05 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > you can do: > echo << //any valid html code here > > BLOCK; No, he needed to output $sent, which is dynamic. Also, it is a lot cleaner (and likely faster) just to use to switch in/out of PHP as needed. If you're writing a bunch of static HTML, there's no

Re: [PHP] PHP or MySQL problem?

2003-02-05 Thread Jonathan Pitcher
Cesar, The error you are receiving is from MYSQL. It is telling you you need a password to access the database with the username you are using. See http://www.php.net/manual/en/function.mysql-connect.php for more information regarding connection to a mysql database and how to add in a passwor

Re: [PHP] PHP or MySQL problem?

2003-02-05 Thread John Nichel
Your answer is in the error message. You have been denied access to the database. Are you connecting to the db before you run your query? If not, php is going to try to connect with the default user/password. César Aracena wrote: Hi all, I'm uploading a new web site and when doing some testi

Re: RE: [PHP] Variable Problem

2003-02-05 Thread Sunfire
you can do: echo << BLOCK; it is easier if you have a form or large amounts of code to echo/print to the screen with vars and stuff to use the echo <<< stuff its pretty cluttered and its harder to use print or echo for every line of code you need to echo...specially if there are 300 lines of code a

[PHP] PHP or MySQL problem?

2003-02-05 Thread César Aracena
Hi all, I'm uploading a new web site and when doing some testing, I find this error: Access denied for user: 'httpd@localhost' (Using password: NO) in /home/sites/site33/web/cm/proveedores.php on line 47 when trying to save some data into a remote DB... I really don't know if this is a PHP issue

[PHP] Help with file()--certain URLs causing error

2003-02-05 Thread Andy Crain
Hi, I'm having trouble using file() to get the text of web pages for an in-house URL directory and search engine I'm trying to build. I'm using something along the lines of the following code to take a user-submitted URL and then fetch the text of the page at that address and store it in a databas

Re: Re: [PHP] Variable Problem

2003-02-05 Thread Sunfire
if you want to get variables into a form by value= do something like this: and so on - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 3:59 PM Subject: Spam: Re: [PHP] Variable Problem > On Thursday 06 February 2

[PHP] mailing a cookie string

2003-02-05 Thread Øystein Håland
I use the following javascript code to split all elements in a cookie string var mailContent = getCookie('$formname'); if (mailContent != null) { var mailData = mailContent.split(/[#]/); var str = '$youhad '+mailData[0]+'$test[12] '+(mailData.length-2); str = str+'$test[13] '+mailData[1]; for (

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
I expected it to NOT link to the calling document, but it did (but not any longer). "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 06 February 2003 04:50, Øystein Håland wrote: > > "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet

RE: [PHP] Variable Problem

2003-02-05 Thread Leonard Burton
You need to put quotes around the vars. If I were you I would do this: print ""; print ""; You need the quotes. Leonard. www.phpna.com -Original Message- From: Sierra Times.com [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: [PHP] V

[PHP] Re: How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
"Greg Beaver" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try this out (untested) > > (basename ($file) == basename ($_SERVER['PATH_TRANSLATED']))) > > Greg > -- This does what I want, thank you! -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: server date

2003-02-05 Thread Renaldo De Silva
please disreguard date() does this it was a mistake i made; "Renaldo De Silva" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there a function to get the server date date(); uses the date of the > client machine i need a function that grabs the date on the s

[PHP] classes

2003-02-05 Thread Kevin Waterson
I am having my constructor execute twice.. Why is this? class a looks like this... my_method(); } function my_method(){ include ("classb.php"); $blah = new b; echo $blah -> class_b_method(); } } // instantiate new object $page = new a; ?> classb looks like this -- __

[PHP] Re: How can I link to all BUT $PHP_SELF

2003-02-05 Thread Greg Beaver
Try this out (untested) (basename ($file) == basename ($_SERVER['PATH_TRANSLATED']))) Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I use the following function to create links to

Re: [PHP] Dynamically Generated Images ( PHPGraph ) and timeouts.

2003-02-05 Thread Chris Shiflett
--- Daniel Joyce <[EMAIL PROTECTED]> wrote: > Problem is, if the image takes more than 1-2 seconds > for JPGraph to create, I get a broken image link in IE, > and a blank image area in Mozilla. They're not waiting > long enough for the image generation to finish How certain are you that this is th

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> empty doesnt work either... it still comes up as though something is in them > and excludes either nothing at all or includes everything...even the empty > vars..any reason for that ? Because you're jacking something up in your logic or code... show us how your trying to solve this perplexing di

[PHP] Re: Documentation Help

2003-02-05 Thread Greg Beaver
Hi Hardik, You will find phpDocumentor useful in this endeavor. Check out http://www.phpdoc.org Greg -- phpDocumentor 1.2.0beta3 is out http://www.phpdoc.org "Hardik Doshi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi Everyone, > > I worked on educati

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
Okay enough of this. Please show us some code. :-) -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 2:10 PM Subject: Re: Re: [PHP] empty variables from a form > empty doesnt work either... it still comes up as t

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 05:10, Sunfire wrote: > empty doesnt work either... it still comes up as though something is in > them and excludes either nothing at all or includes everything...even the > empty vars..any reason for that ? Do var_dump() all the vars which you think are empty but PHP

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:50, Øystein Håland wrote: > "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Thursday 06 February 2003 04:21, Øystein Håland wrote: > > > The part $file == basename ($PHP_SELF) is intended to not link to the

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
empty doesnt work either... it still comes up as though something is in them and excludes either nothing at all or includes everything...even the empty vars..any reason for that ? - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAI

Re: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:41, Sierra Times.com wrote: > I have a variable that get's chopped off at the %20 character. > > In the form page I have: > From: > E-mail address: > > > $sent and $name shows up fine, but immedieately I added (for testing) > > > > > > > this statemen

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
"Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 06 February 2003 04:21, Øystein Håland wrote: > > > The part $file == basename ($PHP_SELF) is intended to not link to the > > calling document, but this part doesn't work. So, what shall

[PHP] Variable Problem

2003-02-05 Thread Sierra Times.com
I have a variable that get's chopped off at the %20 character. In the form page I have: From: E-mail address: $sent and $name shows up fine, but immedieately I added (for testing) > > this statement shows a text box, with only the first word before the space charcter "%20" is

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote: > I have a web site on a server running > freebsd-4.2/mysql-3.23.10/php-4.0.3pl1. > I am replacing that machine with a new box running > freebsd-4.7/mysql-3.23.52/php-4.2.3. > After copying the web site to the new server some pages no lon

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> > > how would you test for an empty (unused) variable from a form.. > > > i have a phone number split into 3 different vairiables and want to test > > to > > > see if they were used in the form before displaying either the phone > > number > > > itself or just leaving it out of the display... wh

[PHP] Dynamically Generated Images ( PHPGraph ) and timeouts.

2003-02-05 Thread Daniel Joyce
I'm using JPGraph in a PHP script, and I have caching turned on in JPGraph. The graph making PHP is called from a img tag like so: If JPGraph has determined that the image is too old, it regenerates it on the fly. Problem is, if the image takes more than 1-2 seconds for JPGraph to create, I

[PHP] server date

2003-02-05 Thread Renaldo De Silva
is there a function to get the server date date(); uses the date of the client machine i need a function that grabs the date on the server. Any help apreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
hi i tried the code below as well as empty and isset and it seems that even if the variables that have valid data in them they also get excluded from display with the empty ones.. does "" mean any string? or is it the normal empty string? i need to know if the vars that dont get filled in from the

[PHP] php pages broken after moving to a newer version

2003-02-05 Thread chip . wiegand
I have a web site on a server running freebsd-4.2/mysql-3.23.10/php-4.0.3pl1. I am replacing that machine with a new box running freebsd-4.7/mysql-3.23.52/php-4.2.3. After copying the web site to the new server some pages no longer include the 'include' pages. I am using php frames. I load the i

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:21, Øystein Håland wrote: > The part $file == basename ($PHP_SELF) is intended to not link to the > calling document, but this part doesn't work. So, what shall I do instead? Could you explain HOW it doesn't work? -- Jason Wong -> Gremlins Associates -> www.greml

Re: [PHP] POP3 ... syntax error

2003-02-05 Thread Jason Wong
On Wednesday 05 February 2003 23:32, Adam Voigt wrote: > How about some code? > > On Wed, 2003-02-05 at 10:21, Christian Ista wrote: > > Hello, > > I'm trying to access pop3 server via PHP code. I can establish the > connection, send the USER command (I receive the +OK answer). After >

[PHP] session_cache_limiter with Internet Explorer

2003-02-05 Thread Gerard Samuel
Has anyone gotten this function or something like it to work correctly with Micorsoft IE 5/6. When I have it set to private, Mozilla and Opera works wonderfully, but IE doesn't seem to have half a brain, and would continually would have to refresh the page to get current data. I've tried it unde

[PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
I use the following function to create links to files in the same catalog (and format the link text): function createLink() { $handle=opendir("."); while ($file = readdir($handle)){ if (($file == ".") || ($file == "..") || (ereg("index", $file) == true) || ($file == basename ($PHP_

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
FYI, isset() will return true for an empty variable. You use isset() only when you expect there to be no variable. But for a hard coded HTML form the variable will *always* be set (except in the case of check boxes) even if thas no value. So your only options are to use empty() or test the strin

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
tnx will try that my other code looked something like that but it didnt work.. probably had the (and ) in the wrong places... i set it up as the whole statement as 1 if statement not 3 different ones.. - Original Message - From: "Erich Beyrent" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PR

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
Next time please consider searching on PHP.net or Google before you post. This is an exceedingly basic question and there is an extraordinary amount of information already out there.. if(empty($_POST['ac2'])) { echo "Area Code is a required field."; } -Kevin - Original Message - From

[PHP] Re: [PHP-DEV] Database Abstraction

2003-02-05 Thread Maxim Maletsky
* forwarding to PHP general "Kasper Skårhøj" <[EMAIL PROTECTED]> wrote... : > There are millions of PHP-scripts using MySQL. Most > of them probably doesn't use an Database Abstraction Layer (DBAL) in > order to support other databases. When the requirement is made some day > that a script s

[PHP] best oop book

2003-02-05 Thread Edward Peloke
Ok, I have seen a suggestion or two for oop books but I would like to buy one so what is the best php object oriented book on the market...in everyone's opinion. The Professional PHP4 XML book looks good for xml, so I hope to get that one, I have a php/mysql book, just want a good oop book now.

RE: [PHP] Date format from file (END)

2003-02-05 Thread ed
> I don't know of another program. As long as you write a unix timestamp > or some date format that can be parsed by strtotime(), then you can do > it this way. Use fopen()/fread() to get the last time saved in the file. > If you're using unix timestamps, just see if the current time is greater >

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> how would you test for an empty (unused) variable from a form.. > i have a phone number split into 3 different vairiables and want to test to > see if they were used in the form before displaying either the phone number > itself or just leaving it out of the display... what code would be good to

Re[2]: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 4:49:23 AM, you wrote: JN> Guess it's not on Linux, eh? :) JN> Adam Williams wrote: >> Thanks Tom, that works perfect! >> >> Adam >> >> On Thu, 6 Feb 2003, Tom Rogers wrote: >> >> >>>Hi, Adam >>> >>> >>>TR> You could

  1   2   >