Re: [PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-03 Thread Tom Rogers
Hi Thanks for that info, was just what I needed :) You can also create $iv with this: $iv = pack(a.mcrypt_enc_get_iv_size($td),$iv); I use base64_encode() and base64_decode() to store the result and send via the web. Tom At 01:02 PM 3/05/2002, Cédric Veilleux wrote: Hi, I had an

Re: [PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-03 Thread Cédric Veilleux
Hi, Thanks for the hint. Just a small note to let you know that my code to decrypt a string will return a string with filled with null characters at the end. You should trim() it. Also, anybody knows how to detect if the PHP build is linked with 2.2 or 2.4? I would

[PHP] Help with Bookmark

2002-05-03 Thread Rodrigo
Hi guys I'm trying to make a online bookmark adress book, this bookmark adress book, would consist of the following: A text file named name.txt, that would content the name of each of the users. A text file named pass.txt, that would contain a non-secure password for each user. A text file

[PHP] Hashes in text files

2002-05-03 Thread Rodrigo
Can I store Hashes in text files? If yes, how? Can I store a multi dimensional array in a text file? If not how should I do to store the data in one file and the pointer in another file? Thanx, Rodrigo

Re: [PHP] Re: snmp_set_quick_print or snmpwalkoid issue ?

2002-05-03 Thread Razvan Cosma
Yes, I have seen that, but the manual says I should get the only the value, not also the OID. Can anyone please run this code and tell me if they get the same result? On Thu, 2 May 2002, Ray \BigDog\ Hunter wrote: Basically you are not going to get the value type of the snmp, ie OID,

Re: [PHP] Hashes in text files

2002-05-03 Thread Marius Ursache
use mysql, forget about files.. they are too slow. Rodrigo a écrit : Can I store Hashes in text files? If yes, how? Can I store a multi dimensional array in a text file? If not how should I do to store the data in one file and the pointer in another file? Thanx, Rodrigo -- Marius

[PHP] Re: srand thought

2002-05-03 Thread John Lim
Hello Gerard, The point is that we wanted adodb to work out of the box so that is why srand( ) is called. You can do it yourself if you want to (and comment out the srand) , or let adodb do it for you. Regards John Gerard Samuel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Help with Bookmark

2002-05-03 Thread Brian McGarvie
an idea would to be not to use flat files for it... use a database, try mysql... -Original Message- From: Rodrigo [mailto:[EMAIL PROTECTED]] Sent: 03 May 2002 08:02 To: [EMAIL PROTECTED] Subject: [PHP] Help with Bookmark Hi guys I'm trying to make a online bookmark adress book, this

Re: [PHP] Hashes in text files

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 15:16, Rodrigo wrote: Can I store Hashes in text files? If yes, how? Can I store a multi dimensional array in a text file? If not how should I do to store the data in one file and the pointer in another file? You can use serialize() on your array before you write to

Re: [PHP] Hashes in text files

2002-05-03 Thread Miguel Cruz
On Fri, 3 May 2002, Rodrigo wrote: Can I store Hashes in text files? If yes, how? Can I store a multi dimensional array in a text file? If not how should I do to store the data in one file and the pointer in another file? http://php.net/serialize That function will turn any PHP data

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-03 Thread Christoph Starkmann
Yes, but that's what the php-db list is for. I am sorry... Gonna get this list. Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP and SOAP

2002-05-03 Thread Quentin Bennett
Hi, Let Manuel be your friend! http://www.phpclasses.org/ Quentin Udo Giacomozzi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Probably this question has been asked a couple of times but I could not find a complete answer to my question... I am new to PHP

[PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Mikael Syska
I have made a phpscript to register all things on a computer, and then it stores the information in a database, but php converts \\CADS1\HP2100PCL to CADS1\\HP2100PCL how can I force PHP to not do that cause CADS1 \\HP2100PCL aint a right address for a printer, cause there are too many

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 17:07, Mikael Syska wrote: I have made a phpscript to register all things on a computer, and then it stores the information in a database, but php converts \\CADS1\HP2100PCL to CADS1\\HP2100PCL how can I force PHP to not do that cause CADS1 \\HP2100PCL aint a

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Mikael Syska
[EMAIL PROTECTED] (Jason Wong) wrote in news:php.general-95846 @news.php.net: stripslashes() thanks, now it works -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 17:29, Mikael Syska wrote: [EMAIL PROTECTED] (Jason Wong) wrote in news:php.general-95846 @news.php.net: stripslashes() thanks, now it works Do read up on /why/ you need it. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Mikael Syska
[EMAIL PROTECTED] (Jason Wong) wrote in news:php.general-95848 @news.php.net: @news.php.net: stripslashes() thanks, now it works Do read up on /why/ you need it. ohhh, what do u mean??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Browser class

2002-05-03 Thread José León Serna
Hello: Do you know of any php class/code that acts as a browser? I want to browse external pages from my website and place the external pages inside my web as if were own content. I supose must use sockets to get the content and parse the links inside the page to allow keep browsing inside.

[PHP] Re: Browser class

2002-05-03 Thread Manuel Lemos
Hello, José león serna wrote: Hello: Do you know of any php class/code that acts as a browser? I want to browse external pages from my website and place the external pages inside my web as if were own content. I supose must use sockets to get the content and parse the links inside the

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 17:37, Mikael Syska wrote: [EMAIL PROTECTED] (Jason Wong) wrote in news:php.general-95848 @news.php.net: @news.php.net: stripslashes() thanks, now it works Do read up on /why/ you need it. ohhh, what do u mean??? OK, at the very least read the manual

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
Just out of interest, what's the standard/best/triedtested method for handling errors in relation to connecting to DB's? i.e. how to check that the connection was a success, and if not then display why. any pointers appreciated. .b -Original Message- From: Mike Eheler

Re: [PHP] Object Reference Serialization

2002-05-03 Thread Adam Langley
OK, heres all the code... I have a BoundForm class, a BoundFormPage class, and a BoundTextField... I create a BoundForm, add a BoundFormPage object to it, then add a BoundTextField to the BoundFormPagethen I add the root node (the BoundForm) to the SESSION... The Form, and Page survive

[PHP] File Uploads Security Fix

2002-05-03 Thread Miguel Loureiro
Hello, after copy do_download.php to php4.0.6/main what I have to do? T.Y. -- Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Uploads Security Fix

2002-05-03 Thread Manuel Lemos
Hello, Miguel Loureiro wrote: Hello, after copy do_download.php to php4.0.6/main what I have to do? T.Y. do_download.php is not the name of the download file. It should be rfc1867.c.diff-4.0.6.gz . Here is the correct URL. http://www.php.net/distributions/rfc1867.c.diff-4.0.6.gz What you

Re: [PHP] Object Reference Serialization

2002-05-03 Thread Adam Langley
No worries...I just realized that my object never repopulated the underlying classes with previous object references...Thanks guys, but I see my problem now... Cheers. Adam Langley. Thies C. Arntzen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, May

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
John, presumably I can leave the error reporting on - but pipe it into a file if i wanted, rather than displaying on screen, and then redirect the user to another page? Not asking for code sample here, just whether I can do it or not :) /me goes to look up mysql_error() Cheers, .b

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread Jon Haworth
Hi Ben, John, presumably I can leave the error reporting on - but pipe it into a file if i wanted, rather than displaying on screen, and then redirect the user to another page? Of course you can - I generally have my pages send me email when they throw an error, but that's because I'm

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
Oh, i agree entirely. Ok, i'll look into the logging/mailing solution - something i've been doing in ASP for years but am new to in PHP. Cheers, .b -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 03 May 2002 11:57 To: '[EMAIL PROTECTED]'; PHP Subject: RE:

[PHP] New Session Variable unset doesn't work

2002-05-03 Thread Sascha Ragtschaa
Hi, I somehow cannot unset Session variables. If I set for example $_SESSION[error]=formcheck (the new style) and I want to unset it at the end of the page (unset($_SESSION[error])), it's there again on the next page. Is there a special way to unset the new Session variables? I am using

[PHP] Witch var is the biggest and the lowest

2002-05-03 Thread Mikael Syska
i have 10 vars, and I would like to have them posted, so the higest is first and the second highest etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] rather a mysql question

