Re: [PHP] line feed

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 12:38:20 AM, you wrote: BS> Hello. BS> How do i print a line return using the echo command, for when i see the BS> page source, BS> i get the code line by line and not all in the same line. BS> using double quotes ( " ), i can put \n at the end and i get the result B

Re[3]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, TR> This will set the include path just before the document root: TR> if(isset($_SERVER["SCRIPT_FILENAME"])){ TR> $root = $_SERVER['SCRIPT_FILENAME']; TR> //echo "Root: $root"; TR> $script = $_SERVER['SCRIPT_NAME']; TR> $document_root = str_replace($sc

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
Hi, Saturday, March 5, 2005, 5:47:07 AM, you wrote: LG> Hello Richard, LG> Friday, March 4, 2005, 11:41:29 AM, you wrote: R>> http://php.net/set_include_path LG> Ok... Maybe I should put all this together in one e-mail so that all LG> the issues can be looked at... LG> The problem: LG> Findin

Re: [PHP] setcookie

2005-03-04 Thread Randy Johnson
The period was the issue all together, i took the extra out and it worked. Thanks for your help Randy Randy Johnson wrote: ok I see how that could be an issue. Here is my big problem that I have not been able to figure out. I have a client website that I am trying to fix 1. it has sessions in

Re: [PHP] setcookie

2005-03-04 Thread Randy Johnson
ok I see how that could be an issue. Here is my big problem that I have not been able to figure out. I have a client website that I am trying to fix 1. it has sessions in database, and uses set cookie 2. I can login with firefox/netscape/mozilla just fine 3. I cannot login with any version of IE

Re: [PHP] setcookie

2005-03-04 Thread Marek Kilimajer
Randy Johnson wrote: setcookie( "sess_key",$key,0,"/","." . str_replace( "www","",$_SERVER["SERVER_NAME"] ),0 ); Does that look right? No. if $_SERVER["SERVER_NAME"] == 'www.domain.com' "." . str_replace("www","",$_SERVER["SERVER_NAME"] ) will give you "..domain.com" -- PHP General Mailing List (

[PHP] setcookie

2005-03-04 Thread Randy Johnson
setcookie( "sess_key",$key,0,"/","." . str_replace( "www","",$_SERVER["SERVER_NAME"] ),0 ); Does that look right? Thanks! Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Submits to Forms

2005-03-04 Thread Marek Kilimajer
Marquez Design wrote: Greetings, I am trying to create a form that will do the following: First, select a page from a select box, Second, click on a button on the side that will do a specific function. Select page, then with the delete button, delete the file, Select page, then with the edit button

Re: [PHP] pulling content from a URL

2005-03-04 Thread Matthew Fonda
I would recommend using PEAR::HTTP_Request for this. It does exactly what you want to do, and can handle error handling very well http://pear.php.net/package/HTTP_Request > I'm writing a script that needs to put the contents of an external URL > into a variable. I need to include some sort of e

RE: [PHP] php 4 & php 5

2005-03-04 Thread Hans Zaunere
> > Is there a way to install two version of php on the same machine, and > > use them for two different users? > > Option 1: > Install two copies of Apache, with different httpd.conf files, on two > different ports. > Somebody gets stuck using http://example.com:81 (or any port but 80) but > th

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
Leif Gregory wrote: > Friday, March 4, 2005, 1:25:35 PM, you wrote: > R> If *those* are broken, you might as well just not use that host. > R> :-^ > > Your solution seems to be pretty bulletproof. I definitely appreciate > it. Just wondering though for posterity sake, have you or anyone ever > run

Re: [PHP] php 4 & php 5

2005-03-04 Thread Richard Lynch
timothy johnson wrote: > Is there a way to install two version of php on the same machine, and > use them for two different users? Option 1: Install two copies of Apache, with different httpd.conf files, on two different ports. Somebody gets stuck using http://example.com:81 (or any port but 80) b

AW: [PHP] pulling content from a URL

2005-03-04 Thread Mario Micklisch
[..] > into a variable. I need to include some sort of error checking that > will kill this request if for some reason the URL request hangs for > more then 15 seconds. In researching this, I think the correct > function to use is fsockopen, but I can't seem to get it to work. Can > someone

RE: [PHP] php 4 & php 5

2005-03-04 Thread Jay Blanchard
[snip] [snip] > No. > Yes. ;) [/snip] Why? [/snip] Never mind...Friday afternoon...it's five o'clock right here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pulling content from a URL

2005-03-04 Thread Nicholas W . Miller
I'm writing a script that needs to put the contents of an external URL into a variable. I need to include some sort of error checking that will kill this request if for some reason the URL request hangs for more then 15 seconds. In researching this, I think the correct function to use is fsoc

RE: [PHP] php 4 & php 5

2005-03-04 Thread Jay Blanchard
[snip] > No. > Yes. ;) [/snip] Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

AW: [PHP] php 4 & php 5

2005-03-04 Thread Mario Micklisch
> [snip] > Is there a way to install two version of php on the same machine, and > use them for two different users? > [/snip] > > No. Yes! Having that in my LiteSpeed-Servers configuration with 3 different PHP Versions. No problem if you use CGI or fastCgi's. On Apache also possible via the VHo

Re: [PHP] php 4 & php 5

2005-03-04 Thread John Nichel
Jay Blanchard wrote: [snip] Is there a way to install two version of php on the same machine, and use them for two different users? [/snip] No. Yes. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] php 4 & php 5

