Re: [PHP] Attachments with mail() function

2002-01-30 Thread Edward van Bilderbeek - Bean IT
I recommend sending yourself a mail with an attachment and check the sourcecode of the received mail... together with base64encode() you should be able to do the job... Edward - Original Message - From: Rafael Perazzo B Mota [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

[PHP] Recovery of a datum from a bond

2002-01-30 Thread SIM/HAOUHACH
Hello everyone, I wanted to have more precisions when to the utilization URL. I am going to try to explain a little bit what I make in order that you better to help me. Here is, my page1, I display a totality of data from an oracle basis I proceed for that as follows: $Connection =

[PHP] Re: [PHP-DB] Drop down list

2002-01-30 Thread Jason G.
Sir, Would you kindly suppress the 7000 headers that your IncrediblyAnnoying email program includes. Also, please use only plain-text. Thanks you, Jason Garber IonZoft.com At 09:17 PM 1/30/2002 +1300, you wrote: I have two fields artist_id, artist. How do I put the contents of artist into a

[PHP] Re: setting/reading session_id before session_start

2002-01-30 Thread Todor Stoyanov
Just start the session again with session_starrt(), PHP will not start the session again if it already exists. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe I'm having a brain fart, please set me straight: I want to use session_id($myval) to use a

Re: [PHP] Editing uploaded file

2002-01-30 Thread will hives
The code attached was just the code which ran the html form there is another page which contains all the form details, this code just does the editeing and shows you what it's done. Cheers Will in article [EMAIL PROTECTED], Jason Wong at [EMAIL PROTECTED] wrote on 30/1/02 3:20 am: On

Re: [PHP] Date time

2002-01-30 Thread DL Neil
Hello Torkil, I have a field in my mysql database containing datetime on the format -MM-DD HH:MM:SS (24-hour format) Now. I want to output this as follows: DD.MM.YY at HH:MM:SS Currently I do this by this function: function convert_datetime($in){ $return = substr($in,8,2) . . .

[PHP] A real simple question...

2002-01-30 Thread Liam MacKenzie
Hey everyone, Got a question... How to I run a program and print it's output into a document? For instance, I have a program called ftpusers and when run from a shell like this: /usr/local/misc/ftpusers It will display a plain text list of people connected to my server. How do I get PHP to

[PHP] How to get the URL into a var?

2002-01-30 Thread Andy
Hi there, I am trying to find out which dir the user is browsing. How can I get the URL into a var? I tryed path_info, but it only returns the filename. Here is an example: URL: http://www.server.com/subapp/test.php Should return : subapp Is this possible?? Thanx for any help Cheers Andy

RE: [PHP] A real simple question...

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at exec() passthru() system() Keep in mind that the webserver usally runs as User nobody or an equivilant of that. So this user should have rights to run the program. Kind Regards, Jerry Verhoef -Original Message- From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] How to get the URL into a var?

2002-01-30 Thread Jason Wong
On Saturday 02 March 2002 17:29, Andy wrote: Hi there, I am trying to find out which dir the user is browsing. How can I get the URL into a var? I tryed path_info, but it only returns the filename. Here is an example: URL: http://www.server.com/subapp/test.php Should return : subapp

Re: [PHP] A real simple question...

2002-01-30 Thread Edward van Bilderbeek - Bean IT
and if you want to write it to a file directly then do something like: exec('ftpusers filename.txt'); Greets, Edward Take a look at exec() passthru() system() Keep in mind that the webserver usally runs as User nobody or an equivilant of that. So this user should have rights to run

Re: [PHP] How to get the URL into a var?

2002-01-30 Thread B. van Ouwerkerk
I am trying to find out which dir the user is browsing. How can I get the URL into a var? I tryed path_info, but it only returns the filename. Here is an example: URL: http://www.server.com/subapp/test.php Should return : subapp Is this possible??

Re: [PHP] Editing uploaded file

2002-01-30 Thread Jason Wong
On Wednesday 30 January 2002 17:10, will hives wrote: The code attached was just the code which ran the html form there is another page which contains all the form details, this code just does the editeing and shows you what it's done. Could you post the code which does the editing and, in

[PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jose
I'm making a proyect in php, and I have some doubts about the md5. I encript a password with it, but I don't know how to decrypt it again. Thanks. -- Jose Fco. ( [EMAIL PROTECTED] ). OLINET, S.L.

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jerry Verhoef (UGBI)
Not MD5 is a hash code not an encryption! Jerry Verhoef -Original Message- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: [PHP] How can I decrypt a password I previously coded with md5()? I'm making a

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
The whole idea of MD5 is to generate a unique code from your string. It's practical impossible to generate an identical string that creates the same unique code. So youcan be sure that someone that creates the same code also created the same text... e.g. a password... it's impossible to reverse

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jose
Then how can I encrypt the password? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
huh? well, use md5()... if you want a password that can be decrypted too, I'm afraid you have to write you're own encryption / decryption algoritm... maybe you can use base64encode() (don't know for sure)... but in both cases, if someone guesses your used encoding algoritm, you have a

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Nicolas Costes
As already said here, you cannot reverse the md5() function ... So : -The user fills a login box (login, password) -The PHP script 'crypts' this password with md5(); -The already-encrypted password in the database (or the passwd file) is

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at the mcrypt libary http://www.php.net/manual/en/ref.mcrypt.php Jerry Verhoef -Original Message- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 11:10 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] How can I decrypt a password I previously coded

[PHP] Problem

2002-01-30 Thread Uma Shankari T.
I have installed mysql and php successfully.While connecting with mysql it is giving error like this ss.php: No mySQL support on line 11 $link=mysql_connect($hostname,$username,$password); Manually i can connect mysql by giving like this mysql -uusername -ppassword It is connecting.If

RE: [PHP] Problem

2002-01-30 Thread Uma Shankari T.
I have installed php3 -Uma --- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to

[PHP] How do I Resize an image?

2002-01-30 Thread Francis Cronjé
I am new to php and wd appreciate any help! I have been through the manual, but have found no solution: 1.How do I resize an image retrieved from an interbase database before = displaying it on a page? ie If the image is 800 x 600 pixels and I want to resize the image to = 256 x 192 2.Do I have

[PHP] kill assoc array entry?

2002-01-30 Thread marc beyerlin
hi, is it possible to kill an enrtry in an assoziative array, like: array[first]=räuber hotzenblotz; array[second]=schneewitchen; array[third]=rapunzel; kill array[second]; any idea? greets, marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] mailing to 19000 users

2002-01-30 Thread Rambo Amadeus
yes, but it depends on your internet connection and can be werry slow. I'd go for php solution. PHP send much quicker, and use connection racionaly. - Original Message - From: Boaz Yahav [EMAIL PROTECTED] To: Mostafa Al-Mallawani [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 30. sijeèanj

RE: [PHP] Re: One form - Two emails, I need some help please

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED]] Sent: 29 January 2002 16:33 And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing second equal sign. This won't parse: (true = $PHP_MAIL_FORM) Why even bother with the inefficient