2002-05-03 Thread Ando Saabas
Sorry that this is more of a mysql question, but since most php programmers use it a lot, i though i might find the answer without subscribing to mysql list, here goes: When i do a query from a big table using indexes,it takes for example 5 seconds. Now if i, after some time repeat the query, the

[PHP] Export selected data to a text file

2002-05-03 Thread Miva Guy
I'm brand new to PHP, but very familiar with how to do this in another language. I'm want to read a member's record and export the selected data to a downloadable vCard. The vCard is simply a text file with a .vcf extension. Once I've read all the data for that user, I need to create the file

[PHP] Call to a member function on a non-object...?

2002-05-03 Thread Richard Brenner
Hi. When I try to call a manual defined function in my function.inc file, I get the error: Fatal error: Call to a member function on a non-object in /www/xyz/.. on line xy I've defined the function in a seperate .inc file and included this is the mainpage. Do you have any solutions for this

[PHP] Fatal error: Call to a member function on a non-object in /www/xynz on line 19

2002-05-03 Thread Richard Brenner
Hi there. I created an inc file with a single function and included it in my general script. When I try to start the function out the the program, I receive the following error message: Fatal error: Call to a member function on a non-object in /www/xynz on line 19 Does someone know, what

Re: [PHP] Export selected data to a text file

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 19:20, Miva Guy wrote: I'm brand new to PHP, but very familiar with how to do this in another language. I'm want to read a member's record and export the selected data to a downloadable vCard. The vCard is simply a text file with a .vcf extension. Once I've read all