2005-03-04 Thread Jay Blanchard
[snip] Is there a way to install two version of php on the same machine, and use them for two different users? [/snip] No. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php 4 & php 5

2005-03-04 Thread timothy johnson
Is there a way to install two version of php on the same machine, and use them for two different users? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Jochem Maas
Richard Lynch wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i dont ever hav

Re: [PHP] Re: Authentication fails - SOLVED

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:02 PM Richard Lynch wrote: John Swartzentruber wrote: I stripped down my original script until it started receiving POST data, then I kept modifying it until I figured out where the problem was. I found it, but I'm still as clueless as every. To summarize: I have a form that posts to

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 1:25:35 PM, you wrote: R> If *those* are broken, you might as well just not use that host. R> :-^ Your solution seems to be pretty bulletproof. I definitely appreciate it. Just wondering though for posterity sake, have you or anyone ever run into a host that

Re: [PHP] Help with REGEXP please

2005-03-04 Thread John Nichel
Shaun wrote: Hi, Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Thanks for your help. preg_match ( "/ID_(.*)_FN/", $string, $result ) The data will be in $result[1] if there is a match. -- John C. Nichel ÜberGeek KegWorks.com 71

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Richard Lynch
phpninja wrote: > I think all php functions are case sensitive and must be all > lowercase. try changing "IsSet" to "isset" and give it a run. I im not > 100% sure because i always type every function in php lowercase and > keep it the same throughout the application so i dont ever have to > worry

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread Richard Lynch
Brian A. Anderson wrote: > I am having a difficulty including a url and passing it to an include > statement between it. The problem is when I have a plain url it works, but > if I try to pass it something to the query string it does not. Is there > some > way to format the string differently befor

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
> 6. The method (and this is the important one IMHO) would not require >editing "x" number of pages in a site to change some static path >that was set on each page. I believe you could get "x" to be 1, if you do this: 1. Set up a config_include_path.inc file in your DocumentRoot (possibly

RE: [PHP] Help with REGEXP please

2005-03-04 Thread Chris W. Parker
Shaun on Friday, March 04, 2005 11:55 AM said: > Please could someone tell me how i can extract the information from a > string that is after 'ID_' and before '_FN' Get the RegExCoach. It'll be your best friend. Try: /ID_(.*)_FN/ Chris. -- PHP General Mailing

Re: [PHP] Help with REGEXP please

2005-03-04 Thread Leif Gregory
Hello Shaun, Friday, March 4, 2005, 12:54:34 PM, you wrote: S> Please could someone tell me how i can extract the information from S> a string that is after 'ID_' and before '_FN' This will match any upper or lowercase letter and number. If you have other characters like _ , etc, then you'll ne

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
> > The below example works: > > -- > > > > ob_start(); > > include("http:/-.-.-.-/datachange.asp"); > > $message = ob_get_clean(); > > > > > > The below example does not work: > > -- > > $URL = "http:/-.-.-.-/datachange.asp$queryStri

[PHP] Re: upload and resize image script

2005-03-04 Thread Cristian Lavaque
P80 wrote: hey all I'm looking for a simple script that would upload an image and resize it to thumbnail using a form to upload the picture. anyone has a good script for that? thanx in advance Pat Hi Pat, I wrote this function to resize pictures to the max width/height, preserving proportions:

[PHP] Help with REGEXP please

2005-03-04 Thread Shaun
Hi, Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Database engine in PHP

2005-03-04 Thread Manuel Lemos
Hello, on 03/04/2005 03:45 PM Gerben said the following: I was wondering if there is any DBMS, like MySQL, which is (fully) implemented in php. That is a database engine written in PHP. I know this is not the most effecient way, but I'm not planning to use it for heavy weight database-driven-appli

Re: [PHP] Simple XML

2005-03-04 Thread Uroš Gruber
Jochem Maas wrote: Richard Lynch wrote: Uroš Gruber wrote: bar.com foo.com But I cant get to this "cd" If I print_r complete response object it out of interest what does print_r() actually output? better yet what does

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
Hello Richard, Friday, March 4, 2005, 11:41:29 AM, you wrote: R> http://php.net/set_include_path Ok... Maybe I should put all this together in one e-mail so that all the issues can be looked at... The problem: Finding a reliable method to include files, keeping in mind the following: 1. The s

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread kjohnson
"Brian A. Anderson" <[EMAIL PROTECTED]> wrote on 03/04/2005 12:37:29 PM: > The below example works: > -- > > ob_start(); > include("http:/-.-.-.-/datachange.asp"); > $message = ob_get_clean(); > > > The below example does not work: >

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread dan
John Swartzentruber wrote: On 3/4/2005 2:23 PM Dan wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same througho

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:02 PM Richard Lynch wrote: John Swartzentruber wrote: I stripped down my original script until it started receiving POST data, then I kept modifying it until I figured out where the problem was. I found it, but I'm still as clueless as every. To summarize: I have a form that posts to

Re: [PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
let me try it again... The below example works: -- ob_start(); include("http:/-.-.-.-/datachange.asp"); $message = ob_get_clean(); The below example does not work: -- $URL = "http:/-.-.-.-/datachange.asp$queryString"; ob_start();

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread John Swartzentruber
On 3/4/2005 2:23 PM Dan wrote: phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i don

[PHP] Problems including a url with query string variables

2005-03-04 Thread Brian A. Anderson
I am having a difficulty including a url and passing it to an include statement between it. The problem is when I have a plain url it works, but if I try to pass it something to the query string it does not. Is there some way to format the string differently before including it? ob_start(); ... $r

RE: [PHP] Image Submits to Forms

2005-03-04 Thread Chris W. Parker
Marquez Design on Friday, March 04, 2005 11:05 AM said: > Greetings, Greetings earthling! > Select page, then with the delete button, delete the file, > Select page, then with the edit button, edit the page. > > Does anyone know how I could do this? 1. Send a com

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread dan
phpninja wrote: I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i dont ever have to worry about that

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread phpninja
I think all php functions are case sensitive and must be all lowercase. try changing "IsSet" to "isset" and give it a run. I im not 100% sure because i always type every function in php lowercase and keep it the same throughout the application so i dont ever have to worry about that. Just a thought

[PHP] Image Submits to Forms

2005-03-04 Thread Marquez Design
Greetings, I am trying to create a form that will do the following: First, select a page from a select box, Second, click on a button on the side that will do a specific function. Select page, then with the delete button, delete the file, Select page, then with the edit button, edit the page. D

RE: [PHP] Database engine in PHP

2005-03-04 Thread Chris W. Parker
Gerben on Friday, March 04, 2005 10:45 AM said: > I have already asked this question, but I think I wasn't clear enough > of my intentions (thanks for all your responses anyway) Yeah you definitely weren't clear enough the first time... but this time you're definite

[PHP] Re: mass emailing on windows server

2005-03-04 Thread Manuel Lemos
Hello, on 03/04/2005 01:10 PM Reinhart Viane said the following: Unfortunately I have a windows server hosting that site. Anyone knows how to do mass email on a windows server? You may want to try this class for composing and sending mass mailing messages. It comes with several classes specialize

Re: [PHP] Re: Authentication fails - problem line found

2005-03-04 Thread Richard Lynch
John Swartzentruber wrote: > I stripped down my original script until it started receiving POST data, > then I kept modifying it until I figured out where the problem was. I > found it, but I'm still as clueless as every. > > To summarize: I have a form that posts to the same script that contains >

Re: [PHP] Database engine in PHP

2005-03-04 Thread tg-php
Did anyone recommend SQLite yet? It comes with PHP5 but I believe you can get an extension for PHP4 to do it as well. It's basically a super light-weight SQL based database system. Loads all the tables into memory if I remember right, but great for exactly what you're talking about (if I unde

Re: [PHP] Re: mysql problems

2005-03-04 Thread Richard Lynch
Jed R. Brubaker wrote: > Thank you both for your responces. > > Unfotuantely there is no form that instantiates this action. So the double > submit (while a good idea), is not possible. > > As for some sample code, it is part of a rather complicated system that > makes a number of changes but essen

[PHP] Database engine in PHP

2005-03-04 Thread Gerben
Hi, I have already asked this question, but I think I wasn't clear enough of my intentions (thanks for all your responses anyway) I was wondering if there is any DBMS, like MySQL, which is (fully) implemented in php. That is a database engine written in PHP. I know this is not the most effecient

Re: [PHP] line feed

2005-03-04 Thread Richard Lynch
Bruno Santos wrote: > How do i print a line return using the echo command, for when i see the > page source, > i get the code line by line and not all in the same line. > > using double quotes ( " ), i can put \n at the end and i get the result > i want, > but, using sinle quotes ( ' ), \n doesnt w

Re: [PHP] mass emailing on windows server

2005-03-04 Thread Richard Lynch
Reinhart Viane wrote: > I use a while loop and the mail function to send email to all subscribers > of > a site. This works fine for 50 users but I know there can be some problems > when you do it like this for 1000 users. > > Eg. Limit of page execution is exceeded and even server crashes because

RE: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Richard Lynch
Chris W. Parker wrote: > Leif Gregory > on Thursday, March 03, 2005 5:31 PM said: > >> Hello Richard, >> >> Thursday, March 3, 2005, 1:15:38 PM, you wrote: >>> include_path >> >> In the php.ini? But wouldn't that affect every virtual host on the >> server? Meaning

[PHP] establishing a TLS connection to a LDAP server

2005-03-04 Thread Aurélien MAGNIEZ
Hi, I've read a great article about connecting securely to LDAP using PHP (http://www.novell.com/coolsolutions/trench/5838.html). It works nice :-) I would like now to authenticate the both sides when establishing the TLS tunnel. In other words, my OpenLDAP requires a client certificate. After s

Re: [PHP] On Topic - Theoretical Concents of Anti-password trading/sharing solutions

2005-03-04 Thread AdamT
Just saw this on /. and thought it might be of interest in this thread: http://www.zdnet.com.au/news/security/0,261744,39183346,00.htm http://www.caida.org/outreach/papers/2005/fingerprinting/ "We introduce the area of remote physical device fingerprinting, or fingerprinting a physical device

[PHP] Re: mysql problems

2005-03-04 Thread Jon Drukman
Jed R. Brubaker wrote: I have a PHP script that populates a database table. No big deal. It creates mailing labels. However, a weird things keeps happening - every once in a while, a query is run twice. It is the same query, same information, even the same time (there is a now() in the query - a

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jason Barnett wrote: >> Jochem Maas wrote: >> >>>Rob Adams wrote: >> >> ... >> >>>you 100% sure your include_path is '.' ? just asking. >>>also you mention a /www/lib and a /www/include dir - maybe thats >>>the problem? >>

Re: [PHP] Re: mass emailing on windows server

2005-03-04 Thread Jochem Maas
Reinhart Viane wrote: Strange, I did not send any attachement with the message. Maybe by anti virus software automatically attached something yeah it was just cruft. -Oorspronkelijk bericht- Van: Jason Barnett [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 4 maart 2005 17:37 Aan: php-general

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This s

Re: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Leif Gregory
Hello Chris, Friday, March 4, 2005, 9:58:05 AM, you wrote: C> .htaccess Right.. But if you're on a hosted server running Sambar which is configured to ignore .htaccess, then what? (I'm not being facetious, this is actually an issue I've run across for a client). My point I guess, is that there s

RE: [PHP] Re: mass emailing on windows server

2005-03-04 Thread Reinhart Viane
Strange, I did not send any attachement with the message. Maybe by anti virus software automatically attached something -Oorspronkelijk bericht- Van: Jason Barnett [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 4 maart 2005 17:37 Aan: php-general@lists.php.net Onderwerp: [PHP] Re: mass emai

RE: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Chris W. Parker
Leif Gregory on Thursday, March 03, 2005 5:31 PM said: > Hello Richard, > > Thursday, March 3, 2005, 1:15:38 PM, you wrote: >> include_path > > In the php.ini? But wouldn't that affect every virtual host on the > server? Meaning I'd have to put all the includes for

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >My guess is the file *is* in the include path, but the current working >directory when require_once() executes is not what the OP thinks it is... I was hoping this was the case, but just checked it with: echo `pwd`; and

Re: [PHP] Consulta

2005-03-04 Thread John Nichel
J. L. Marcelo Chaparro Bustos wrote: Hola, bueno acabo de incribirme el la lista y queria saber si alguno de ustedes tiene un manual PHP basico que me pueda enviar o decir donde poder bajarlo, para orientarme un poco. gracias Marcelo http://us4.php.net/download-docs.php Also, this list is pretty

Re: [PHP] Consulta

2005-03-04 Thread trlists
On 4 Mar 2005 J. L. Marcelo Chaparro Bustos wrote: > Hola, bueno acabo de incribirme el la lista y queria saber si alguno > de ustedes tiene un manual PHP basico que me pueda enviar o decir > donde poder bajarlo, para orientarme un poco. gracias Translation: Hi, I just joined this list and I wan

[PHP] Re: mass emailing on windows server

2005-03-04 Thread Jason Barnett
Please do not send attachments to the list... feel free to post source code on the web though, and we will take a look at what you have. Actually, I'm afraid that I personally can't help you with this problem, but we try to keep code at pastebin websites and/or simplified code in your actual email

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jason Barnett
Jochem Maas wrote: > Rob Adams wrote: ... > > you 100% sure your include_path is '.' ? just asking. > also you mention a /www/lib and a /www/include dir - maybe thats > the problem? > > maybe you can make the problem go away by setting include_path to > '.:/www/include' or '.:/www/lib' This stil

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
The scenario I gave is very simplified. I'm actually trying to get tikiwiki working on a server, and the reason it won't run the install is because of this problem I've mentioned. It works as expected on my development server (WinXP), but on my production (FreeBSD) it fails. I don't have a /w

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Rob Adams wrote: One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? m

[PHP] mass emailing on windows server

2005-03-04 Thread Reinhart Viane
I use a while loop and the mail function to send email to all subscribers of a site. This works fine for 50 users but I know there can be some problems when you do it like this for 1000 users. Eg. Limit of page execution is exceeded and even server crashes because each time a mail is send

[PHP] Mass email with php on a windows server

2005-03-04 Thread Reinhart Viane
I use a while loop and the mail function to send email to all subscribers of a site. This works fine for 50 users but I know there can be some problems when you do it like this for 1000 users. Eg. Limit of page execution is exceeded and even server crashes because each time a mail is send

[PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. -- Rob "Rob Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From the manual on 'include': > > "Files for including are firs

[PHP] Include wierdness.

2005-03-04 Thread Rob Adams
>From the manual on 'include': "Files for including are first looked in include_path relative to the current working directory and then in include_path relative to the directory of current script. E.g. if your include_path is ., current working directory is /www/, you included include/a.php and

Re: [PHP] upload and resize image script

2005-03-04 Thread Robby Russell
On Fri, 2005-03-04 at 03:04 +0100, p80 wrote: > hey all > I'm looking for a simple script that would upload an image and resize it to > thumbnail using a form to upload the picture. anyone has a good script for > that? > There is a function in this post for resizing: http://blog.planetargon.co

Re: [PHP] Consulta

2005-03-04 Thread "Josué F. Machado"
http://www.php.net/docs.php At 09:58 AM 3/4/2005, J. L. Marcelo Chaparro Bustos wrote: Hola, bueno acabo de incribirme el la lista y queria saber si alguno de ustedes tiene un manual PHP basico que me pueda enviar o decir donde poder bajarlo, para orientarme un poco. gracias Marcelo -- PHP Gener

Re: [PHP] which class it is?

2005-03-04 Thread Jochem Maas
Jason Barnett wrote: Yangshiqi wrote: And I do not want all my classes to inherit the debughelper. Best regards, Yang Shiqi Yikes! I swear, some of these mailreader programs that people use... I thought this was an actual answer to someone's question... anywho... Have you checked out debug_backtr

Re: [PHP] Consulta

2005-03-04 Thread Jochem Maas
J. L. Marcelo Chaparro Bustos wrote: Hola, bueno acabo de incribirme el la lista y queria saber si alguno de ustedes tiene un manual PHP basico que me pueda enviar o decir donde poder bajarlo, para orientarme un poco. gracias Hola, this is an english speaking list as I don't undertstand the qu

[PHP] Consulta

2005-03-04 Thread J. L. Marcelo Chaparro Bustos
Hola, bueno acabo de incribirme el la lista y queria saber si alguno de ustedes tiene un manual PHP basico que me pueda enviar o decir donde poder bajarlo, para orientarme un poco. gracias Marcelo

Re: [PHP] line feed

2005-03-04 Thread tg-php
echo '' . chr(10); chr(10) should be line feed and chr(13) is a carriage return (aka "\r"). Unless I got those mixed up. But yes, you can do that. Or you could even cheat and do: echo '' . "\n"; -TG = = = Original message = = = Double quotes: echo "\n"; single quotes: echo ''; c

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 04 Mar 2005 14:23:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > anirudh dutt wrote: > > On Fri, 04 Mar 2005 12:37:55 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > >>anirudh dutt wrote: > >> > >> > >>won't debugme be available to all functions/methods? > > any function (outside o

Re: [PHP] line feed

2005-03-04 Thread Jason Petersen
On Fri, 04 Mar 2005 14:38:20 +, Bruno Santos <[EMAIL PROTECTED]> wrote: > Hello. > > How do i print a line return using the echo command, for when i see the > page source, > i get the code line by line and not all in the same line. > > using double quotes ( " ), i can put \n at the end and i

Re: [PHP] Data Encryption

2005-03-04 Thread trlists
On 2 Mar 2005 Erbacher Karl wrote: > I'm not sure if this is even a PHP question, but I'm hoping someone can help > me. I need to encipher data to be stored in a database and then I need to be > able to decipher it to use it. I was thinking of using DES and I obtained a > pair of keys, but I'm

[PHP] line feed

2005-03-04 Thread Bruno Santos
Hello. How do i print a line return using the echo command, for when i see the page source, i get the code line by line and not all in the same line. using double quotes ( " ), i can put \n at the end and i get the result i want, but, using sinle quotes ( ' ), \n doesnt work. if i use double qu

Re: [PHP] which class it is?

2005-03-04 Thread Jason Barnett
Yangshiqi wrote: > And I do not want all my classes to inherit the debughelper. > > > Best regards, > Yang Shiqi > Yikes! I swear, some of these mailreader programs that people use... I thought this was an actual answer to someone's question... anywho... Have you checked out debug_backtrace

[PHP] Re: User rights assignment

2005-03-04 Thread Jason Barnett
William Stokes wrote: > Hello > > I'am creating a web site for a soccer club with about 30 teams. The idea is > that there are about 20-30 persons who will update the data on the site via > web forms "admin interface". > > I have really hard time to figure out how to do the users right assingme

[PHP] User rights assignment

2005-03-04 Thread William Stokes
Hello I'am creating a web site for a soccer club with about 30 teams. The idea is that there are about 20-30 persons who will update the data on the site via web forms "admin interface". I have really hard time to figure out how to do the users right assingment. So far I have user authenticati

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] [PHP] how to get checkbox form data as array?

2005-03-04 Thread Frank Arensmeier
Try: /frank 2005-03-04 kl. 04.06 skrev tx: i create the html form as below and i receive the form data in php file as below: global $aaa; print_r($aaa); this action only echo "4" not the total array in array format,why?

Re: [PHP] which class it is?

2005-03-04 Thread Jochem Maas
anirudh dutt wrote: On Fri, 04 Mar 2005 12:37:55 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: anirudh dutt wrote: create a debug function (public) and use get_class. call that in the if you are using the 'public' keyword then you have to use php5,. i meant a function like this: in a globally

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] [PHP] how to get checkbox form data as array?

2005-03-04 Thread tx
i create the html form as below and i receive the form data in php file as below: global $aaa; print_r($aaa); this action only echo "4" not the total array in array format,why?

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 04 Mar 2005 13:04:18 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Use debug_backtrace() then he can't use a common function to do the debugging, or will have to do something like: debugme(debug_backtrace()); and the debug info will be restricted to what debug_backtrace provides. -

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 04 Mar 2005 12:37:55 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > anirudh dutt wrote: > > create a debug function (public) and use get_class. call that in the > > if you are using the 'public' keyword then you have to use php5,. i meant a function like this: in a globally included

Re: [PHP] which class it is?

2005-03-04 Thread Marek Kilimajer
Use debug_backtrace() yangshiqi wrote: class DebugHelper { var $_str; function do($string) ( //here I want to know which class called this function do to trace the bug. $this->_str .= $string; ) function show() {

Re: [PHP] which class it is?

2005-03-04 Thread Jochem Maas
anirudh dutt wrote: On Fri, 4 Mar 2005 17:41:01 +0800, yangshiqi <[EMAIL PROTECTED]> wrote: class DebugHelper { var $_str; function do($string) ( //here I want to know which class called this function do to trace the bug. $this->_str .= $string;

Re: [PHP] which class it is?

2005-03-04 Thread anirudh dutt
On Fri, 4 Mar 2005 17:41:01 +0800, yangshiqi <[EMAIL PROTECTED]> wrote: > class DebugHelper > { > var $_str; > function do($string) > ( > //here I want to know which class called this function do to > trace the bug. > $this->_str .= $string; >

RE: [PHP] which class it is?

2005-03-04 Thread yangshiqi
And I do not want all my classes to inherit the debughelper. Best regards, Yang Shiqi -Original Message- From: yangshiqi [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 5:41 PM To: 'Jochem Maas' Cc: 'php-general@lists.php.net' Subject: RE: [PHP] which class it is? class D

RE: [PHP] which class it is?

2005-03-04 Thread yangshiqi
class DebugHelper { var $_str; function do($string) ( //here I want to know which class called this function do to trace the bug. $this->_str .= $string; ) function show() { return $this->_str; }

SV: [PHP] Read From COM1 port

2005-03-04 Thread Kim Madsen
From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 3. march 2005 20:56 >> $fp = fopen("COM1", "rwb"); > You might try this: > $input = fopen("COM1", "rb"); > $output = fopen("COM1", "wb"); > Use $output to write, and $input to read. On a windows one would have to close the connection every tim

Re: [PHP] email attach and contain message together

2005-03-04 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi all I have the problem which I would like to send email with contain and attachment ( excel file) together not just a part. What should I do with the term please help phpmailer.sourceforge.net either save yourself the trouble of doing it yourself, or use their code to fi

Re: [PHP] which class it is?

2005-03-04 Thread Jochem Maas
yangshiqi wrote: I have a question that how to get the class name, which is initialized by other class or function. ... How can I get class b's name in a? you have the get_class() function, you have the __CLASS__ constant can you give an example of a situation where you are having trouble of

  1   2   >