[PHP] Why $ on variable names?

2002-11-12 Thread brucedickey
I've searched, but haven't found the answer -- from a language design point of view, why are there $ on the front of PHP variable names? Thanks, Bruce -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Leif K-Brooks
I'm just guessing here. For one thing, to seperate variables from constants. Also, it makes it possible to use variables within quotes. brucedickey wrote: I've searched, but haven't found the answer -- from a language design point of view, why are there $ on the front of PHP variable names? T

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Chris Wesley
On Tue, 12 Nov 2002, brucedickey wrote: > I've searched, but haven't found the answer -- from a language design point > of view, why are there $ on the front of PHP variable names? ... so Perl converts know where there variables are ;) ~Chris -- PHP General Mailing List (http://www.ph

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Jason Wong
On Wednesday 13 November 2002 02:35, Leif K-Brooks wrote: > I'm just guessing here. For one thing, to seperate variables from > constants. Also, it makes it possible to use variables within quotes. Yup. So you can have: print "I'm a $variable"; instead of the messy javascript way: alert("

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Rasmus Lerdorf
So you can put variables inside quoted strings. Without $ how would this work? price = 9.95; echo "The price is price"; It also means you can have variables that are the same name as function names. -Rasmus On Tue, 12 Nov 2002, brucedickey wrote: > I've searched, but haven't found the an

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
Pablo wrote... > Your method assumes something about your users: that they click on links. > This may be unlikely, but what if a user uses the 'copy URL to clipboard' > (or equivalent) feature of their browser? It could be pasted into an e-mail, > posted to a newsgroup, etc. Exactly -- this is th

RE: [PHP] Why $ on variable names?

2002-11-12 Thread brucedickey
Thanks for all the replies. I just seemed to me that to add $ everywhere was more work (and not as aesthetic as a plain word) than using some other syntax for print. But, in fact, it could have been designed so you could still use print "I'm a $variable"; without the use of $ in other us

Re: [PHP] Help w/ $_SESSION

2002-11-12 Thread conbud
I am using session_start, im using php 4.2.3 Lee "Conbud" <[EMAIL PROTECTED]> wrote in message news:20021112075942.16291.qmail@;pb1.pair.com... > Hey, > I do have it in a variable but I just choose to leave it out. > Ive tried so many different things with this and even what you gave me for > som

[PHP] RE: Why $ on variable names?

2002-11-12 Thread Philip Hallstrom
It could have, but what does "array" consist of below? variable = "foo"; array[variable] = variable; Is it "variable" => "variable", or "foo" => "foo" or "variable" => "foo" or ? By using $ you keep things simpler... at least to me :) -philip On Tue, 12 Nov 2002, brucedickey wrote: > Thanks f

[PHP] PHP, MySQL, and Japanese text

2002-11-12 Thread Step Schwarz
Hi all, I was hoping to find some code examples or tutorials on using PHP/MySQL with Japanese text. The site I've built is very close, but apparently a very small subset of the characters become garbage when pulled from the database into a form to be modified and resubmit to the database. Text i

RE: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Charles Wiltgen [mailto:lists@;wiltgen.net] > Sent: 12 November 2002 18:48 > > > Your method assumes something about your users: that they > click on links. > > This may be unlikely, but what if a user uses the 'copy URL > to clipboard' > > (or equivalent) fe

[PHP] php/mysql not mutually connected

2002-11-12 Thread Alberto Brea
I have php (as an apache module) and mysql up and running on Windows in the same computer, but they seem to be unconnected. How do I configure php.ini, my.ini, etc for a php script to find and query a database in the mysql server? Thanks for any help Alberto Brea

[PHP] register_globals off issues

2002-11-12 Thread Mark Spohr
I'm very new to PHP/mySQL and am working through the "PHP and mySQL for Dummies" examples. Unfortunately, these were all written with register_globals on and the system I'm using has register_globals off. I'm having trouble converting the examples to use the $_POST() expression. Specifically, t