Re: [PHP] Witch var is the biggest and the lowest

2002-05-03 Thread Jason Wong
On Friday 03 May 2002 19:19, Mikael Syska wrote: i have 10 vars, and I would like to have them posted, so the higest is first and the second highest etc. Put your variables into an array then sort it. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

[PHP] PHP editing environment

2002-05-03 Thread Pag
Hi, i am new to the list and i am quite impressed with whats going on over here. Anyway, just have a small question. Have been coding php for a while now but i still havent found a stable (easy and not time consuming) way of working in PHP, i mean, i use homesite5 to code and

[PHP] Witch var is the biggest and the lowest

2002-05-03 Thread The_RadiX
and witch is spelt Which... no harm intended.. just a tip for those English grammatically correct people out there who care about spelling.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494

Re: [PHP] Re: How do I Install PHP on Apache 2, on win32

2002-05-03 Thread Herbert Mraz
Vincent, as register_globals is off, I use echo $SERVER['PHP_SELF']; which works fine... though everything has to be uppercase, what surprised me! Herb - Original Message - From: Vincent Kruger [EMAIL PROTECTED] To: Herbert Mraz [EMAIL PROTECTED] Sent: Friday, May 03, 2002 1:22 AM

[PHP] I-worm/Klez and a GIF query/question

2002-05-03 Thread r
Hey all, Whah, talk about getting a response, I posted the I-Worm/Klez question hoping to get one or two replies of people who actually got infected..I got more than 40 replies! I got two more today, but one poor dude says he got around 149 and counting! Anyway, thanks for your replies

RE: [PHP] rather a mysql question

2002-05-03 Thread Jay Blanchard
[snip] When i do a query from a big table using indexes,it takes for example 5 seconds. Now if i, after some time repeat the query, the query takes about 0.5 secs. So far i thought it was because of caching, but now i read mysql (v3.23) doesnt support query cache. So this really gets me

RE: [PHP] Re: tutorial on global variables

2002-05-03 Thread John Holmes
Just CPU time to make all of the new variables. ---John Holmes... -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:58 PM To: Philip Olson; [EMAIL PROTECTED] Subject: Re: [PHP] Re: tutorial on global variables After reviewing

RE: [PHP] PHP editing environment

