Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread John Nichel
Freedomware wrote: Ryan A wrote: It installed pretty easy and the guy who makes it is real cool and will help you via the forum. Also options to run other things like PERL Thanks for the tip. You raised one other question I have - PERL. I know nothing about it, but I just wondered how it

[PHP] How do I write to an XML file

2004-01-12 Thread Tim Burgan
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 (email address a question) via a form that is

Re: [PHP] view outputed headers?

2004-01-12 Thread Mirek Novak
try mozilla livehttpheaders from http://livehttpheaders.mozdev.org Scott Taylor wrote: What is the easiest way to view the headers that a PHP page has put -- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
OK, here are three more questions: 1. I visited Apache's download page at http://httpd.apache.org/download.cgi It says the best version to download is 2.0.48. Then it lists the following: Unix Source: httpd-2.0.48.tar.gz [PGP] [MD5] Unix Source: httpd-2.0.48.tar.Z [PGP] [MD5] Win32 Source:

[PHP] Making coockies valid for multiple domains possible?

2004-01-12 Thread Merlin
Hello everybody, I am working on translating my site into multiple languages (i18n). Each different language is hosted on the same server, but on a different subdomain. example: de.server.com - german en.server.com - english Here comes the problem. Sessions are validated through coockies on my

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
Scratch the first two questions - I figured out the MIS Installer and downloaded it, and it looks like the IIS server isn't installed on my computer. But a couple other questions popped up when I began installing Apache: What do I type in for Network Domain and Server Name? I have over a

Re: [PHP] Making coockies valid for multiple domains possible?

2004-01-12 Thread Jake McHenry
- Original Message - From: Merlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:56 AM Subject: [PHP] Making coockies valid for multiple domains possible? Hello everybody, I am working on translating my site into multiple languages (i18n). Each different

[PHP] Re: Making coockies valid for multiple domains possible?

2004-01-12 Thread Pavel Janda
Merlin [EMAIL PROTECTED] píse v diskusním príspevku news:[EMAIL PROTECTED] Hello everybody, I am working on translating my site into multiple languages (i18n). Each different language is hosted on the same server, but on a different subdomain. example: de.server.com - german en.server.com

Re: [PHP] Making coockies valid for multiple domains possible?

2004-01-12 Thread Pavel Janda
Someone correct me if I'm wrong, but if you set this in your php.ini or with session_set_cookie_params() to server.com, it's valid across any sub domains, whereas if you set it to de.server.com, it would only be valid in the de.server.com sub domain. Or possibly try *server.com. I havn't

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

2004-01-12 Thread Richard Davey
Hello Tim, Monday, January 12, 2004, 7:20:07 AM, you wrote: TB I'm new to PHP - I've just figured out how to basically write data to a TB text file. TB What I want to do is have a user submit data (email address a question) TB via a form that is written to the xml file, then have a support

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread DvDmanDT
Well, server name is your main domain... Network domain... Hmm... Not sure if that's where you enter your IP or your top-level domain... Try network domain: geobop.org, servername: www.geobop.org... The installer is just confusing really.. It's much easier to just open httpd.conf in notepad..

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
Dvdmandt wrote: If you got dozens domains, mod_l33t is highly recommended, but it's only for Apache 1.3 which I use under both Me, 2k and XP btw... Apache 2.0 just cause problems with PHP... Well, I haven't really confirmed it yet, but if you read on the php.net manual page, you'll see it's not

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread DvDmanDT
Nothing wrong with having 3 versions of Apache 1.3 and 5 or so of Apache 2.. .:) I got PHP4.3.4, 3.0.17, 5.0RC1-dev, at least 5 different perl versions, two versions of TCL, same with python, I got Apache modules for all of these as well... Sure isn't nessecary, but I'm sure learning lots from

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread DvDmanDT
Also, I feel like I wanna tell yo some about myself, so you don't make your descissions cause of me.. I'm 14 years old, live in sweden, learning programming in C right now (made my first PHP module a week ago.. :)) I also play around some with Apache 1.3 Api... I've been using PHP since 4.1.. I've

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
Dvdmandt wrote: Also, I feel like I wanna tell yo some about myself, so you don't make your descissions cause of me.. I'm 14 years old, live in sweden, learning programming in C right now (made my first PHP module a week ago.. :)) I also play around some with Apache 1.3 Api... I've been using PHP

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread DvDmanDT
Swedish, English, and in few hours I'm gonna have french as well... Although, my primary language would still be PHP... :s Sweden is a really nice place really.. :) -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Freedomware [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL

Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Tristan . Pretty
You know, I've been struggling with this probelm fr ages, and wouldn't you know it, I really over complicated things.. using this simple header method, I've done it... Cheers for the heads up... It pays to read eh? ;-) Tris.. Marek Kilimajer [EMAIL PROTECTED] 10/01/2004 13:22 To Binay

Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Marek Kilimajer
Binay wrote: + How to create web archvie which will be mime encoded file and then saving as excel file .. plz direct me to the resources where i can find more information about it .. or tell me how can i proceed to it. Thanks + Web archive