Re: [PHP] kill assoc array entry?

2002-01-30 Thread Jason Wong
On Wednesday 30 January 2002 19:24, marc beyerlin wrote: hi, is it possible to kill an enrtry in an assoziative array, like: array[first]=räuber hotzenblotz; array[second]=schneewitchen; array[third]=rapunzel; kill array[second]; Use unset(). Eg: unset($array['second']); -- Jason

[PHP] POST 2X

2002-01-30 Thread M-H-d
I've a problem with my script. When i use POST method it's reply the same action for two times, when i check my script everything ok. Anyone can help me ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Editing uploaded file

2002-01-30 Thread will hives
Jason, here it all is thanks for this... Cheers Will HTML EDIT UPLOAD PAGE: html head titlemy contact management system: add a contact/title /head body ? $db_name = ; $table_name = ; $connection = @mysql_connect(, , ) or die (couldn't connect.);

RE: [PHP] POST 2X

2002-01-30 Thread Jerry Verhoef (UGBI)
I think I speak for everone: HUH Maybe some more info? A piece of code? Some clear infomation on what is going wrong and when does this happen? And what action is happening two times? kind regards, Jerry Verhoef -Original Message- From: M-H-d [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Function call stack

2002-01-30 Thread Christian Novak
Has anyone an idea on how to get information from PHP on the function call stack. I need the line number and file calling a function for a custom error handler. To be more clear, here is what I would like to do: - I have a library, included in the main program - I have an error handler in the

Re: [PHP] Function call stack

2002-01-30 Thread Lars Torben Wilson
On Wed, 2002-01-30 at 03:33, Christian Novak wrote: Has anyone an idea on how to get information from PHP on the function call stack. I need the line number and file calling a function for a custom error handler. This cannot be done in current versions of PHP. There are feature requests in

RE: [PHP] POST 2X

2002-01-30 Thread Jerry Verhoef (UGBI)
There is nothing strange in this script. Except for this. header(Refresh: 0;url=failed2.php); Could this be the problem? This is a redirect but couldn't you use a header(Location: failed2.php); If this isn't the problem. Maybe you can post the script which makes the request (the

[PHP] Novice question - Please Help

2002-01-30 Thread brendan conroy
Hi, thanks for reading this. Ive looked at every php site and cant find an answer, youre my last hope!(ok so its not that serious, but pretty close!). Could someone please email me and tell me how to split a string into different arrays and save what they were split on? Also I cant get the

RE: [PHP] Novice question - Please Help

2002-01-30 Thread Jerry Verhoef (UGBI)
Take a look at split, explode -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice question - Please Help Hi, thanks for reading this. Ive looked at every php site and cant

RE: [PHP] HTML lists PHP

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 22:02 I keep getting parse error with this code: ($teams[] is a big array that I got by using mysql_fetch_array) $r = game; echo select name='game'; echo option

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Nicolas Costes [mailto:[EMAIL PROTECTED]] Sent: 30 January 2002 10:19 And for more security, I use a JavaScript MD5 function to encrypt the provided password in the user's browser so it goes already encrypted on the net ... Then PHP's just got to

[PHP] Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Dr.Bob
Hi, I'm trying to figure out how www.devshed.com does what I want to achieve also, this is my point: my main URL (for example) is www.mycompany.com I want the central page about our projects to be found under www.mycompany.com/projects and project LovePeaceAndBananas under

[PHP] Re: A real simple question...

2002-01-30 Thread Todor Stoyanov
That's the way echo system(/usr/local/misc/ftpusers); Liam Mackenzie [EMAIL PROTECTED] wrote in message 003c01c1a970$986e47c0$0700a8c0@enigma">news:003c01c1a970$986e47c0$0700a8c0@enigma... Hey everyone, Got a question... How to I run a program and print it's output into a document? For

Re: [PHP] How can I decrypt a password I previously coded with m d5()?

2002-01-30 Thread Nicolas Costes
E, well, i forgot where i got it (but it was from here, someone gave me the link...) ... I'm going to take a look, be patient. Le Mercredi 30 Janvier 2002 13:15, Ford, Mike [LSS] a écrit : -Original Message- From: Nicolas Costes [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] How can I decrypt a password I previously coded with m d5()?

2002-01-30 Thread Nicolas Costes
Hey !!! you're lucky, I just foud it : --- /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Copyright (C) Paul Johnston 1999 - 2000. * Updated by Greg Holt 2000 - 2001. * See

Re: [PHP] Function call stack

2002-01-30 Thread Stefan Rusterholz
If you set_error_handler, then you get automatically line number and filename. Read through: http://www.php.net/manual/en/function.set-error-handler.php (read user comments! there are undocumented things) Then set up your handler like this: $_old_error_handler =

[PHP] get the clicked submit image

2002-01-30 Thread Ergin Aytac
I have a form-page with several image-submit buttons. how can I know which image is clicked? It's not allowed to use java-script or any client-side make the life easy-scripts. form name=form1 method=get action=test.php input type=image border=0 name=image1 src=goa.gif input type=image border=0

[PHP] http error 405

2002-01-30 Thread Jack
Dear all I had made a login page for user, but once when you user had login failed, there will be a error appear which is HTTP ERROR 405, could someone pls tell me what is that mean on that error? and here is my code for my internal website. === ?

RE: [PHP] Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Matt Williams
m: my main URL (for example) is www.mycompany.com I want the central page about our projects to be found under www.mycompany.com/projects and project LovePeaceAndBananas under www.mycompany.com/projects/LovePeaceAndBananas I already know that this can be achieved by using the $PATH_INFO

[PHP] Re: Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Mike Frazer
What server are you running on? In Apache, if you add any filename to the DirectoryIndex line, it will display that page from any directory without specifying the filename. It comes default with pages like index.htm, index.html and index.shtml. If you add, for instance, index.php (some distros

Re: [PHP] Novice question - Please Help

2002-01-30 Thread David Otton
On Wed, 30 Jan 2002 12:10:14 +, you wrote: Could someone please email me and tell me how to split a string into different arrays ? /* this is our start string */ $str = this:is:a:test:string; /* split accepts a regular expression and a string, and returns an array

[PHP] Re: Problem

2002-01-30 Thread Mike Frazer
First, I recommend installing PHP4. There's a host of new features. Second, it sounds like your problem may be that you compiled PHP without mysql support. The command for PHP4 is, I believe, --with-mysql when you call the configure script. Get PHP 4.1.1 from the site (I downloaded it from

[PHP] Ereg/replace/i/ or something ??

2002-01-30 Thread B. Verbeek
Hello, I want to check the data from a form-field if it excists only of digits (0-9) and nothing else. How do I use the ereg()-function for this? ereg([0-9],$cust_tel, $cust_tel); It is also to turn it around but then the pattern will get larger because it has to contain: / '.,-)(*^%#

Re: [PHP] How do I Resize an image?

2002-01-30 Thread Bryan Gintz
For Linux (Unix) you can get a tool called imagemagik (not sure of spelling) and do a system call to it from a php script. Bryan Francis Cronjé wrote: I am new to php and wd appreciate any help! I have been through the manual, but have found no solution: 1.How do I resize an image retrieved

Re: [PHP] How do I Resize an image?

2002-01-30 Thread Tony Bibbs
You can use GD, or imagemagick. If you want to make your code easily portable, you may want to consider using netpbm as it runs on linux,freebsd,macosx,solaris and windows. --Tony On Wed, 2002-01-30 at 08:18, Bryan Gintz wrote: For Linux (Unix) you can get a tool called imagemagik (not sure

[PHP] Images and Mysql

2002-01-30 Thread David Orn Johannsson
I need to find out how to upload images to a database and then displaying them again, can anybody direct me to a howto or any thing like that to help me figure out how it’s done. http://www.atom.is/ Davíð Örn Jóhannssson Vefforritari

[PHP] session data vs cookie data

2002-01-30 Thread Erik Price
I have read elsewhere that depending on Cookie data for site authentication is false economy, because Cookie data can be spoofed. I'm designing a login that auto-fills a person's name into a field for authentication (based on their $user_id, which is stored in the cookie), then they enter a

[PHP] Re: Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Dr.Bob
I have Apache on WinXP. That sounds great what you write here, but does this also work when, for example, I have that file index.php in www.mycompany.com and when I access the URL with www.mycompany.com/projects that he sees it as www.mycompany.com/index.php?var=projects ? Or does it only work

RE: [PHP] session data vs cookie data

2002-01-30 Thread Jerry Verhoef (UGBI)
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 3:30 PM To: PHP Subject: [PHP] session data vs cookie data I have read elsewhere that depending on Cookie data for site authentication is false economy, because Cookie data can

[PHP] mysql on php4.1.1 on my Win98SE laptop running PWS

2002-01-30 Thread Wilbert Enserink
Hi all, maybe one of you can help me a bit in the right direction. I just installed the windows self installer (php4.1.1) on my Win98SE laptop running PWS. It is stated that it is cgi only and built in MySQL support. I installed it succesfully, but now I want to create a MySQL db. anybody has

Re: [PHP] How do I Resize an image?

2002-01-30 Thread Stefan Rusterholz
Thank you for that hint. Where do I get netpbm? Is it fast? What image-formats are supported (jpg, png, gif, ...)? What operations are supportetd (resizing, antialiasing, merging, writing text to pictures, etc.)? best regards Stefan Rusterholz - Original Message - From: Tony Bibbs

Re: [PHP] How do I Resize an image?

2002-01-30 Thread Tony Bibbs
I only know of netpbm via The Gallery, http://gallery.sf.net. That is a good photo album package that uses netpbm. They have netpbm for each of the OS's I listed in their download section. You could also search freshmeat.net and see if it netpbm shows up there. --Tony On Wed, 2002-01-30 at

[PHP] Tables Loading Slow

2002-01-30 Thread Bryan Gintz
Hi. I have a large database query that returns anywhere from 10-30ish records. The problem comes from loading them in tables. With IE5 and Netscape 5 on windows, the results do not display until the last /table tag is written. Does anyone have any ideas on how to show the results as the

Re: [PHP] Tables Loading Slow

2002-01-30 Thread Tony Bibbs
Check the PHP manual on flush() --Tony On Wed, 2002-01-30 at 08:38, Bryan Gintz wrote: Hi. I have a large database query that returns anywhere from 10-30ish records. The problem comes from loading them in tables. With IE5 and Netscape 5 on windows, the results do not display until the

[PHP] multiply-defined symbol error with php 4.1.1 on Solaris 2.8

2002-01-30 Thread Ziying Sherwin
We tried to build php 4.1.1 with as many options as possible on our Solaris 2.8 machine with gcc 2.95.2 and Apache 1.3.22. During the compilation, we had a problem with wddx extention which complains that header file expat.h is not in the expat 1.2 package that we installed for php. Thanks to

Re: [PHP] mysql on php4.1.1 on my Win98SE laptop running PWS

2002-01-30 Thread Tony Bibbs
When PHP says it has MySQL support it is just that..support. You still have to install MySQL (www.mysql.com). Assuming you have done that the it is just a matter of reading the MySQL documentation. --Tony On Wed, 2002-01-30 at 08:28, Wilbert Enserink wrote: Hi all, maybe one of you can

[PHP] Re: session data vs cookie data

2002-01-30 Thread Michael Kimsal
Erik Price wrote: I have read elsewhere that depending on Cookie data for site authentication is false economy, because Cookie data can be spoofed. I'm designing a login that auto-fills a person's name into a field for authentication (based on their $user_id, which is stored in the

Re: [PHP] session data vs cookie data

2002-01-30 Thread Michael Kimsal
Jerry Verhoef wrote: It is possible to steal a session because a session_id is usually based on a cookie. So I always store the IP, HTTP_X_FORWARD and USER_AGENT in the session. And check them every page. kind regards, Jerry Do you null the user if the IP changes? IPs can change

RE: [PHP] session data vs cookie data

2002-01-30 Thread Jerry Verhoef (UGBI)
When that happens a user has to relogin. No data will be lost. Jerry -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 3:53 PM To: Jerry Verhoef Cc: PHP Subject: Re: [PHP] session data vs cookie data Jerry Verhoef wrote:

Re: [PHP] Swapping BR for \n... ?

2002-01-30 Thread Dennis Moore
$newstring=nl2br($string); - Original Message - From: Jon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 11:11 PM Subject: [PHP] Swapping BR for \n... ? I'm processing a form but all the functions I've found on the web only seem to add the BR after the \n. I

Re: [PHP] session data vs cookie data

2002-01-30 Thread Michael Kimsal
Maybe you haven't had this experience, but we've regularly seen AOL users get switched between IPs during the same session on our sites. They'd had to start over and relogin every 5-10 minutes sometimes under that method. Do you not get any complaints? Michael Kimsal Jerry Verhoef wrote:

RE: [PHP] get the clicked submit image

2002-01-30 Thread Johnson, Kirk
http://www.php.net/manual/en/faq.html.php#AEN76234 Kirk -Original Message- From: Ergin Aytac [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 6:13 AM To: [EMAIL PROTECTED] Subject: [PHP] get the clicked submit image I have a form-page with several image-submit

Re: [PHP] Tables Loading Slow

2002-01-30 Thread Jason Wong
On Wednesday 30 January 2002 22:38, Bryan Gintz wrote: Hi. I have a large database query that returns anywhere from 10-30ish records. The problem comes from loading them in tables. With IE5 and Netscape 5 on windows, the results do not display until the last /table tag is written. Does

Re: [PHP] Images and Mysql

2002-01-30 Thread Jason Wong
On Wednesday 30 January 2002 22:27, David Orn Johannsson wrote: I need to find out how to upload images to a database and then displaying them again, can anybody direct me to a howto or any thing like that to help me figure out how it’s done. You could try searching the list archives. This

Re: [PHP] session data vs cookie data

2002-01-30 Thread Arpad Tamas
Do you null the user if the IP changes? IPs can change during a user's session, so I wouldn't base the validity of the session solely based on IP. When that happens a user has to relogin. No data will be lost. Relogin? Huh, I'd never visit a site where I have to login on every twice

RE: [PHP] Tables Loading Slow

2002-01-30 Thread Darren Gamble
Good day, As it has been said, this is a function of the browser. You can get around this by not using a large table to render your data. You could use one table per row, with all columns formatted with the same width. You could also try to use SPAN containers to store the data, but in my

[PHP] Re: Ereg/replace/i/ or something ??

2002-01-30 Thread J Smith
Try ereg(^[0-9]{10}$, $cust_tel); Quick explanation (I get the feeling you're new at regexes): ^ - beginning of string [0-9] - any number between 0 and 9 inclusive {10} - exactly ten times $ - end of string There ya go. J B. Verbeek wrote: Hello, I want to check the data from a

[PHP] Re: Ereg/replace/i/ or something ??

2002-01-30 Thread liljim
Hi Bart, I want to check the data from a form-field if it excists only of digits (0-9) and nothing else. How do I use the ereg()-function for this? Well, I prefer the preg_functions if (!preg_match(/^[0-9]{10}$/, $string)) { // contains stuff other than numbers, or is less than 10 digits

[PHP] Re: get the clicked submit image

2002-01-30 Thread Mike Frazer
I *think* you can get the values with $HTTP_GET_VARS['image1.x'] (and the same for image1.y). If your method is set to POST, use the $HTTP_POST_VARS array instead. Obviously to tell which one the user clicked you can use if (isset($HTTP_GET_VARS['image1.x])) { ... code here ... } If the

Re: [PHP] session data vs cookie data

2002-01-30 Thread Mike Frazer
HTTP_REFERRER is another good way to check. This allows users to access the page ONLY from a specific set of referring pages. However, if you have a gigantic site this can be cumbersome and can create a rather large array of referring pages, so you may want to put the value through a reg-ex

[PHP] Odd parse speed problem in 4.06/Linux/Apache

2002-01-30 Thread Pekka Saarinen
Hi, I have recently developed a free quite complex photo gallery software (see http://www.photography-on-the.net/ee/ ) with PHP/MySQL. It's quite near completion, only one odd server-related issue remains to be solved: Two weeks ago the PHP code went suddenly really slow on my servers. I did

RE: [PHP] Re: Getting an include file into a string after PHP evaluates the vars?

2002-01-30 Thread Kevin Stone
ob_get_contents() appears to be exactly what I needed. Thanks for putting me on the right track! :) -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 6:49 PM To: [EMAIL PROTECTED] Subject:

[PHP] Re: Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Mike Frazer
Looks to me like you're dealing with Apache rewrite rules, which goes beyond the scope of PHP. Mike Frazer Dr.Bob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have Apache on WinXP. That sounds great what you write here, but does this also work when, for

Re: [PHP] http error 405

2002-01-30 Thread David Otton
On Wed, 30 Jan 2002 21:27:14 +0800, you wrote: Dear all I had made a login page for user, but once when you user had login failed, there will be a error appear which is HTTP ERROR 405, could someone pls tell me what is that mean on that error?

Re: [PHP] session data vs cookie data

2002-01-30 Thread =?x-unknown?q?Rodolfo_Gonz=E1lez_Gonz=E1lez?=
On Wed, 30 Jan 2002, Michael Kimsal wrote: a cookie. So I always store the IP, HTTP_X_FORWARD and USER_AGENT in the Do you null the user if the IP changes? IPs can change during a user's session, so I wouldn't base the validity of the session solely based on IP. Also, sometimes there are

[PHP] curious - any phpshop/core users?

2002-01-30 Thread Jaxon
hi, has anyone used PHPShop and Core (www.phpshop.org) ?? i'm thinking about using it for a project and wanted to know if it's actually any good :) cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Re: http error 405

2002-01-30 Thread Daniel C. BAUFAY
HTTP Error 405. 405 Method Not Allowed. The problem seems to lie with the headers sent. Are the headers in your code the real ones ? Obviously they cannot work (no .dev domain...) Do you perform HTTP authentication at some point ? (Must be BASIC in order to work with other browsers). -- PHP

Re: [PHP] Editing uploaded file

2002-01-30 Thread Jason Wong
On Wednesday 30 January 2002 19:27, will hives wrote: THIS IS THE DOING EDIT SCRIPT: [snip] if ($picture) { $path = /home/€€/€€/php/; $path1 = http://www.€€.net/php/;; $b_id = mysql_insert_id(); $new_pic_name = $b_id$picture_name; $imageFile =

RE: [PHP] curious - any phpshop/core users?

2002-01-30 Thread Rick Emery
I use PHP Coder. It's an excellent IDE and it's free.. -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 11:46 AM To: PHP Subject: [PHP] curious - any phpshop/core users? hi, has anyone used PHPShop and Core (www.phpshop.org) ?? i'm thinking

RE: [PHP] curious - any phpshop/core users?

2002-01-30 Thread Jaxon
thanks, but i'm looking for feedback on modular systems and shopping cart engines, not an IDE. vi works fine for me, at least for now :) cheers, jaxon -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 12:58 PM To: '[EMAIL PROTECTED]';

[PHP] PHP file checksum function?

2002-01-30 Thread David Yee
Is there a file checksum function available for PHP? I want to use md5_file() but that's only in the CVS version of PHP4. The files I want to derive the checksums for can be quite large (50+ megs) so the faster the function the better (i.e. maybe the function just reads parts of the file file).

[PHP] session_set_save doesnt write for 4.1.1?

2002-01-30 Thread Razorfish
I am converting my sessions code to use the new $_SESSION method for addressing session variables. My session_set_save_handler is written for MySQL and was working until I started changing external routines to not use $HTTP_SESSION_VARS and session_register. My debugging shows that the

[PHP] Page Not Found - on IE

2002-01-30 Thread Bryan Gintz
Sometimes with certain PHP scripts, when a form is posted to another PHP script, IE says the page cannot be found. It seems to happen randomly, and if you refresh a couple times, you can then load the page. Any ideas on why, and how to fix it? Thanks, -- PHP General Mailing List

[PHP] funny unlink problem

2002-01-30 Thread sundogcurt
unlink(); help the file I would like to delete (actual path) /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg path I am feeding to unlink function /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg error I get when I try to delete the file Warning:

[PHP] Redirect problem.... UGH!!

2002-01-30 Thread Ben Turner
I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off to the destination. Ready for some code? ? #Header(Location: index.html); ? When I try this on a Linux server using PHP... everything works fine. The minute I

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Bryan Gintz
Try it with JavaScript (a very nice supplement to PHP sometimes ) ? print SCRIPT\n; print document.location=\index.html\;\n; print /SCRIPT\n; ? Ben Turner wrote: I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off

[PHP] Re: Page Not Found - on IE

2002-01-30 Thread Mike Frazer
Page not found (error 404) or Page cannot be displayed (a DNS error, as stated at the bottom of the screen)? I've seen the latter of the two countless times, only in IE. Mike Frazer Bryan Gintz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Sometimes with

Re: [PHP] funny unlink problem

2002-01-30 Thread Tony Bibbs
I see 55jpg NOT 55.jpg --Tony On Wed, 2002-01-30 at 12:40, sundogcurt wrote: unlink(); help the file I would like to delete (actual path) /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg path I am feeding to unlink function

[PHP] MySQL Fetch_Array VS. Fetch_Object

2002-01-30 Thread Bryan Gintz
Does anyone know what the pros and cons of using mysql_fetch_object vs. mysql_fetch_array. I find it easier to use the object version because you dont have to code any extra statements to put them into regular variables. print $obj-field_name; as opposed to $field_name = $row[field_name];

Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz
Sorry, The page cannot be displayed DNS Error Mike Frazer wrote: Page not found (error 404) or Page cannot be displayed (a DNS error, as stated at the bottom of the screen)? I've seen the latter of the two countless times, only in IE. Mike Frazer Bryan Gintz [EMAIL PROTECTED] wrote in

Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz
If I do this: $uniq = uniqid(); form name=junk action=frustrating.php?x=$uniq method=POST It seems to get by the problem, but if anyone knows WHY it is doing this, please let me know. Thanks Mike Frazer wrote: Page not found (error 404) or Page cannot be displayed (a DNS error, as stated at

[PHP] Re: [PHP-DB] Select statement only returns 1 record

2002-01-30 Thread Bryan Gintz
I don't know if this will help, and it begs an answer from my earlier question. But here is an easy way to fill a drop-down (?) box with a mysql_query. $sql=SELECT * FROM webl_players ORDER BY $sortby; $result=mysql_query($sql,$db); print select name=\canidate\; while($obj =

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Jason Wong
On Thursday 31 January 2002 02:47, Ben Turner wrote: I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off to the destination. Ready for some code? ? #Header(Location: index.html); ? When I try this on a

[PHP] Content Management

2002-01-30 Thread bob
Does anyone know of an organization who has built and maintains a web content management application for a large site?

  1   2   >