2002-05-03 Thread Jay Blanchard
[snip] Have been coding php for a while now but i still havent found a stable (easy and not time consuming) way of working in PHP, i mean, i use homesite5 to code and when i want to test the php i upload the scripts and test them on the site. This process is a bit time consuming, so i

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread John Holmes
There's a whole section in the manual on it. There is a log_error() or errorlog() function that'll write your errors to a file of your choosing. ---John Holmes... -Original Message- From: .ben [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 4:04 AM To: PHP Subject: RE: [PHP]

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Dan Hardiker
I somehow cannot unset Session variables. If I set for example $_SESSION[error]=formcheck (the new style) and I want to unset it at the end of the page (unset($_SESSION[error])), it's there again on the next page. Is there a special way to unset the new Session variables? Seen as you used

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
Thanks John. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: 03 May 2002 16:29 To: [EMAIL PROTECTED]; 'PHP' Subject: RE: [PHP] Re: PHP with MySQL There's a whole section in the manual on it. There is a log_error() or errorlog() function that'll write your

[PHP] Re: Call to a member function on a non-object...?

2002-05-03 Thread Pedro Pontes
You must have created that function inside some class definition. When you do that, you must first instantiate that class to have access to its functions (methods). If you have: class YourClass { function YourClass() { // constructor } function methodOne() {

RE: [PHP] PHP editing environment

2002-05-03 Thread John Holmes
It's too easy to install a web server, PHP, and MySQL on your own computer and test everything locally. Apache works on Windows and *nix, or you can try OmniHTTPd or PWS/IIS. PHP is a simple download and follow the install instructions, and MySQL has an installation program, it just takes a

RE: [PHP] Fatal error: Call to a member function on a non-object in /www/xynz on line 19

2002-05-03 Thread John Holmes
You're trying to call a function within an object. Something like Something-getthis(); Which is not a normal PHP function. Show your code. You're probably just calling it wrong. ---John Holmes... -Original Message- From: Richard Brenner [mailto:[EMAIL PROTECTED]] Sent: Friday, May

[PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
Hello, I'm using the regular user authentication method, that is, check the specified login/pass agains't the entries in the DB, if it is valid, create the user object and register it with the section. How can we prevent any user from creating a simple PHP page that creates a simmilar user

[PHP] Process Scheduling

2002-05-03 Thread charlesk
This isnt really the place for it but I thought some might be interested. Has any thought been given to the following process scheduling idea? As a process's cpu usage gets higher it priority gets slightly lower. So that if I have a process to run but someone is hogging the CPU my task

[PHP] Turning OFF ‘auto_prepend_file’ on a page by page basis

2002-05-03 Thread Stefen Lars
Hello all I am using ‘auto_prepend_file’ to include a load of files. This is prepended to all PHP parsed files. The prepend files contain the HTML for the framework of my site. How I want to create an XML file for other web sites to use. I do this by getting some data from a database and

RE: [PHP] PHP editing environment

2002-05-03 Thread Eugene Mah
-Original Message- From: Pag [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 4:59 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP editing environment Anyone know how i can make my work more efficient? Like install MySQL and PHP and get everything working

RE: [PHP] PHP editing environment

2002-05-03 Thread Steve Bradwell
I am using Apache php and MySQL at work and at home, at work I have a win98 box and I use Maguma Studio Light for php as an editor, at home I use VIM for my editor, Maguma is really working for me. What I did was download php, MySql, and Apache then find a good tutorial, of which there are many,

Re: [PHP] Re: getting a function name of the calling function

2002-05-03 Thread Joshua E Minnie
Miguel Cruz [EMAIL PROTECTED] wrote: [snip] I'm guessing he wants to do something like a stack trace to figure out how a function managed to get itself called with bad data. With utility functions that may get called hundreds of times in a single run, that would be some really handy stuff.

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Pedro Pontes
Yes, always remember that unset() deletes the REFERENCE to the variable, not the variable itself, so in the next page, when you session_start() again, the reference is recreated to the still existing value. So, session_unregister is fundamental to unregister the reference from the session. To

RE: [PHP] PHP editing environment

2002-05-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Two ways for you: 1. invest $200 (as you mentioned) in a little test server. Set there Samba (samba.org) and simply save.file-refresh.browser 2. install FoxServ or PHPTriad or something else. Look at the sourceforge.net. Or go manually installing the three - Apache, PHP, mySQL on your Win. This

RE: [PHP] Turning OFF 'auto_prepend_file' on a page by page basis

2002-05-03 Thread Maxim Maletsky \(PHPBeginner.com\)
.htaccess Not sure if ini_set() will work in your case. But try. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Stefen Lars [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 3:02 PM To: [EMAIL

RE: [PHP] PHP editing environment

2002-05-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Here's one good tutorial: http://www.phpbeginner.com/columns/morten/win32 Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Steve Bradwell [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 3:00 PM To:

[PHP] Secure user authentication

2002-05-03 Thread The_RadiX
Hmm yes good question.. Security was (still is) a major for my organisation's site and I did something a little unique and robust.. I love programming and I hate stealing (some call it borrowing) other programmer's scripts/code from the web.. therefore I write it _all_ myself.. Trust me..

RE: [PHP] Secure user authentication

2002-05-03 Thread Jon Haworth
Hi, but the password is put through my own fairly unbreakable (yes.. I am serious) password key system.. SO basically you'll end up with a nice 32 char string which is QUITE safe to pass around and the chance anyone's gonna decrypt it IMHO is about zilch, And all you have to do, is when

RE: [PHP] Secure user authentication

2002-05-03 Thread Brian McGarvie
another option is to use SSL for the login page/sensitive parts of the site that deal with any transfer of 'sensitive' data? -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 03 May 2002 15:08 To: 'The_RadiX'; [EMAIL PROTECTED] Subject: RE: [PHP] Secure user

Re: [PHP] Secure user authentication

2002-05-03 Thread The_RadiX
nope you are quite correct.. but I put my chances of someone catching packets from my site and ripping em open.. in that low down probability of around 0 as well. :) ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED]

Re: [PHP] Secure user authentication

2002-05-03 Thread The_RadiX
that is a good suggestion.. Using SSL to perform sensitive logins.. and then using some sort of hidden or encrypted passwords in your sessions should provide a nice level of security and comfort.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A.

[PHP] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
Hi List, Imagine a form where user can search for clients using a 'name' field. When submitted, there's a result page, linking results to another page with the client information. I need to make the terms inputted at the form bold when they appear at the client information page. Problem

Re: [PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
First of all, thank you for your devote answer. The method I was thinking about before was to pass the md5 hash of the password around, as the passwords are already md5'ed in the DB. Your method seems more secure as you use a totally spiced-up and personalized encryption engine. But, the main

RE: [PHP] Secure user authentication

2002-05-03 Thread Brian McGarvie
my current project for a multi-national org is providing a service to them which requires that, I also go a stage further and allow only ip's from their domain for this site ;) as well as SSL, and my own form of encryption. -Original Message- From: The_RadiX [mailto:[EMAIL PROTECTED]]

RE: [PHP] Turning OFF 'auto_prepend_file' on a page by page basis

2002-05-03 Thread Stefen Lars
Usually, I use the Apache directive to add the prepend option. I already tried setting another prepend option in the apache directives, but it seems one does not overwite the other. I tried prepending a blank file. But that did not work. The other prepend file was prepended. When you say use

RE: [PHP] Replacing non exact strings

2002-05-03 Thread Brian Paulson
Julio, Try this $search = Joe Doe; $original = Joe Cougar Doe; $final = bJoe/b Cougar bDoe/b; $terms = explode( ,$search); for($i=0; $icount($terms); $i++) { $original = eregi_replace($terms[$i], b.$terms[$i]./b, $original); } echo $original; Should get you started.

[PHP] Help compiling Dynamically Linked Module

2002-05-03 Thread Jeff Lang
I am trying to compile and run the tutorial, from the php documentation, on extending php. I am currently working in SunOS v5.7 with gcc version 2.95 19990728. I am running PHP 4.2.0 statically in Apache 1.3.24 I have copied the first_module.c file and I can compile it with the following

[PHP] MySQL Set Type

2002-05-03 Thread Brad Harriger
How does PHP 4 handle MySQL fields that are of type SET? Are the strings, arrays, or something else? Thanks, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Secure user authentication

2002-05-03 Thread Jon Haworth
Hi, The method I was thinking about before was to pass the md5 hash of the password around, as the passwords are already md5'ed in the DB. Your method seems more secure as you use a totally spiced-up and personalized encryption engine. *boggle* Why are you passing the password around,

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Stuart Dallas
On 3 May 2002 at 11:36, Julio Nobrega Trabalhando wrote: $searched = Joe Doe; $original = Joe Cougar Doe; $final = bJoe/b Cougar bDoe/b; Any ideas about how can I achieve this result? I am currently using eregi_replace($searched, b$searched/b, $original), so that's why it only accepts

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
Thanks Brian, it's working! -- Julio Nobrega. Brian Paulson [EMAIL PROTECTED] wrote in message 005101c1f2af$fa59eb00$89010a0a@bpaulson">news:005101c1f2af$fa59eb00$89010a0a@bpaulson... Julio, Try this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Secure user authentication

2002-05-03 Thread Pedro Pontes
Hi Jon, I am considering doing that because any user can create a simple PHP script with his/her object with the authenticated flag set to authorized, register that object with the session and then link to any of my pages, which if they don't make any kind of password test, they will unsuspectly

Re: [PHP] Re: file() and macintosh line break

2002-05-03 Thread Josh Valerie McCormack
I was having a tough time with a Mac file uploaded and squeezed into one line. My friend Shawn helped me write the following which cleans it up. Remove the echo statement to just change it and not see the change. Also, avoid trying to fix the file, make a new one, if you can. Hope this helps.

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Josh Valerie McCormack
I've used the script phtaccess, which I think used the mentioned class. Super easy to use. Josh On Wed, 1 May 2002, Kelly Meeks wrote: Is is possible to use php to admin a password file used by a .htaccess file? You should check the File_Passwd class from PEAR.

[PHP] Newbie - still working on my first script.

2002-05-03 Thread TGL
I got the file to upload to my folder. But when I go to download it to my PC using FTP, it tells me NO SUCH FILE, but I can see it in the folder. The folder has read, write, execute permissions. I included the script below. I would appreciate any help. HTML HEAD TITLEAdvertisement

[PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread ROBERT MCPEAK
Running PHP3 on a Linux box and I've got trouble with date(). Here's the code: $blah=2002-05-02; $thedate = date(D, M d, Y, strtotime($blah)); $echo $thedate; Why is $thedate resolving to Wed, Dec 31, 1969. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread Rasmus Lerdorf
Because your strtotime() call is returning 0. Replace the '-' with '/' and I bet it would work. -Rasmus On Fri, 3 May 2002, ROBERT MCPEAK wrote: Running PHP3 on a Linux box and I've got trouble with date(). Here's the code: $blah=2002-05-02; $thedate = date(D, M d, Y, strtotime($blah));

Re: [PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread Stuart Dallas
On 3 May 2002 at 12:04, ROBERT MCPEAK wrote: $blah=2002-05-02; $thedate = date(D, M d, Y, strtotime($blah)); $echo $thedate; $blah will = 1995. Try putting quotes around the date... $blah = 2002-05-02; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] phpMyAdmin

2002-05-03 Thread Rodrigo
Hi guys, I need some help using the phpMyAdmin, I'm trying to create a table with three fields, one for the indexing of the database, the second for the logins and the third for the password. I get the following doubts: On the table of the phpMyAdmin there are the following fields: A field

Re: [PHP] rather a mysql question

2002-05-03 Thread Mike Gohlke
Depending on your OS, there's a good possibility that the OS is caching HD data. So instead of mysql reading directly from disk, it's getting it from the memory cache. Depending on how heavily your server is used, wait 10 or 15 mins (to let the memory cache clear out) and try it again.

Re: [PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread Philip Olson
Hi Robert- You may want to spend a little more time with basic PHP tutorials, see: http://www.php.net/links To answer your question, the problem is with variable/string use, not any PHP functions. $blah in particular. Use quotes around strings: $blah = '2002-05-02'; Read about

[PHP] mssql_prev_result()???

2002-05-03 Thread Joshua E Minnie
Does anybody know of a good way to get the previous result in a query result? The query looks like this: SELECT * FROM [users]. This will return a result set of 30 to 40 users. The reason I need to grab the previous is because I would like to be able to virtually scroll through my data in the

[PHP] Re: PHP editing environment

2002-05-03 Thread Hugh Bothwell
Pag [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Anyone know how i can make my work more efficient? Like install MySQL and PHP and get everything working normally when i preview the code in internet explorer, that would be perfect, is it possible? How do

Re: [PHP] php converts \ to \\, how can I stop that

2002-05-03 Thread Mike Eheler
You could also set these values in your php.ini: magic_quotes_gpc = off magic_quotes_runtime = off If you do this, then remember when inserting the data into a mysql database, it still needs to be escaped: $sql = sprintf( insert into table (id, field) values ('', '%s'),

Re: [PHP] phpMyAdmin

2002-05-03 Thread Kevin Stone
Could be something like.. Field: keynum Type: BIGINT Length/Values: (blank) Attributes: (blank) Null: NOT NULL Default: (blank) Extra: AUTO_INCREMENT Primary: CHECKED Index: CHECKED Unique: CHECKED Field: username Type: VARCHAR Length/Values: 20 Attributes: (blank) Null: NOT NULL Default:

[PHP] Re: Newbie - still working on my first script.

2002-05-03 Thread Mike Eheler
Seems to me that space in the file copy is what's causing problems. Try changing ads/ $File_name to ads/${File_Name}. Just a note that doing things that way can cause big problems, especially on unix systems.. imagine if you went to your website and type:

Re: [PHP] Secure user authentication

2002-05-03 Thread Miguel Cruz
This would only work if some other user is able to create files that the web server thinks are part of your domain (since the session cookies are domain-specific). Sounds to me like your problem here is severe server misconfiguration. If your server environment is that insecure, then worrying

Re: [PHP] Secure user authentication

2002-05-03 Thread Michael Kimsal
Pedro Pontes wrote: Hi Jon, I am considering doing that because any user can create a simple PHP script with his/her object with the authenticated flag set to authorized, register that object with the session and then link to any of my pages, which if they don't make any kind of password

Re: [PHP] phpMyAdmin

2002-05-03 Thread Mike Eheler
I've always found it's good to set numeric primary keys to UNSIGNED. Gives you a larger range, and it's not very likely those numbers are ever going to be negative. Also, there is absolutely no need to check Index or Unique when you have selected Primary, as Primary implies both (hence why in

Re: [PHP] mssql_prev_result()???

2002-05-03 Thread Kevin Stone
You can navigate through records with Next and Previous buttons by using LIMIT in your query statment. ? // index.php if (!isset($i))$i=0; // Retrieve 1 rows starting at row $i $query = SELECT * FROM mytable LIMIT $i,1; $result =

Re: [PHP] phpMyAdmin

2002-05-03 Thread Kevin Stone
Thanks for the tip Mike. -Kevin - Original Message - From: Mike Eheler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 03, 2002 10:49 AM Subject: Re: [PHP] phpMyAdmin I've always found it's good to set numeric primary keys to UNSIGNED. Gives you a larger range, and it's not

[PHP] phpMyAdmin

2002-05-03 Thread Rodrigo
Hi guys, I need to know the script to insert some fields into the database. Like this: I need to get from a form the email, login, password and store it on the database. I'd like to know how this script would be. Code is apreciated. ;) Thanks, Rodrigo

Re: [PHP] Newbie - still working on my first script.

2002-05-03 Thread Miguel Cruz
On Fri, 3 May 2002, TGL wrote: I got the file to upload to my folder. But when I go to download it to my PC using FTP, it tells me NO SUCH FILE, but I can see it in the folder. The folder has read, write, execute permissions. I included the script below. if(copy ($File, ads/ $File_name))

[PHP] getting pages with FILE

2002-05-03 Thread jyrgen
hello all, i'm using FILE to read a page via HTTP and construct an array of HTML lines. After that i modify the page and echo it out. this all works great. The web server delivers pages depending on browser types. Now i need to pretend a certain browser. Can this be done ? What kind of

Re: [PHP] Batch processing HTML2PS

2002-05-03 Thread Mrdini
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jason Wong) wrote: On Friday 03 May 2002 07:03, Mrdini wrote: I think using the PDF functions would be a much better solution. You have full control over what gets printed where. Search on sourceforge for wrapper classes which make

Re: [PHP] Export selected data to a text file

2002-05-03 Thread Miguel Cruz
On Fri, 3 May 2002, Miva Guy wrote: I'm want to read a member's record and export the selected data to a downloadable vCard. The vCard is simply a text file with a .vcf extension. Once I've read all the data for that user, I need to create the file line by line with a \r\n at the end of

Re: [PHP] Re: How do I Install PHP on Apache 2, on win32

2002-05-03 Thread Miguel Cruz
On Fri, 3 May 2002, Herbert Mraz wrote: Vincent, as register_globals is off, I use echo $SERVER['PHP_SELF']; which works fine... Does it work as well as echo $_SERVER['PHP_SELF'] (with that underscore)? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >