Re[2]: [PHP] MySQL query

2004-01-12 Thread Richard Davey
Hello Ashley, Monday, January 12, 2004, 8:43:07 PM, you wrote: AMK> Assume I don't know what those dates are. I need to search based on AMK> whatever the current date is, and search between 2 and 7 days back. The AMK> dates in my previous post were simply an example. Somewhat important fac

[PHP] Sub

2004-01-12 Thread Daejuan Jacobs
_ Find out everything you need to know about Las Vegas here for that getaway. http://special.msn.com/msnbc/vivalasvegas.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class design question

2004-01-12 Thread Kelly Hallman
On Mon, 12 Jan 2004, rogue wrote: > i am working out the finishing touches on a authentication class that > uses mysql to store the time of last access and some other goodies. > > my question is, when developing a class that uses a database, what is > the best way to handle the database bit? for n

[PHP] File Upload Name Mangling Question

2004-01-12 Thread Peter Vertes
I'm trying to upload a JPEG image into a database using PHP and I was successful with the upload.  However today I wanted to add a check to make sure the user can only upload JPEG files and not any other files so I use preg_match() to check for the strings ".jpg" or ".jpeg" in the filename and

Re: [PHP] File Upload Name Mangling Question

2004-01-12 Thread Richard Davey
Hello Peter, Tuesday, January 13, 2004, 12:25:14 AM, you wrote: PV> Instead of it being "picture.jpg" it was PV> "/tmp/progtemp/php/uploads/phpeZQiXd".  Can anyone shed some light PV> as to how I could check to make sure that only JPEG images get PV> uploaded ?  Thanks in advance... The filename

[PHP] iteration of $GLOBAL

2004-01-12 Thread Chris Sherwood
hello everyone I feel a little stupid asking this but I have tried multiple searches on google and on php.net and cant seem to find the snippet of code that will iterate through all the global variables for the session thanks in advance

Re: [PHP] picturing webpage

2004-01-12 Thread Raditha Dissanayake
I Agree with you that it's probably not manual, there are too many sites really for anyone to do it manually. IT can be done quite easily with java swing and though i am not a windows expert i am sure it can be done with visual basic as well. PHP was designed for different things. Stuart wrote

[PHP] Re: iteration of $GLOBAL

2004-01-12 Thread Justin Patrin
Chris Sherwood wrote: hello everyone I feel a little stupid asking this but I have tried multiple searches on google and on php.net and cant seem to find the snippet of code that will iterate through all the global variables for the session thanks in advance This will work for any associative ar

Re: [PHP] File Upload Name Mangling Question

2004-01-12 Thread Peter Vertes
On Mon, 2004-01-12 at 19:33, Richard Davey wrote: The filename isn't always the best way to tell. I mean I could rename an mp3 to jpg and you'd think it was a jpg and happily insert it into your database. Instead it's probably better to test the integrity of the image itself.     I didn't e

Re: [PHP] iteration of $GLOBAL

2004-01-12 Thread Richard Davey
Hello Chris, Tuesday, January 13, 2004, 12:38:40 AM, you wrote: CS> I feel a little stupid asking this but I have tried multiple CS> searches on google and on php.net and cant seem to find the CS> snippet of code that will iterate through all the global variables CS> for the session I don't beli

RE: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Chris W. Parker
Freedomware on Monday, January 12, 2004 1:57 AM said: > Thanks for the tips, but there's one thing I should point out - I > won't actually be using Apache with my online domains (at least, I > don't think so). I'm just going to use it on my computer to preview > and

RE: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Chris W. Parker
Freedomware on Sunday, January 11, 2004 4:40 PM said: > Which PHP do you recommend I download - 3.0, 4.0 or 5.0? Your PHP > tutorial at http://www.php.net/tut.php offers a link to preconfigured > packages (Apache, PHP and MySQL). I noticed that the package that got >

Re: [PHP] permissions with bash scripts in php?

2004-01-12 Thread Jason Wong
On Tuesday 13 January 2004 06:46, Jas wrote: [Please trim your posts!] > Just tried that and I am getting the same error. I guess what I am > really looking for is a way to have apache restart the service without > adding the apache user in the 'sudoers' file. If you really must restart system

[PHP] session expires

2004-01-12 Thread Andreas Magnusson
Hi, I wonder if anyone knows of a way to detect if a session has expired (when your session.cookie_lifetime != 0). I've tried to see if the session-vars are unset, but that doesn't seem to be the case, still everythings seems to be lost. My problem is that I have a page which the user must log in t

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
Chris W. Parker wrote: * * * * * * * * * * Wow, thanks for all the tips! I started from scratch and installed a preconfigured package, with Apache 2 and PHP 4. Apache, PHP and MySQL seem to be working OK, though a couple other functions don't. Now I just have to get it hooked up to Dreamweave

[PHP] Storing PHP code in a database

2004-01-12 Thread Justin French
Hi, Is there much I need to know about storing mixed PHP/HTML text in a mysql database table, and then using eval() to execute it? All I managed to find so far is that I should store it in a blob. Do I need to escape characters, or perform any other filtering/conversions before I store it in t

[PHP] Image Header Problems

2004-01-12 Thread Bob Eldred
Hi there, I'm wanting to serve images outside the docroot of apache, so that the images can't be so easily hijacked. However, I appear to be running into a problem with (I think) the headers not being sent properly. IE (v6) will only save the images as BMPs, not as JPGs, even though they are JPG

RE: [PHP] Re: Ver 5.0 Questions ...

2004-01-12 Thread Thomas Svenson
Hi Chris, Chris TenHarmsel wrote: > Well, we're interested in stability. I figured since php4 had > been out for a while in "stable" form, it would be more stable > than php5. Is this the case, or is there a good feeling that > php5 will be considered "stable" in the next couple months? I've be

Re: [PHP] Storing PHP code in a database

2004-01-12 Thread John W. Holmes
Justin French wrote: Is there much I need to know about storing mixed PHP/HTML text in a mysql database table, and then using eval() to execute it? All I managed to find so far is that I should store it in a blob. A TEXT or BLOB column will do. Only difference is BLOB is case sensitive. Do I ne

[PHP] [Newbie Guide] For the benefit of new members

2004-01-12 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first

[PHP] Re: How do I write to an XML file

2004-01-12 Thread Manuel Lemos
Hello, On 01/12/2004 05:20 AM, Tim Burgan wrote: Hello, I'm wondering if anyone can help me or point me in the right direction regarding how I can write to an XML file. I'm new to PHP - I've just figured out how to basically write data to a text file. What I want to do is have a user submit data

Re: [PHP] session expires

2004-01-12 Thread Marek Kilimajer
Andreas Magnusson wrote: Hi, I wonder if anyone knows of a way to detect if a session has expired (when your session.cookie_lifetime != 0). I've tried to see if the session-vars are unset, but that doesn't seem to be the case, still everythings seems to be lost. My problem is that I have a page whi

Re: [PHP] session expires

2004-01-12 Thread John W. Holmes
Andreas Magnusson wrote: Hi, I wonder if anyone knows of a way to detect if a session has expired (when your session.cookie_lifetime != 0). I've tried to see if the session-vars are unset, but that doesn't seem to be the case, still everythings seems to be lost. My problem is that I have a page wh

Re: [PHP] Re: Ver 5.0 Questions ...

2004-01-12 Thread DvDmanDT
Don't expect it to be solved next few days.. There are some wierd problems I think... Kinda like you don't really know what could cause them or something... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Thomas Svenson" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTE

<    1   2