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

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] 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

[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

[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

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

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

[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

[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

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] 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] 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

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] 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] 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] 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

[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] 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] 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] 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] 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] 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] 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[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

RE: [PHP] class design question

2004-01-12 Thread Giz
If you're going to the trouble of making an authentication class, you should consider also using a database connection class, and modifying your authentication class to make use of it. You might want to roll your own, although there are numerous classes that already exist. As for "portability"

Re: [PHP] class design question

2004-01-12 Thread Justin Patrin
Jason Sheets wrote: Take a look at the PEAR DB Abstraction layer, I usually store connection info in an XML or INI file and use parse_ini or PEAR Config to parse the configuration file. http://pear.php.net hi there. i am working out the finishing touches on a authentication class that uses mysq

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

2004-01-12 Thread Jas
Jake McHenry wrote: - Original Message - From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 4:47 PM Subject: [PHP] permissions with bash scripts in php? Something I have never tried... seems fairly straight-forward but I am running into problems. My p

Re: [PHP] class design question

2004-01-12 Thread Jason Sheets
Take a look at the PEAR DB Abstraction layer, I usually store connection info in an XML or INI file and use parse_ini or PEAR Config to parse the configuration file. http://pear.php.net > hi there. > > i am working out the finishing touches on a authentication class that > uses mysql to store the

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

2004-01-12 Thread Jake McHenry
- Original Message - From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 4:47 PM Subject: [PHP] permissions with bash scripts in php? > Something I have never tried... seems fairly straight-forward but I am > running into problems. > > My problem is th

[PHP] class design question

2004-01-12 Thread rogue
hi there. 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 now i just set the connection i

Re: [PHP] to array or not to array..

2004-01-12 Thread Jake McHenry
- Original Message - From: "Matt Matijevich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 4:18 PM Subject: RE: [PHP] to array or not to array.. > [snip] > That works great, I am messing myself up, however because I am using > checkboxes

[PHP] permissions with bash scripts in php?

2004-01-12 Thread Jas
Something I have never tried... seems fairly straight-forward but I am running into problems. My problem is that I need to call system to restart a daemon service like so... $cmd = "/path/to/shell/script/script.sh"; system($cmd . " &> /tmp/error "); ?> Script contains this command... #!/bin/ba

Re: [PHP] to array or not to array..

2004-01-12 Thread Justin Patrin
The way I deal with this is one of two ways. An easy way is to populate hidden fields in the page with the indexes of the users, thwn loop through those, checking the indexes of the arrays sent back. User 5 User 7 Another is to loop through, say, records from the DB and use their IDs for th

Re: [PHP] Globals problem - $_REQUEST good solution?

2004-01-12 Thread Ryan A
Cool. Thanks John. -Ryan > The only simularity it has to register_globals ON is that you > don't know > what method provided the value. It could be POST, GET, or COOKIE. > > But... if you're > validating the data properly anyhow, it really > shouldn't > matter where it's coming from. I use $_REQ

Re: [PHP] Globals problem - $_REQUEST good solution?

2004-01-12 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > After going through the manual trying to find an answer I came accross > $_REQUEST, is this a good > solution? because I have never used this before or is this as bad as having > globals on? The only simularity it has to register_globals ON is that you don't k

RE: [PHP] to array or not to array..

2004-01-12 Thread Matt Matijevich
[snip] That works great, I am messing myself up, however because I am using checkboxes so when I run this, if I have unchecked the checkbox, the value doesn't come through and I want an unchecked box to be 0 for example so I may need some javascript... [/snip] Can only one option be checked per us

[PHP] Globals problem - $_REQUEST good solution?

2004-01-12 Thread Ryan A
Hi, I am getting some variable from another program an the main problem is its coming mixed... eg: some get and some post So far I have coded this with register globals on because I didnt know which way it was coming.. now i want to do it with globals off... After going through the manual trying

RE: [PHP] to array or not to array..

2004-01-12 Thread Edward Peloke
Thanks Shawn, That works great, I am messing myself up, however because I am using checkboxes so when I run this, if I have unchecked the checkbox, the value doesn't come through and I want an unchecked box to be 0 for example so I may need some javascript... Thanks, Eddie -Original Message-

[PHP] Re: to array or not to array..

2004-01-12 Thread Justin Patrin
Edward Peloke wrote: Ok, This is probably a basic question, I am just looking for opinions and examples as to the best way to handle this... I cycling through a query and displaying results to the user such as ... usernamecan add can delete eddieY

Re: [PHP] MySQL query

2004-01-12 Thread CPT John W. Holmes
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]> > >RD> SELECT whatever FROM table WHERE date_column_name BETWEEN '2004-01-09 > >RD> 00:00:00' AND '2004-01-04 23:59:59' > > > >Actually sorry, inverse the seconds (put the 00:00:00 onto the lower > >date, the 4th) so it encompasses the whole period. Y