[PHP] Re: Hiding files away from /public_html/

2004-01-12 Thread nabil
greetings Would you tell us how to create a script to read these files, extract their contents and create temporary PNG/JPG/GIF files on the fly ?? in this case we can (as u said) store the pictures content in the mysql and output them when we like Regards [EMAIL PROTECTED] wrote in message

[PHP] Did I choose the correct download?

2004-01-12 Thread Freedomware
My operating system is Windows XP Pro. I was advised to download Apache 1.3 if I want to work with PHP, so I went to http://httpd.apache.org/download.cgi and found the Apache 1.3 download section. It offered the following choices: * Unix Source: apache_1.3.29.tar.gz [PGP] [MD5]

Re: [PHP] Did I choose the correct download?

2004-01-12 Thread Richard Davey
Hello, Monday, January 12, 2004, 10:58:56 AM, you wrote: F Why doesn't it mention Windows XP? Do I need to download another program? The readme hasn't been updated. XP is a modified 2K/NT core anyway. It'll work just fine. -- Best regards, Richardmailto:[EMAIL

Re: [PHP] Did I choose the correct download?

2004-01-12 Thread Freedomware
OK, thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache - Previewing Pages with Dreamweaver

2004-01-12 Thread Freedomware
Well, I downloaded Apache and PHP, installed Apache, and was had a bunch of questions to ask - until I tested Apache and discovered it's already working! I go into Start Programs, then click Control Apache Server Start, and the little black window opens. I click ESC to close it. But before I

[PHP] Re: Apache - Previewing Pages with Dreamweaver

2004-01-12 Thread Freedomware
P.S. Should I go ahead and install PHP, or should I wait until I'm able to preview pages on my new Apache server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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]

[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

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

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:

[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

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

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

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 the following:

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

[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

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

[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

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

[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

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 a

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

[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

[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

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

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

[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

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

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

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

2004-01-12 Thread Miguel J. Jimnez
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

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 anything,

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

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 can open

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 = script function openpopup(){ var popurl=\$launch\ winpops=window.open(popurl,\\,\width=400,height=338,toolbar,location, directories,status,scrollbars,menubar,resizable,\) } openpopup() /script ;

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

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

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 things but really don't

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]

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

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

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] _(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 not

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

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 just

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) do,

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

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

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: 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 interpreted

[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

[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] 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() ;

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 between different

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: $valbr; } Shawn

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

[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

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 I

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

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 actually

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

[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

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. You might

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

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

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 know

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 $_REQUEST

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. input type=hidden name=userIds[] value=5/ User 5 input type=checkbox name=userCanDelete[5]/

[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... ?php $cmd = /path/to/shell/script/script.sh; system($cmd . /tmp/error ); ? Script contains this command... #!/bin/bash

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 so when I

[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

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 that I need

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

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

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

  1   2   >