[PHP] Generating MS Excel files with PHP

2002-11-12 Thread [-^-!-%-
All, Does anyone know where I can find information on generating MS Excel files, with PHP? I was able to generate the Excel file (so I thought), but Excel cannot open the file. Can someone point me to some references, tutorials and/or samples? Please help. -john -- PHP General Mailing List (

Re: [PHP] Generating MS Excel files with PHP

2002-11-12 Thread 1LT John W. Holmes
> Does anyone know where I can find information on generating MS Excel > files, with PHP? > > I was able to generate the Excel file (so I thought), but Excel cannot > open the file. Can someone point me to some references, tutorials and/or > samples? Easiest way is to just create an HTML table and

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
Ford, Mike [LSS] wrote... > I've been staying out of this discussion as I've been sure there was something > I was missing, but this comment I really don't understand -- if you use PHP's > built-in sessions, all that gets into the URL (maybe, if cookies are disabled) > is the session

[PHP] RELEASE: phpDocumentor 1.1.0 FINAL

2002-11-12 Thread Greg Beaver
November 12, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0. This exciting release is a stable release of phpDoc

Re: [PHP] register_globals off issues

2002-11-12 Thread Ernest E Vogelsinger
At 21:05 12.11.2002, Mark Spohr said: [snip] >I'm trying to convert this to use $_POST() as such: > > if (@$_POST['form'] == "yes") >{ >unset($_POST['form']); >} > >However, this does not work. It appears that you can't unset the >$_POST['form'] array eleme

[PHP] Re: Generating MS Excel files with PHP

2002-11-12 Thread Manuel Lemos
Hello, On 11/12/2002 06:06 PM, [-^-!-%- wrote: Does anyone know where I can find information on generating MS Excel files, with PHP? I was able to generate the Excel file (so I thought), but Excel cannot open the file. Can someone point me to some references, tutorials and/or samples? Here you

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Jonathan Rosenberg \(Tabby's Place\)
In an earlier message, Jason Wong [mailto:php-general@;gremlins.com.hk] said ... > Yup. So you can have: > print "I'm a $variable"; > instead of the messy javascript way: > alert("I'm a " . $variable); But the language could still support variable evaluation within strings without requirin

Re: [PHP] Drop down list with date

2002-11-12 Thread rija
Try this one: echo "" ; for ($d=0 ; $d <7 ; $d++) echo "".date("d/m/y", strtotime("+$d day"))."\n " ; echo " " ; - Original Message - From: "Miguel Brás" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 4:15 AM Subject: [PHP] Drop down list with date >

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Marco Tabini
If I can venture a comment, what you think "clutters" the code others may find a quick and easy way to identify a variable in it. Just a thought. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visi

[PHP] Query problem

2002-11-12 Thread Cesar Aracena
Hi all, I came back from vacations and forgot some things about queries... can anyone tell me what is wrong with this? of all the error messages I set up in the script, none comes back on the page but the record is not saved... Any thiughts? Thanks in advance, Cesar -- PHP General Mailing

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Jonathan Rosenberg \(Tabby's Place\)
In an earlier message, Marco Tabini [mailto:marcot@;inicode.com] saidf ... > If I can venture a comment, what you think > "clutters" the code others may find a quick and > easy way to identify a variable in it. I guess this could be true. But I don't understand why someone would need an "easy" w

Re: [PHP] Query problem

2002-11-12 Thread BigDog
In your php.ini file you can turn on all the errors have have them displayed... I would suggest doing that and you should see some errors if there are any. Have you verified that dates in the database via mysql command line or gui application. On Tue, 2002-11-12 at 21:27, Cesar Aracena wrote: >

[PHP] PHP HTTP Forwarding / Port Translation

2002-11-12 Thread Mike MacDonald
Hi People ! (Diagram below in text) I'm interested in thoughts on how to effect the equivalent of Router Network Address Translation for a PHP page. The feature that are important are: o Can process forms o Can pass images o Can manage relative HREFs o Least invasive to the en

[PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
hello I want to connect to a local NDS via LDAP, but when i try to bind i get the error: Unable to bind: Strong authentication required after i search in google and php.net manual i wonder if it is possible do connect with strong authentication any further suggenstions would be great tia kar

[PHP] Error Message

2002-11-12 Thread Ben C .
I am receiving the following error on my change password form: Warning: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in /home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 Does an

Re: [PHP] Error Message

2002-11-12 Thread Adam Williams
are you using header() after you've already sent data to the browser (such as printing something to the user)? Adam On Tue, 12 Nov 2002, Ben C. wrote: > I am receiving the following error on my change password form: > > Warning: Cannot send session cache limiter - headers

[PHP] phpMyAdmin 2.2.6

2002-11-12 Thread Iguider
Hi I am running normally a phpMyAdmin 2.2.6, until yesterday it shows me : Host 'localhost' is not allowed to connect to this MySQL server please help

Re: [PHP] Query problem

2002-11-12 Thread Cesar Aracena
The problem is that I have a remote "rented" server and I don't have access to these configurations any other ideas are welcome. Thanks any ot - Original Message - From: "BigDog" <[EMAIL PROTECTED]> To: "Cesar Aracena" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Tuesd

Re: Re: [PHP] Error Message

2002-11-12 Thread Ben C .
I am using the require() function. - 1st require() includes the top portion of my page on every page. - 2nd require puts the following code in the middle: 16 || strlen($new_passwd)<6) echo "New password must be between 6 and 16 characters. Try again."; else { // attem

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Larry Rosenman
How about: That's the way the language designers did it, and there's LOTS of PRODUCTION code out there that uses it. See also the precedence of PERL. LER --On Tuesday, November 12, 2002 16:40:46 -0500 "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]> wrote: In an earlier messag

Re: [PHP] Query problem

2002-11-12 Thread rija
$query = "INSERT INTO mararegistro (visitorid, fname, lname, borndate, address, city, country, phone, how) VALUES (null, 'c', 'c', '12', 'c', 'c', 'c', '12', 'c')"; I think you should put quotes around all of these values 12 exept null or change null to '' /// - Original Message - From:

Re: Re: [PHP] Error Message

2002-11-12 Thread Kevin Stone
You must do session_start() before any output. You can get around this with output buffering. ob_start(); ob_end_clean(); -Kevin - Original Message - From: "Ben C." <[EMAIL PROTECTED]> To: "Adam Williams" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 12, 2002 3:35 P

RE: [PHP] Query problem

2002-11-12 Thread Davy Obdam
Hi Cesar, > Hi all, > > I came back from vacations and forgot some things about > queries... can anyone tell me what is wrong with this? of all > the error messages I set up in the script, none comes back on > the page but the record is not saved... Dont we all forget 'things' after vacations

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Ernest E Vogelsinger
At 22:40 12.11.2002, Jonathan Rosenberg \(Tabby's Place\) said: [snip] >I guess this could be true. But I don't understand why someone would need >an "easy" way to identify variables? Why not an easy way to identify >function names? Or constants? > >In any

Re: [PHP] phpMyAdmin please help

2002-11-12 Thread Iguider
Hi thanks a lot John Nichel and Stephan , I understand now. I put blank in password and it works. thanks. but after that in the next day (as I said my previous email) : Mysql stop working and shows : "Host 'localhost' is not allowed to connect to this MySQL server" thanks for help - Original

Re: [PHP] RE: Why $ on variable names?

2002-11-12 Thread Ernest E Vogelsinger
At 22:56 12.11.2002, Joel Boonstra said: [snip] >All I know is when I think back to programming C++, I can't imagine how >I could deal with variables that didn't have something in front of them >to separate them from barewords. [snip]-

Re: [PHP] PHP HTTP Forwarding / Port Translation

2002-11-12 Thread Ernest E Vogelsinger
At 23:00 12.11.2002, Mike MacDonald said: [snip] >Hi People ! (Diagram below in text) Hi! I like your graphics, esp. the folded corner ;-) >I'm interested in thoughts on how to effect the equivalent of Router >Network Address Translation for a PHP page. >

Re: [PHP] Error Message

2002-11-12 Thread Ernest E Vogelsinger
At 23:23 12.11.2002, Ben C. said: [snip] >I am receiving the following error on my change password form: > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14)

RE: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-12 Thread Nick Richardson
Still having problems getting mcrypt to work under Windows. But I think I have narrowed it down to me not having the correct version of php_mcrypt.dll. I downloaded the source for PHP and attempted to compile this myself, but can not get it to work. If anyone has any information about where I ca

Re: [PHP] Query problem

2002-11-12 Thread Ernest E Vogelsinger
At 23:35 12.11.2002, Cesar Aracena said: [snip] >The problem is that I have a remote "rented" server and I don't have access >to these configurations > >any other ideas are welcome. Thanks > >any ot > >- Original Message - >From: "BigDog" <[EMAIL PROT

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Justin French
Well, you seem so sure it will work, so give it a go... I can't see how, but am totally willing to learn! Have you got any info on invisible gets? Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mai

Re: [PHP] Query problem

2002-11-12 Thread rija
error_reporting() ; 1 E_ERROR 2 E_WARNING 4 E_PARSE 8 E_NOTICE 16 E_CORE_ERROR 32 E_CORE_WARNING 64 E_COMPILE_ERROR 128 E_COMPILE_WARNING 256 E_USER_ERROR 512 E_USER_WARNING 1024 E_USER_NOTICE - Original Message - From: "C

[PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
I am having issues uploading a file. I am trying to up load a file from my computer to the server so taht I can run a mysql query using the load data infile query. here is the code Remote File Name: $users_file"; echo "Local File Name: $users_file_name"; echo "L

[PHP] Can you read a parsing PHP page's results

2002-11-12 Thread Colin Kettenacker
Is there anyway at all of reading the results of a parsing PHP page from within that same PHP page itself. In other words can you read the HTML code it's going to create. I know that you can use regular expressions to parse the HTML page manually swapping variable content as you would with most any

[PHP] displaying a TIFF file

2002-11-12 Thread Joseph Szobody
Folks... when I execute the following code, I get a big black nothing. I think it's the right size, but all black. No image is showing up. What gives? Header("Content-type: image/tiff"); $filename = image.tif $file = fopen("$filename",rb); fpassthru($file); fclose($file); Any help would be ap

RE: [PHP] Can you read a parsing PHP page's results

2002-11-12 Thread John W. Holmes
> Is there anyway at all of reading the results of a parsing PHP page from > within that same PHP page itself. In other words can you read the HTML > code > it's going to create. I know that you can use regular expressions to parse > the HTML page manually swapping variable content as you would wit

Re: [PHP] File Upload problem

2002-11-12 Thread Ernest E Vogelsinger
At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data>name=MAX_FILE_SIZE> > > } >?> >When I submit the form at the bottom of the script, the $user_file variable >equals "none". I am unable to figure out what is going on. The var

Re: [PHP] displaying a TIFF file

2002-11-12 Thread Ernest E Vogelsinger
At 00:36 13.11.2002, Joseph Szobody said: [snip] >Folks... when I execute the following code, I get a big black nothing. I >think it's the right size, but all black. No image is showing up. What gives? > > >Header("Content-type: image/tiff"); > >$filename =

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
Justin French wrote... > Well, you seem so sure it will work, so give it a go... I can't see how, but > am totally willing to learn! > > Have you got any info on invisible gets? It's simple, which is one thing I like about it. My submit.php looks like this: Then to send a new value for a

Re: [PHP] Problem with sessions

2002-11-12 Thread rija
maybe you should remove the dot before the session path or do like this : session.save_path = C:\PHP\sessions\tmp - Original Message - From: "Charlie Fowler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 10:19 AM S

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
It was a typo. Sorry. Robbert van Andel === Network Operator NW Regional Operations Center Charter Communications ROC Phone: 866-311-6646 Desk Phone: 360-828-6727 email: DL NW ROC === -Original Message- From: Ernest E Voge

[PHP] No PHP question, rather Apache config

2002-11-12 Thread Ernest E Vogelsinger
Hi folks, sorry, no PHP or else this time, just a quick OT question (don't want to need to subscribe to another mailing list). I'm just messing around with our Apache config and thought someone could give me a quick pointer... Here we go: AllowOverride AuthConfig Limit The .htaccess file

[PHP] Trying to e-mail password

2002-11-12 Thread Ben C .
I am trying to have a form that send a user their email and password to login. I am using the following: while ($row = mysql_fetch_array($result)) { $email = $row['email']; $password = $row['password(password)']; When I use the mail() function to send both $email

Re: [PHP] Trying to e-mail password

2002-11-12 Thread Ernest E Vogelsinger
At 01:09 13.11.2002, Ben C. said: [snip] >I am trying to have a form that send a user their email and password to >login. I am using the following: > >while ($row = mysql_fetch_array($result)) { > $email = $row['email']; > $passw

RE: [PHP] Why $ on variable names?

2002-11-12 Thread brucedickey
Yeah, I wondered about that. Having heard that C was designed in part for the parser. A parser with no lookahead (or maybe 1 char of lookahead) was used, which is why hex numbers start with "0x" instead of being suffixed with "_16", just to contrive an example. I would be curious to hear the autho

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
What type of strong authentication does it want? Do you need to connect via ssh or something... On Tue, 2002-11-12 at 22:13, Karim Jafarmadar wrote: > hello > > I want to connect to a local NDS via LDAP, but when i try to bind i get > the error: > > Unable to bind: Strong authentication requ

RE: [PHP] Mcrypt Under IIS 5 / Win32?

2002-11-12 Thread BigDog
Can u not get it from php.net...the zip file that contains all the extensions and dlls...not the installer... That should have the one that you need. I am still thinking it is an issue with the path...it took me about a week to get it all working... On Tue, 2002-11-12 at 23:08, Nick Richardson

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
thanks for your reply the whole error message is Warning: LDAP: Unable to bind to server: Strong authentication required and when i connect via SSH its something like that Warning: LDAP: Unable to bind to server: No such Object in ... i am running this thing on a debian box with php4 and openl

[PHP] Solution: Re: [PHP] No PHP question, rather Apache config

2002-11-12 Thread Ernest E Vogelsinger
Found it - sorry. For anyone curious here's what I found: You _need_ to have an Order directove for Allow, so: the .htaccess file reads AuthName "IPlease authenticate" AuthType Basic AuthUserFile /www/.htpasswd AuthGroupFile /www/.htgroup Require group internal Order deny,allow

Re: [PHP] ldap strong authentication

2002-11-12 Thread Ray Hunter
So you are connecting via ldaps://host in the ldap_connect function right? then when you bind make sure you are using the appropriate rdn for that ldap server. That is probably why u are getting a "No such Object" error. On Wed, 2002-11-13 at 00:19, Karim Jafarmadar wrote: > thanks for your r

[PHP] Multiple selections

2002-11-12 Thread Todd Cary
I have a pull-down with the MULTIPLE attribute. If the Form is of Type GET and two values are selected (e.g. select1 and select2), I see in the URL the following: ?myvar=select1&myvar=select2 "myvar" appears twice, however, if I check the $HTTP_GET_VARS, I only have one value: myvar=select2.

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
On 12 Nov 2002 17:24:38 + Ray Hunter <[EMAIL PROTECTED]> wrote: > So you are connecting via ldaps://host in the ldap_connect function > right? > > then when you bind make sure you are using the appropriate rdn for that > ldap server. do i have to use another rdn, than when connecting via lda

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
You have two problems it seems. 1. Wrong connection security...now you are using ldaps 2. Now you have the incorrect rdn. when you tried it with ldap you could not even pass the rdn because the encryption was not sufficient. Now you have the encryption down and now it seems that the rdn is wrong

Re: [PHP] Multiple selections

2002-11-12 Thread Ernest E Vogelsinger
At 01:37 13.11.2002, Todd Cary said: [snip] >I have a pull-down with the MULTIPLE attribute. If the Form is of Type >GET and two values are selected (e.g. select1 and select2), I see in the >URL the following: > >?myvar=select1&myvar=select2 > >"myvar" app

Re: [PHP] Trying to e-mail password

2002-11-12 Thread rija
You should do like this: $password = $row['password']; This return weird crypted value of your password. Unless you want send the this weird password. The function mysql_password is irreversible, you cannot get back the value crypted by password. Use ENCODE and DECODE instead, - Original M

Re: [PHP] Multiple selections

2002-11-12 Thread Marco Tabini
Sure! Just add [] to the end of the name of the field. PHP will return all the values in an array: Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- Begin Message -

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
On 12 Nov 2002 17:33:35 + BigDog <[EMAIL PROTECTED]> wrote: > You have two problems it seems. > > 1. Wrong connection security...now you are using ldaps > 2. Now you have the incorrect rdn. Oh .. i get it you mean the second error is due to a ldap/nds problem but i got the connection right

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
Check the documentation on the openldap and see what you need to use for the rdn.. if you are running gnome you might want to test it out with gq. That is what i use to test out my connection and stuff with... On Wed, 2002-11-13 at 00:44, Karim Jafarmadar wrote: > On 12 Nov 2002 17:33:35 +

Re: [PHP] Multiple selections

2002-11-12 Thread Todd Cary
Many thanks!!  One thing I do not understand in the "types" of variables is the use and referencing of a variable with the "[]".  What I usually do is define a variable as $myvar = array(); And then I use the "[]" to refer to the elements.  However, if I understand you suggestion, which works

Re: [PHP] Multiple selections

2002-11-12 Thread David Rice
On Tuesday, November 12, 2002, at 07:34 PM, Ernest E Vogelsinger wrote: Sure it is - just name the listbox control "myvar[]" (note the angle brackets). PHP will recognize this being an array, and you'll end up with $myvar = array('select1','select2'); Is this the only way to do this? I jus

Re: [PHP] ereg_replace();

2002-11-12 Thread Gustaf Sjoberg
hi, i tried to implement the code, but it does not work if the string: a) doesnt contain any .. b) doesnt contain any c) doesnt contain any d) contains multiple ..'s so i altered it a little and this is what i came up with: )(.*?)(<\/pre>)(.*)/is', $string)) { if (!preg

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Jonathan Rosenberg \(Tabby's Place\)
In an earlier message, Larry Rosenman [mailto:ler@;lerctr.org] said ... > How about: > That's the way the language designers did it, and > there's LOTS of PRODUCTION code out there that uses it. Because "that's the way it is"? Well, that's good enough for me. I'll never question anything else

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Larry Rosenman
--On Tuesday, November 12, 2002 16:53:07 -0500 "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]> wrote: In an earlier message, Larry Rosenman [mailto:ler@;lerctr.org] said ... How about: That's the way the language designers did it, and there's LOTS of PRODUCTION code out there that

Re: [PHP] Trying to e-mail password

2002-11-12 Thread Ben C .
Is there not any way to reverse the crypted password before e-mailing?? If not, how do I use ENCODE / DECODE? > > From: "rija" <[EMAIL PROTECTED]> > Date: 2002/11/12 Tue PM 07:32:28 EST > To: "php" <[EMAIL PROTECTED]>, > "Ben C." <[EMAIL PROTECTED]> > Subject: Re: [PHP] Trying to e-mai

RE: [PHP] Trying to e-mail password

2002-11-12 Thread Nick Richardson
If the password is md5, then no - you can't reverse it because md5 is a one way hash. If you want to have bi-direction encryption/decryption, look into using mcrypt. - just not on windows... Because it will make you want to kill yourself. http://www.php.net/mcrypt -Original Message- From

[PHP] jobs?

2002-11-12 Thread arch
Can anyone recommend a good resource for php -related jobs, especially in the los angeles area? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Michael Sims
On Tue, 12 Nov 2002 15:55:52 -0800, you wrote: >It's simple, which is one thing I like about it. My submit.php looks like >this: > >session_start(); >header('Location: ' . $_REQUEST['target']); [snip] I'm curious...your redirect doesn't include the session ID, so how you maintain ses

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Upon reading my reply, I think perhaps I wasn't clear enough. I am using users_file, etc. I am unable to upload a file because $users_file is given the value of "none". -Original Message- From: Van Andel, Robert Sent: Tuesday, November 12, 2002 3:59 PM To: Ernest E Vogelsinger Cc: [EMA

[PHP] constants and sessions

2002-11-12 Thread Eduardo M. Bragatto
I have to change the constant "maximum_time_out" (via set_timeout_limit) on the "first" script, and keep it seted in a session, until the second script became to be loaded. Is that possible? [[]]'s Bragatto PS: sorry for my miserable english #) -- PHP General Mailing List (http://www.php.ne

[PHP] syntax question...

2002-11-12 Thread Kelly Meeks
I saw this used in a script, but after a couple of searches didn't come up with anything on php.net. $phpvarhere content; echo $var; ?> So, does this allow you to output mixed html/php without having to escape offending characters with no echo or print? Conceptually, would the syntax ab

Re: [PHP] syntax question...

2002-11-12 Thread bahwi
There are typically called a 'heredoc' or 'here document'. basically it changes the double quotation mark(") to 'content' (in this case). To start, do this << and to end it just type content; on a line by itself. The example you showed does echo the stuff out. It sets all the internal html to $

Re: [PHP] syntax question...

2002-11-12 Thread @ Edwin
Hello "Kelly Meeks" <[EMAIL PROTECTED]> wrote: > I saw this used in a script, but after a couple of searches didn't come up with anything on php.net. I think you're looking for this: http://www.php.net/manual/en/language.types.string.php#language.types.string .syntax.heredoc - E ...[snip]...

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Charles Wiltgen
Michael Sims wrote... > It's always been my experience that trans sid doesn't append the SID to header > redirects. You have to do it manually (I use the SID constant for this > purpose). When I test on a browser with cookies disabled, I imagine I'll find that I have to do that. That's okay, th

Re: [PHP] PHP, MySQL, and Japanese text

2002-11-12 Thread @ Edwin
Hello, "Step Schwarz" <[EMAIL PROTECTED]> wrote: > Hi all, > > I was hoping to find some code examples or tutorials on using PHP/MySQL with > Japanese text. The site I've built is very close, but apparently a very I'm not sure about tutorials in English but if you know Japanese, I'm sure you ca

[PHP] How To Delete All Files In A Directory

2002-11-12 Thread @ Nilaab
Hello Everyone, I have a directory that I want emptied everytime a script accesses a certain function. I tried using rmdir() and then mkdir(), thinking that it will delete the directory and the contents within it, and would create a brand new directory for me to work with from scratch. Well, that

RE: [PHP] How To Delete All Files In A Directory

2002-11-12 Thread Martin Towell
you could break out into the shell and do rm $dir/*(rm -r $dir/* if there's directories too) (or del $dir/*.* for dos) or use opendir, readdir, closedir to read the directory's content and use unlink to delete the file(s) (if $dir is not hardcoded, I can see a security hole he

Re: [PHP] How To Delete All Files In A Directory

2002-11-12 Thread @ Edwin
Hello, "@ Nilaab" <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I have a directory that I want emptied everytime a script accesses a certain > function. I tried using rmdir() and then mkdir(), thinking that it will > delete the directory and the contents within it, and would create a brand > n

Re: [PHP] Trying to e-mail password

2002-11-12 Thread rija
ENCODE(value, 'secret code') DECODE(field name, 'secret code') to record " ... VALUES ( ... blahblah, ENCODE('$passord', 'secret code', ... BLAH BHAL") ; and to read the value do like this MYSQL_QUERY("SELECT DECODE(password, 'secret code') as password, id, BLAH BLAH - Original Message

[PHP] RE: Why $ on variable names?

2002-11-12 Thread Joel Boonstra
> That's the way the language designers did it, and there's LOTS of > PRODUCTION code out > there that uses it. > > See also the precedence of PERL. Well, perl and PHP use the $ for slightly different reasons, it seems. In perl, the *thing* in front of a variable name ($, @, %) indicates

Re: [PHP] RE: Why $ on variable names?

2002-11-12 Thread Marco Tabini
It's a design decision that works well for me too. I don't see it as a particular waste, considering that there are other wastes I'd like to get rid of. PHP is a maturing language and there is (imho) still a lot of ground to cover. BTW, it's not a matter of "questioning"... as far as I'm concerned

[PHP] Problem with sessions

2002-11-12 Thread Charlie Fowler
Hi all,, Can some one help me with this little issue ... I am trying out some prewritten scripts curtesy of SAMS PHP and MYSQL Web Development, Ch24 - User Authenication & Personalisation on my server setup The Configuartion for my development environment is Apache 2.39, Win 2000, PHP 4.2.3 T

Re: [PHP] Problem with sessions

2002-11-12 Thread Ernest E Vogelsinger
At 00:19 13.11.2002, Charlie Fowler said: [snip] >.c:/php/sessions/tmp .c:/php/sessions/tmp > >open(.c:/php/sessions/tmp\sess_fa42372dcdbde0e457309f134d71827f, O_RDWR) >failed: Invalid argument (22) in C:\Program Files\Apache >Group\Apache2\htdocs\SAMS\Chap

RE: [PHP] Trying to e-mail password

2002-11-12 Thread John W. Holmes
If you want an email password feature, then just store it as plain text. If someone is able to get access to your database, that means they more than likely have access to the rest of your box, so your 'secret code' is worthless. ---John Holmes... > -Original Message- > From: rija [mailto

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Charles Wiltgen
Hello, I anyone out there using UTF-8 for files and databases? I want to use it for everything, and it'd be a major hassle if PHP's UTF-8 support was super- dependent on underlying OS issues, so any feedback is appreciated. -- Charles Charles Wiltgen wrote... > How mature is PHP's support for

Re: [PHP] PHP and UTF-8

2002-11-12 Thread jacob
I utf8_encode and utf8_decode all data that I put into XML files. The application is on a large site so it is thoroughly tested and has encoded and decoded data without problems. I have run the application on Linux Slackware and FreeBSD. Quoting Charles Wiltgen <[EMAIL PROTECTED]>: > Hello, >

RE: [PHP] Why $ on variable names?

2002-11-12 Thread Jonathan Rosenberg \(Tabby's Place\)
In an earlier message, Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at] said ... > Think of how an interpreter works. It parses the > sourcecode in realtime, not as a compiler. People must > _wait_, every time, until it is finished, > not only once like a compiler. Thus designers of > interpre

[PHP] XML into PHP

2002-11-12 Thread Philip J. Newman
How would i call a page in PHP that is XML? eg; if i had a file that was like below. http://www.philipnz.com/news/rss.xml and i wanted to include it onto a page. HELP (looking through the docs now) --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [

<    1   2   3   >