[PHP] Installing Preconfigured Packaged Over Apache

2004-01-12 Thread Freedomware
I was able to install Apache fairly easily, and it appears to be working, but PHP is way over my head. So I downloaded a preconfigured package called XAMPP, from http://www.apachefriends.org/xampp-en.html The specs say it includes Apache 2.0.48, which I was told is not good for working with PHP

Re: [PHP] MySQL query

2004-01-12 Thread Ashley M. Kirchner
Richard Davey wrote: RD> SELECT whatever FROM table WHERE date_column_name BETWEEN '2004-01-09 RD> 00:00:00' AND '2004-01-04 23:59:59' Actually sorry, inverse the seconds (put the 00:00:00 onto the lower date, the 4th) so it encompasses the whole period. You might actually be able to not even incl

Re: Re[2]: [PHP] MySQL query

2004-01-12 Thread CPT John W. Holmes
From: "Richard Davey" <[EMAIL PROTECTED]> > RD> SELECT whatever FROM table WHERE date_column_name BETWEEN '2004-01-09 > RD> 00:00:00' AND '2004-01-04 23:59:59' > > Actually sorry, inverse the seconds (put the 00:00:00 onto the lower > date, the 4th) so it encompasses the whole period. You might a

Re: [PHP] MySQL query

2004-01-12 Thread CPT John W. Holmes
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]> > I need to query for record within a certain date stamp. The > datetime field contains the createdon information that i need and is in > the following format: 2004-01-11 21:40:50 > > What I'd like to do is search for records that are betwee

Re[2]: [PHP] MySQL query

2004-01-12 Thread Richard Davey
RD> SELECT whatever FROM table WHERE date_column_name BETWEEN '2004-01-09 RD> 00:00:00' AND '2004-01-04 23:59:59' Actually sorry, inverse the seconds (put the 00:00:00 onto the lower date, the 4th) so it encompasses the whole period. You might actually be able to not even include the seconds, try

Re: [PHP] MySQL query

2004-01-12 Thread Richard Davey
Hello Ashley, Monday, January 12, 2004, 8:21:01 PM, you wrote: AMK> What I'd like to do is search for records that are between AMK> 2004-01-09 and 2004-01-04. The time is to be ignored, just the date is AMK> what I need to search by. Is there a way to do this within an sql AMK> query, or do

[PHP] MySQL query

2004-01-12 Thread Ashley M. Kirchner
I need to query for record within a certain date stamp. The datetime field contains the createdon information that i need and is in the following format: 2004-01-11 21:40:50 What I'd like to do is search for records that are between 2004-01-09 and 2004-01-04. The time is to be ignored,

Re: [PHP] compile php

2004-01-12 Thread shawn_milochik
Easy solution: Use wget. http://unxutils.sourceforge.net/ If you're not familiar with wget, you can Google or e-mail me. Basically, a command of: wget www.yahoo.com results in an HTTP request to Yahoo and you will find an index.html in the directory from which you ran the command. In your case

Re: [PHP] to array or not to array..

2004-01-12 Thread shawn_milochik
Try adapting like this: foreach ($_POST as $key => $val){ #display each item from submitted form print "$key: $val"; } Shawn

RE: [PHP] Re: jpeg Uploader issue

2004-01-12 Thread Mike R
> On Mon, 12 Jan 2004, Mike R wrote: > > > i had a problem like the one you descriped. The problem was quite > > > simple. In my case everything worked fine with Windows-Web-Browsers > > > but not with MAC-Browsers. Check the value of the filetype variable. > > > There might be differences betwe

[PHP] Re: Re: need help please

2004-01-12 Thread Piet from South Africa
Hi Haydar I had this problem a lot of times before, and i can tel you that you cannot execute a header call and a echo call header(sprintf("Location: %s", $insertGoTo)); > >*here is the error > > > exit(); } > > > ob_get_contents() ; > > > > >*

[PHP] to array or not to array..

2004-01-12 Thread Edward Peloke
Ok, This is probably a basic question, I am just looking for opinions and examples as to the best way to handle this... I cycling through a query and displaying results to the user such as ... usernamecan add can delete eddieY N frank

[PHP] compile php

2004-01-12 Thread Logan McKinley
i have a script that checks an email account and records information into a database and want to call it when ever an email hits that account. My ISP uses merak mail server and i see it has an excutables section, so i was hoping to fire my php page whenever an email goes to the account. the probl

Re: Re[2]: [PHP] how to open a webpage

2004-01-12 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > CS> You can open Web pages just like local files: > CS> > CS> $handle = fopen('http://www.example.com/', 'r'); > > Depends on your meaning of the word "open" though doesn't it? :) That's true. I see now from everyone else's answers that the majority

Re[2]: [PHP] view outputed headers?

2004-01-12 Thread Richard Davey
Hello Ivo, Monday, January 12, 2004, 6:41:49 PM, you wrote: IP> I've been using mozilla firebird as a test browser with the 'Live HTTP IP> Headers' extension. I've found it most useful. It's not free, but I use "HTTP Interceptor" for Windows which is extremely good. -- Best regards, Richard

RE: [PHP] view outputed headers?

2004-01-12 Thread Ivo Pletikosic
I've been using mozilla firebird as a test browser with the 'Live HTTP Headers' extension. I've found it most useful. http://texturizer.net/firebird/extensions/#livehttpheaders > -Original Message- > From: Scott Taylor [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 11, 2004 9:34 PM >

[PHP] Re: Ver 5.0 Questions ...

2004-01-12 Thread Chris TenHarmsel
Dvdmandt wrote: > What's the real difference.. We are talking something like 1-2 months I > think... Although, there was thoughts about releasing 5.0 in 2002 as well > IIRC.. > Well, we're interested in stability. I figured since php4 had been out for a while in "stable" form, it would be more

Re: [PHP] _("What does this do?")

2004-01-12 Thread Yann Larrivee
This is the equivalent to the function gettext http://ca3.php.net/manual/en/function.gettext.php Yann Larrivee http://conf.phpquebec.com http://protonicdesign.com On Mon, 2004-01-12 at 12:42, Kelly Hallman wrote: > I just ran across this syntax in someone else's code. > I can't detect any differ

Re: [PHP] _("What does this do?")

2004-01-12 Thread Marek Kilimajer
It's an alias to this function: http://sk2.php.net/manual/en/function.gettext.php Kelly Hallman wrote: I just ran across this syntax in someone else's code. I can't detect any difference between these two expressions: _("String value") and "String value" Is there a difference? What does _("xyz"

Re[2]: [PHP] how to open a webpage

2004-01-12 Thread Richard Davey
Hello Chris, Monday, January 12, 2004, 5:00:16 PM, you wrote: >> PHP itself cannot open a web page, it's a server-side language and >> doesn't have any control over the client like that. CS> Well, that's not exactly true if the allow_url_fopen directive is enabled. CS> You can open Web pages jus

Re: [PHP] php doesn't work in html files

2004-01-12 Thread Manuel Vázquez Acosta
The facts is that EVERY html (php embeded or not) will be processed by PHP, which is totally unnecesary and a waste of time. The best practice is to append the .php extension to your php files. If your your working for production you must consider that your host provider won't agree to put his ser

[PHP] _("What does this do?")

2004-01-12 Thread Kelly Hallman
I just ran across this syntax in someone else's code. I can't detect any difference between these two expressions: _("String value") and "String value" Is there a difference? What does _("xyz") do, and is it documented anywhere? I'm curious why this code (SquirrelMail) uses it in one place, but n

Re: [PHP] Array Key Test

2004-01-12 Thread Stuart
Cameron B. Prince wrote: How would I go about determining if a specific key exists in an array? http://php.net/isset I want to see if $conf['hOpt'] is defined. is_array only works at the $conf level. I tried count(array_keys($conf, 'hOpt')), but always get 0. if (isset($conf['h0pt'])) -- Stuart -

[PHP] Re: Array Key Test

2004-01-12 Thread Justin Patrin
Cameron B. Prince wrote: Hi, How would I go about determining if a specific key exists in an array? I want to see if $conf['hOpt'] is defined. is_array only works at the $conf level. You want: if(isset($conf['hOpt'])) { ... } You should always use isset to check if a variable is set, whether it

[PHP] Array Key Test

2004-01-12 Thread Cameron B. Prince
Hi, How would I go about determining if a specific key exists in an array? I want to see if $conf['hOpt'] is defined. is_array only works at the $conf level. I tried count(array_keys($conf, 'hOpt')), but always get 0. What am I doing wrong here? Thanks, Cameron -- PHP General Mailing List (

[PHP] Re: PHP Installation Questions

2004-01-12 Thread DvDmanDT
Errm.. Ok, don't download the installer.. That'll just bring you more problems.. :s The easiest way is to just download the *-win32.zip file, and extract to c:\php, and possibly move all files cause the extraction proggy might place them in C:\php\php-4.3.4... when you want them in C:\php... Now, i

RE: [PHP] Function returns

2004-01-12 Thread Jonathan Wilkes
This is NOT good coding practice, ONLY return something from a function / method if it needs to, otherwise you may get a performance hit. regards Jonathan -Original Message- From: Mark Cubitt [mailto:[EMAIL PROTECTED] Sent: 12 January 2004 17:06 To: Shawn McKenzie; [EMAIL PROTECTED] Subj

RE: [PHP] Function returns

2004-01-12 Thread Mark Cubitt
Shawn McKenzie wrote: > Maybe a dumb question, but as good coding practice, should all functions > return something even if they don't need to??? > > Example: > > function do_it() > { >echo "hi"; > } > > --or-- > > function do_it() > { >return echo "hi"; > } > > Also, if they do other th

[PHP] Re: Ver 5.0 Questions ...

2004-01-12 Thread DvDmanDT
What's the real difference.. We are talking something like 1-2 months I think... Although, there was thoughts about releasing 5.0 in 2002 as well IIRC.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Chris Tenharmsel" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECT

Re: [PHP] Re: how to open a webpage

2004-01-12 Thread Burhan Khalid
bernard wrote: Hi, Thanks for the suggestions ! Problem is solved sofar. But how can I open the link in a new window, I tried (with my limited php knowlegde) a lot of things, but i'ts not working :-( From the Newbie Guide : 6. PHP is a server side scripting language. Whatever processing PH

RE: [PHP] Re: how to open a webpage

2004-01-12 Thread Robert Sossomon
Output this to a new file each time and then use a blind page refresh via $output = " function openpopup(){ var popurl=\"$launch\" winpops=window.open(popurl,\"\",\"width=400,height=338,toolbar,location, directories,status,scrollbars,menubar,resizable,\") } openpopup() "; if($file=fopen($pop.h

Re: [PHP] how to open a webpage

2004-01-12 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > b> How can I open this URL automatically ?? > > PHP itself cannot open a web page, it's a server-side language and > doesn't have any control over the client like that. Well, that's not exactly true if the allow_url_fopen directive is enabled. You ca

Re: [PHP] view outputed headers?

2004-01-12 Thread Marek Kilimajer
http://sk2.php.net/manual/en/function.headers-list.php says: no version information, might be only in CVS Scott Taylor wrote: What is the easiest way to view the headers that a PHP page has put out? I've seen the |var_dump(headers_list()); on php.net but this always gives me an error (such as

Re: [PHP] Function returns

2004-01-12 Thread Burhan Khalid
Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo "hi"; } --or-- function do_it() { return echo "hi"; } Also, if they do other things but really don't return anythin

Re: [PHP] Re: how to open a webpage

2004-01-12 Thread "Miguel J. Jiménez"
bernard wrote: Hi, Thanks for the suggestions ! Problem is solved sofar. But how can I open the link in a new window, I tried (with my limited php knowlegde) a lot of things, but i'ts not working :-( To open the URL in a new window, you MUST use javascript.. You can output a HTMP page l

[PHP] Re: Error/ Warning messages in log files (OS 121) and (OS 64)

2004-01-12 Thread Trevor Dowling
David, Thanks for your reply however, I have been here before and can only find others with the same problem, and no resolution (i.e. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21425) Still looking for a fix Trevor "David Robley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

[PHP] Re: how to open a webpage

2004-01-12 Thread bernard
Hi, Thanks for the suggestions ! Problem is solved sofar. But how can I open the link in a new window, I tried (with my limited php knowlegde) a lot of things, but i'ts not working :-( Bernard "Bernard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am new to php a

[PHP] PHP logo question

2004-01-12 Thread Jimmy Lantz
Hi coders, I've sent several mails to [EMAIL PROTECTED] regarding the limitations / rights to use the PHP logo. But I havent recieved any reply, does anyone know who answers that email? If so please send him/her an heads up to check his/hers inbox. Now you might think that I've been sending seve

Re: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Marek Kilimajer
Webmaster wrote: Hello, please can somebody help me. I am going nuts. Really I am close to totally freaking out. I have a problem that seems minor and ridiculous but cost me already 3 working days. I have a working php/mysql homepage and used to use Ommnihttpd until 3 days ago. I installed the lat

RE: [PHP] Re: jpeg Uploader issue

2004-01-12 Thread Kelly Hallman
On Mon, 12 Jan 2004, Mike R wrote: > > i had a problem like the one you descriped. The problem was quite > > simple. In my case everything worked fine with Windows-Web-Browsers > > but not with MAC-Browsers. Check the value of the filetype variable. > > There might be differences between different

RE: [PHP] Re: jpeg Uploader issue

2004-01-12 Thread Mike R
> i had a problem like the one you descriped. > The problem was quite simple. In my case everything > worked fine with Windows-Web-Browsers but not with > MAC-Browsers. > Check the value of the filetype variable. There might be > differences between different plattforms. I'm sorry to sound stupid

[PHP] Re: Ver 5.0 Questions ...

2004-01-12 Thread Chris TenHarmsel
Dvdmandt wrote: > Try beta3, or rc1-dev from snaps.php.net, if it works there, it'll work in > 5.0, currently, it's bugfix only for RC1, and RC1 isn't very far from the > release, so I really don't think anyting would get changed... Also, seems > to me like objects and references are kinda the hig

[PHP] Re: PHP Installation Questions

2004-01-12 Thread Freedomware
H... The first installation ended with this message: "Sorry, the software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install txt file for more details." It then occurred to me that I forgot to tell you

Re: [PHP] how to open a webpage

2004-01-12 Thread Neil Freeman
Or with PHP you could do: Header("Location:$launch"); die; Make sure that nothing is outputted before this is called though. The variable $launch should also be an absolute URL. Neil Richard Davey wrote: *** This Email Has Been Virus Swept **

Re: [PHP] how to open a webpage

2004-01-12 Thread Richard Davey
Hello bernard, Monday, January 12, 2004, 1:47:39 PM, you wrote: b> I have a field with an URL b> The value of this in a variable $launch. b> How can I open this URL automatically ?? PHP itself cannot open a web page, it's a server-side language and doesn't have any control over the client like

Re: [PHP] file upload - But outside of web directory...?

2004-01-12 Thread Richard Davey
Hello Tristan, Monday, January 12, 2004, 2:30:15 PM, you wrote: TPrsc> What I want to do now, is allow the other site users to upload files to TPrsc> that same directory... TPrsc> From what I'v estudied on line, I can't do this, but I'm not convinced... TPrsc> Anyone know if this os possible, via

[PHP] Re: PHP Installation Questions

2004-01-12 Thread DvDmanDT
There really should be one named httpd.conf.. Otherwise, that might be the one named httpd if you have extensions on filenames off (not recommended in any way)... Also, it should be LoadModule php5_module C:/PHP/php5Apache.dll sorry, my misstake.. :) -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail:

[PHP] file upload - But outside of web directory...?

2004-01-12 Thread Tristan . Pretty
Hi there... I keep all my downloads outside of the web folder on my site. I only allow users to download them by them using the download page, and changing teh header info when a file is requested.. What I want to do now, is allow the other site users to upload files to that same directory... >F

[PHP] Re: PHP Installation Questions

2004-01-12 Thread Freedomware
Dvdmandt wrote: Errm... Just unzip the php zip, so that php.exe is located in c:\php (or D:\ or something).. For example C:\php\php.exe... Then, find your Apache config file in the Apache\conf folder, named httpd.conf.. Open it, scroll down to the bottom, then add LoadFile C:/PHP/php5ts.dll LoadMod

[PHP] how to open a webpage

2004-01-12 Thread bernard
Hi, I am new to php and doing reasonable well (ok, copying other code and learning ;-) I have a field with an URL The value of this in a variable $launch. How can I open this URL automatically ?? TIA!! Bernard Antwerp, Belgium -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: PHP Installation Questions

2004-01-12 Thread DvDmanDT
Errm... Just unzip the php zip, so that php.exe is located in c:\php (or D:\ or something).. For example C:\php\php.exe... Then, find your Apache config file in the Apache\conf folder, named httpd.conf.. Open it, scroll down to the bottom, then add LoadFile C:/PHP/php5ts.dll LoadModule C:/PHP/php5

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

2004-01-12 Thread memoimyself
Hello Tim, On 12 Jan 2004 at 17:50, Tim Burgan wrote: > I'm wondering if anyone can help me or point me in the right direction > regarding how I can write to an XML file. Writing to an XML file works the same way as writing to any other file: you need to open the file with fopen(), append to

RE: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Ford, Mike [LSS]
On 12 January 2004 13:29, Burhan Khalid wrote: > Jay Blanchard wrote: > > > [snip] > > please can somebody help me. I am going nuts. > > Really I am close to totally freaking out. > > [/snip] > > > > Sorry to hear that > > > > [snip] > > In the file page_dentona.class.php the first line says th

Re: [PHP] PHP Installation Questions

2004-01-12 Thread John Nichel
Freedomware wrote: I'm running Windows XP Pro and just installed Apache 1.3. It appears to be running, so I guess I'm ready to install PHP. I visited http://snaps.php.net and downloaded the latest PHP program - CVS (5.0.x-dev). I'm reading the installation instructions at http://cvs.php.net/co.

Re: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Burhan Khalid
Jay Blanchard wrote: [snip] please can somebody help me. I am going nuts. Really I am close to totally freaking out. [/snip] Sorry to hear that [snip] In the file page_dentona.class.php the first line says the following: require_once('../design/page.class.php'); The following error message comes

[PHP] PHP Installation Questions

2004-01-12 Thread Freedomware
I'm running Windows XP Pro and just installed Apache 1.3. It appears to be running, so I guess I'm ready to install PHP. I visited http://snaps.php.net and downloaded the latest PHP program - CVS (5.0.x-dev). I'm reading the installation instructions at http://cvs.php.net/co.php/php-src/win32/i

RE: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Jay Blanchard
[snip] please can somebody help me. I am going nuts. Really I am close to totally freaking out. [/snip] Sorry to hear that [snip] In the file page_dentona.class.php the first line says the following: require_once('../design/page.class.php'); The following error message comes up: Warning: main

RE: [PHP] Exception number: c0000005 (access violation

2004-01-12 Thread Jay Blanchard
[snip] I have 4.3.5-dev (Build Dec-22-2003) installed on a W2K Dell Inspiron 7500 and I am getting an error which I don't get with 4.1.1 and 4.3.4. Would like to learn how to debug things like that. Here is a dump of Dr. Watson: [/snip] You will probably want to send this to the PHP developers lis

[PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Webmaster
Hello, please can somebody help me. I am going nuts. Really I am close to totally freaking out. I have a problem that seems minor and ridiculous but cost me already 3 working days. I have a working php/mysql homepage and used to use Ommnihttpd until 3 days ago. I installed the latest versions of

RE: [PHP] php doesn't work in html files

2004-01-12 Thread Nico Berg
Hi, It works. I decided to add .html to the list of extensions that will be opend by php if asked for in apache. I understand here that it will take more time before html files are processed? True? Thanks all, Nico Berg > -Oorspronkelijk bericht- > Van: Nico Berg [mailto:[EMAIL PROTECTED

  1   2   >