Re: [PHP] Basic Help

2003-06-17 Thread Jaap van Ganswijk
At 2003-06-16 23:39 -0400, Logan McKinley wrote: I am new to PHP but have been using ASP for years. What i am trying to do is: 1) take a querystring variable 2) set it as a session variable 3) redirect the page back on itself all of this is done so the user never sees the querystring var so

Re: [PHP] Good PHP Books

2003-06-17 Thread John Nichel
Jaap van Ganswijk wrote: snip Some of the O'Reilly books that I thought were not perfect: - All books about Perl. Now that we have nice c-like script languages like PHP, Python and Javascript who still wants to study the mess that Perl is? snip The O'Reilly Perl books are considered to be

Re: [PHP] Basic Help

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 11:39, Logan McKinley wrote: Use a descriptive subject heading. I am new to PHP but have been using ASP for years. What i am trying to do is: 1) take a querystring variable 2) set it as a session variable 3) redirect the page back on itself all of this is done

Re: [PHP] functions, opinion...

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 12:50, DvDmanDT wrote: I was replying to If you don't do it this way, you'll find yourself re-writing a function sooner or later because you need it to return the data instead of displaying it Then you don't need to modify the function if you turn on ob, call

[PHP] Multiple choices for e-cart

2003-06-17 Thread César Aracena
Hi all, I'm about to start developing the PHP and MySQL coding and designing to make a web site with hundreds or maybe thousands of products, which will be sold through the Internet (I hope :). The products (most of them) have different sizes and/or colors to choose from and each selection will

Re: [PHP] Array in a $_session

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 13:23, Frank Keessen wrote: (step 3.php) ? session_start(); $aantalpers=$_SESSION[aantalpers]; $test1 = $_SESSION['test1'][$i]; You have not defined $i, so what did you expect to see here? echo $test1; for ($i=1; $i=$_SESSION['test1'][$i]; $i++) { echo

[PHP] Writing GIFs with LZW compression, patch

2003-06-17 Thread Jaakko Hyvätti
Hi! For those impatient to wait for official inclusion, I took gd_lzw_out.c from gd1.5.tar.gz and put it in php-4.3.2. The patch for configure script is not the most beautiful one, but it works for now. In case you developers have not yet included LZW compressed GIF support, feel free to

Re: [PHP] Dynamic menu not passing value to PHP?

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 05:45, Dennis Martin Ong wrote: Is there something I've missed out cos it seems like the $sltCat which is suppose to pass the selected option value when the form is submitted is not passing the correct value, So have you verified that it passes the value as expected

Re: [PHP] Array in a $_session

2003-06-17 Thread fkeessen
Hi Jason, Maybe you can make it a little bit clear for me? You have not defined $i, so what did you expect to see here? session_start(); $aantalpers=$_SESSION[aantalpers]; $test1 = $_SESSION['test1'][$i]; So is it going to be: $test1[$i ]= $_SESSION['test1'][$i]; ??? Regards, Frank

Re: [PHP] Multiple choices for e-cart

2003-06-17 Thread daniel
ok each product could have a category but also a group attatched to it, so each group red, blue, green has an id so each product is joined to a group with the primary key of the group like products.php?productID=1groupID=1 for red products.php?productID=1groupID=2 for blue etc ... and for

Re: [PHP] Array in a $_session

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 14:48, [EMAIL PROTECTED] wrote: Maybe you can make it a little bit clear for me? I can't because I don't know what you're trying to do. I can only point out what I see [to me] are obvious mistakes. You have not defined $i, so what did you expect to see here?

Re: [PHP] Good PHP Books

2003-06-17 Thread Jaap van Ganswijk
At 2003-06-17 01:16 -0500, John Nichel wrote: Jaap van Ganswijk wrote: snip Some of the O'Reilly books that I thought were not perfect: - All books about Perl. Now that we have nice c-like script languages like PHP, Python and Javascript who still wants to study the mess that Perl is? snip

[PHP] magic_quotes_gpc - 4.0.1 to 4.3.1

2003-06-17 Thread Petre Agenbag
Hi List Is there a difference in the way PHP handles the magic_quotes_gpc between these versions? I had 4.0.1 running on my server for a little over a year and all went well, ie, data that contained quotes etc were discreetly handles by PHP and inserted into MySQL with no problems ( when you

Re: [PHP] Writing GIFs with LZW compression, patch

2003-06-17 Thread Jaap van Ganswijk
At 2003-06-17 09:31 +0300, Jaakko Hyvätti wrote: For those impatient to wait for official inclusion, I took gd_lzw_out.c from gd1.5.tar.gz and put it in php-4.3.2. The patch for configure script is not the most beautiful one, but it works for now. In case you developers have not yet included LZW

Re: [PHP] Good PHP Books (topic wandering)

2003-06-17 Thread Joel Rees
Some of the O'Reilly books that I thought were not perfect: - All books about Perl. Now that we have nice c-like script languages like PHP, Python and Javascript who still wants to study the mess that Perl is? Heh. PHP, Python, Javascript? It's all perl to me. ;-) The O'Reilly

Re: [PHP] functions, opinion...

2003-06-17 Thread SLanger
Depends on the use of the function. (Output functions should produce output shouldn't they?!) Best option probably is to specifiy an argument that allows to choose wether to output or to return. If you return text you should return by reference to prevent unnecessary memory consumption.

Re: [PHP] Writing GIFs with LZW compression, patch

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 15:51, Jaap van Ganswijk wrote: I may have missed the latest developments, but I thought that Unisys was still trying to collect licensing fees for the use of the encryption part of the LZW algorithm. The US patent expires later this week:

RE: [PHP] Good PHP Books (topic wandering)

2003-06-17 Thread Wim Paulussen
I stick with the Wrox publications : for me 'Professional PHP' and 'Beginning PHP Databases' (with very good section about the DB class in PEAR) serve me in almost all my needs. The online manual though serves about 95 % of my queries. -Oorspronkelijk bericht- Van: Joel Rees

[PHP] Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Jarmo Järvenpää
Hi A quickie, how does the $_POST[foo] and $_POST['foo'] differ? Both do work. BR, Jarmo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Thomas Seifert
the first will generate a warning if warnings are enabled. it could mean a constant or a string, if a constant with that name is not available php will use it as a string and show a warning. the second is right as a string. Thomas On Tue, 17 Jun 2003 11:09:14 +0300 [EMAIL PROTECTED] (Jarmo

RE: [PHP] Array in a $_session

2003-06-17 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 07:48 Maybe you can make it a little bit clear for me? You have not defined $i, so what did you expect to see here? session_start(); $aantalpers=$_SESSION[aantalpers]; $test1 =

Re: [PHP] functions, opinion...

2003-06-17 Thread Lars Torben Wilson
On Mon, 2003-06-16 at 23:20, Jason Wong wrote: On Tuesday 17 June 2003 12:50, DvDmanDT wrote: I was replying to If you don't do it this way, you'll find yourself re-writing a function sooner or later because you need it to return the data instead of displaying it Then you don't need to

[PHP] Email Valadation

2003-06-17 Thread Philip J. Newman
How would i valadate an email string to see if it has invalid charactors? / Philip

Re: [PHP] Email Valadation

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 02:42, Philip J. Newman wrote: How would i valadate an email string to see if it has invalid charactors? / Philip Read RFC 822 and grok it thoroughly. Then decide exactly how lax you can afford to be in your checking, or find a checker to download-- because unless you

Re: [PHP] Email Valadation

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 02:54, Lars Torben Wilson wrote: [snip] I would suggest checking on ps.sklar.com, Zend.com, phpclasses.org, etc for some rfc822 checkers. I meant 'px.sklar.com', of course. :/ Torben -- Torben Wilson [EMAIL PROTECTED]+1.604.709.0506

Re: [PHP] Password generator

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 02:45, Davy Obdam wrote: Hi people, I have to make a password generator, but i have a little problem. - It needs to generate password 8 characters long, and including 1 or 2 special characters(like #$%*@). - Those special characters can never appear as the first or

[PHP] Re: PhpMyAdmin / MySQL

2003-06-17 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello All, I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS Jaguar. when I try to start up phpMyAdmin I get an error: Welcome to phpMyAdmin 2.4.0 Error MySQL said: Can't connect to local MySQL server

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Chris Hayes
At 12:42 17-6-03, you wrote: the first will generate a warning if warnings are enabled. it could mean a constant or a string, if a constant with that name is not available php will use it as a string and show a warning. the second is right as a string. in addition to that. In your example the

Re: [PHP] Dynamic menu not passing value to PHP?

2003-06-17 Thread Dennis Martin Ong
Got it sorted out now $query_rsCat = SELECT * FROM inventory WHERE category='$sltCat' OR item_name LIKE '%$txtSearch%'; This will select all the items if either $sltCat or $txtSearch is empty. Janet '%$txtSearch%' would always evaulate as '%%' in Mysql when the txtSearch field is empty

Re: [PHP] Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Justin French
on 17/06/03 6:09 PM, Jarmo Järvenpää ([EMAIL PROTECTED]) wrote: Hi A quickie, how does the $_POST[foo] and $_POST['foo'] differ? Both do work. $_POST[foo] will look for a pre defined constant foo. Under certain error-reporting levels, this will generate an notice/warning, and it assumes

RE: [PHP] Array in a $_session

2003-06-17 Thread fkeessen
Dear all, Finnaly managed it (it's working! :)... But can you check if this is the way? (step1.php) ? $_REQUEST[submit]=isset($_REQUEST[submit])?$_REQUEST[submit]:; if($_REQUEST['submit']!=) { session_start(); $_SESSION['test1'] = array(); $_SESSION['test1'] = $_POST['test1'];

RE: [PHP] shopping cart and login system

2003-06-17 Thread Steve Jackson
Actually you can do it the way you suggest. I'm in the process of doing it also. I have yet to test the system but it should work provided that you follow the PayPal system, I already have my cart working so I think I just need another form like this one with the PHP variables as carried from my

Re: [PHP] Password generator

2003-06-17 Thread Davy Obdam
Thanks Lars and ofcourse all the other people who answerd. It works great!! Best regards, Davy Obdam Lars Torben Wilson wrote: On Tue, 2003-06-17 at 02:45, Davy Obdam wrote: Hi people, I have to make a password generator, but i have a little problem. - It needs to generate password 8

RE: [PHP] Mail() problem

2003-06-17 Thread Maikel Verheijen
Hi Don, ?php $cmd='/bin/sh -c set'; passthru($cmd); echo 'P'; putenv(REMOTE_ADDR=$REMOTE_ADDR); passthru($cmd); echo 'P'; ? This code will work, but I want to be able to enforce it on people that use the mail() function. I want php to call sendmail (The one from php.ini that is)

[PHP] trigger download with left-click?

2003-06-17 Thread Sam Folk-Williams
Hi, I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that would trigger the download with a left-click? (The end users are

Re: [PHP] trigger download with left-click?

2003-06-17 Thread Marek Kilimajer
Provide a download link which would link to a download.php file. In this file output header('Content-type: application/octet-stream'); and then readfile(); the desired file. REMEMBER to check if it is realy a file that the user can see, otherwise anybody can download your php scripts (and maybe

[PHP] Building a save photo album

2003-06-17 Thread Miguel Angelo
Hi People I need to build a secure photo album, in a way where only some autenticated users can see the images and the images thumbnails. Some people have given idear to put the images/file directory outside of the web server documents, but how can i then insert the images thumbnails on html

[PHP] Re: Problem to start apache after installed PHP.

2003-06-17 Thread Kevin Ison
sounds like something was not initialized during your linux boot up I havent run linux in a while but I seem to remember that after I compile my applications I had to run another utility to make my new library active. In fact the same utility is/was part of my boot up commands in the RC files.

[PHP] preg_replace problem

2003-06-17 Thread Vincent Bouret
Hi, I am having this problem with preg_replace. I want the following thing but I can't understand what regular expression I should put. I want to replace all occurences of a given **whole** word into a string. For example: I want A dog jumped over a ladder to become xyzA/xyz dog jumped over

[PHP] Building a save photo album

2003-06-17 Thread Miguel Angelo
Hi Again, I forgot to informe you, i already have the user autentication part working ok, i know if the user has permissions to view/user something via one serialized variable which defines is running permissions, and the user is autenticated using a mysql database Thankx again Hi People I

Re: [PHP] trigger download with left-click?

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 06:00:28 -0500, you wrote: I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that would trigger the

Re: [PHP] preg_replace problem

2003-06-17 Thread Marek Kilimajer
You need \b = word boundary. $string=preg_replace(/\\b($word)\\b/i,'xyz\1/xyz', $string); Vincent Bouret wrote: Hi, I am having this problem with preg_replace. I want the following thing but I can't understand what regular expression I should put. I want to replace all occurences of a given

Re: [PHP] preg_replace problem

2003-06-17 Thread Stefan Dengscherz
Hello, ?php $parsed = preg_replace(/(\ba\b)/i,tag\\1/tag,$sourcestring); ? should do the job. regards Am Die, 2003-06-17 um 13.25 schrieb Vincent Bouret: Hi, I am having this problem with preg_replace. I want the following thing but I can't understand what regular expression I

Re: [PHP] trigger download with left-click?

2003-06-17 Thread Justin French
on 17/06/03 9:00 PM, Sam Folk-Williams ([EMAIL PROTECTED]) wrote: I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that

[PHP] Form Elements - user adding dynamically

2003-06-17 Thread Nelson Goforth
I'm constructing an HTML form (via PHP) in which I want the user to be able to add or delete elements as needed. For instance, in a page detailing user information, the user might have one phone or several. Rather than having a set number of slots for phone numbers I'd have one slot and have

Re: [PHP] Basic Help

2003-06-17 Thread Logan McKinley
You say to RTFM, are there any good resources for new users? I know PHP.net has an extensive manual but a tutorial or a list of commonly used features/functions and there uses would be better for me. I need to learn about database connectivity in particular and unfortunately I must use ACCESS as

RE: [PHP] functions, opinion...

2003-06-17 Thread Dan Joseph
Hi, My personal opinion, which shows in all my code writing is to never echo inside a function. always return the data whether it be string, array, or boolean... I've always left echoing up to the actual page showing the data. That way if you have two seperate pages that need to display

RE: [PHP] functions, opinion...

2003-06-17 Thread Dan Joseph
Hi, Depends on the use of the function. (Output functions should produce output shouldn't they?!) Best option probably is to specifiy an argument that allows to choose wether to output or to return. If you return text you should return by reference to prevent unnecessary memory consumption.

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Chris Hayes
At 15:04 17-6-03, you wrote: I'm constructing an HTML form (via PHP) in which I want the user to be able to add or delete elements as needed. For instance, in a page detailing user information, the user might have one phone or several. Rather than having a set number of slots for phone

[PHP] REGEX Question

2003-06-17 Thread Ron Dyck
I need to match text between two html comment tags. I'm using: preg_match(/!--start_tag--(.*)!--end_tag--/, $data, $Match) Which work fine until I have carriage returns. The following doesn't match: !--start_tag-- Nullam auctor pellentesque sem. Aenean semper. Aenean magna justo, rutrum et,

[PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread nabil
A side question along with this ,,, how can I include $_POST['foo'] in the : $sql =select * from db where apple = '$_POST['foo']' ; without getting an error ?? should I append it as $var= $_POST['foo']; before??? Thnx Nabil Jarmo Järvenpää [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Adam Voigt
$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? On Tue, 2003-06-17 at 10:09, nabil wrote: A side question along with this ,,, how can I include $_POST['foo'] in the : $sql =select * from db where apple = '$_POST['foo']' ; without getting an error ??

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
You can use DOM: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Strict//EN html head titleAny number you like/title script language=JavaScript1.2 function newNumber(f) { var newfile=document.createElement(input); newfile.setAttribute(type,text);

Re: [PHP] REGEX Question

2003-06-17 Thread Marek Kilimajer
. matches any character except newline by default, use s modifier: preg_match(/!--start_tag--(.*)!--end_tag--/s, $data, $Match) Ron Dyck wrote: I need to match text between two html comment tags. I'm using: preg_match(/!--start_tag--(.*)!--end_tag--/, $data, $Match) Which work fine until I have

[PHP] Password generator

2003-06-17 Thread Davy Obdam
Hi people, I have to make a password generator, but i have a little problem. - It needs to generate password 8 characters long, and including 1 or 2 special characters(like #$%*@). - Those special characters can never appear as the first or last character in the string... anywhere between is

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Chris Hayes
At 16:19 17-6-03, you wrote: $sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? you missed some quotes: $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\''; A side question along with this ,,, how can I include $_POST['foo'] in the : $sql =select

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Tom Woody
On Tue, 2003-06-17 at 09:09, nabil wrote: A side question along with this ,,, how can I include $_POST['foo'] in the : $sql =select * from db where apple = '$_POST['foo']' ; without getting an error ?? should I append it as $var= $_POST['foo']; before??? The rule of thumb I follow with

[PHP] delete files from a directory

2003-06-17 Thread Carlos Castillo
Hi, i need to delete all the files that are stored in a dir.i had try with this and nothing happen... passthru (del $path_adjuntos.$idprod/*.* /q); i'll aprecciate your help thanks!, and excuse me for my english -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Boaz Yahav
How would you make the input boxes open one above the other instead of one after the other? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17,

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Chris Hayes
At 16:37 17-6-03, you wrote: On Tue, 2003-06-17 at 09:09, nabil wrote: A side question along with this ,,, how can I include $_POST['foo'] in the : $sql =select * from db where apple = '$_POST['foo']' ; without getting an error ?? should I append it as $var= $_POST['foo']; before???

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Adam Voigt
Actually I didn't. The code that I gave would result in a string like: select * from db where apple = 'blah'; For your reference: \'' means print one single quote then end the current stream. Then the . $_POST['foo'] appends the value of foo to the stream, then . '\';'; prints one more single

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread CPT John W. Holmes
At 16:19 17-6-03, you wrote: $sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? you missed some quotes: $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\''; Go back and count the quotes again. The original post is correct as far as quotes go. Yours

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
function newNumber(f) { var newfile=document.createElement(input); newfile.setAttribute(type,text); newfile.setAttribute(name,number[]); f.appendChild(newfile); f.appendChild(document.createElement(br)); // simply add this line } You might want to take a

[PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
LS, I am trying to get a connection to a remote MSSQL server. This is what I found in the online manual : quote mssql_connect() establishes a connection to a MS SQL server. The servername argument has to be a valid servername that is defined in the 'interfaces' file. /quote This is the command

Re: [PHP] Form Elements - user adding dynamically

2003-06-17 Thread Marek Kilimajer
I should have also noted DOM is not supported in old browsers or without javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSQL connection

2003-06-17 Thread Adam Voigt
You need to turn on the MSSQL extension in your php.ini, under Windows this file is probably in: c:\winnt\php.ini On Tue, 2003-06-17 at 11:01, Wim Paulussen wrote: LS, I am trying to get a connection to a remote MSSQL server. This is what I found in the online manual : quote

Re: [PHP] delete files from a directory

2003-06-17 Thread Chris Hayes
At 16:42 17-6-03, you wrote: Hi, i need to delete all the files that are stored in a dir.i had try with this and nothing happen... passthru (del $path_adjuntos.$idprod/*.* /q); 1) http://www.php.net/passthru: This function should be used in place of

[PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread Daniel
Hello =) I'm embedding an SQL query constructed in Javascript to an URL and opening it in PHP where I try to execute it. Problem is, the string arrives garbled, with all the apostrophes escaped. This must be Javascript's type of safe url encoding, but how would I go about decoding it in PHP? I

[PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Hello, Does any one out there happend to know a php solution to directly (without CSV) transfer an Excell spreadsheet into MySQL table? Thanks in advance! Alex -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Adam Voigt
If it doesn't have to be automatic, I believe you can open an ODBC connection to the MySQL database and use the export functionality of Excel. I may be wrong since it's been a while since I've done anything with Excel, but it's worth a try. On Tue, 2003-06-17 at 11:09, Alex Shi wrote: Hello,

RE: [PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
That's it . Thank you very much ! -Oorspronkelijk bericht- Van: Adam Voigt [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, June 17, 2003 5:10 PM Aan: Wim Paulussen CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] MSSQL connection You need to turn on the MSSQL extension in your php.ini, under

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Yes I believe this is an excellent solution for MS planforms... But how about UNIX/Linux/FreeBSD based applications? Alex :[EMAIL PROTECTED] If it doesn't have to be automatic, I believe you can open an ODBC connection to the MySQL database and use the export functionality of Excel. I may be

Re: [PHP] Basic Help

2003-06-17 Thread Jason Wong
On Tuesday 17 June 2003 21:22, Logan McKinley wrote: You say to RTFM, are there any good resources for new users? I know PHP.net has an extensive manual The php manual is the best resource there is, particularly for people like you who already have a background in programming. Almost all

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Adam Voigt
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=php+excelbtnG=Google+Search The first link on google after doing a search for php excel looks promising. On Tue, 2003-06-17 at 11:20, Alex Shi wrote: Yes I believe this is an excellent solution for MS planforms... But how about

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Mardi 17 Juin 2003 17:19, Adam Voigt a écrit : If it doesn't have to be automatic, I believe you can open an ODBC connection to the MySQL database and use the export functionality of Excel. I may be wrong since it's been a while since I've done

[PHP] sorting an array

2003-06-17 Thread Diana Castillo
Hi , I am trying to sort this: array[numrooms] = Array ( [3] = 2 [2] = 5 [1] = 1 ) I want to get a result like this: 2=5 3=2 1=1 ( I want the keys to stay attached to the results) I used this to sort it : array_multisort ($request_array['numrooms'], SORT_NUMERIC, SORT_DESC); but instead I get

Re: [PHP] sorting an array

2003-06-17 Thread Mark
perhaps asort()? This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. --- Diana Castillo [EMAIL PROTECTED] wrote: Hi , I am trying to sort this: array[numrooms] = Array ( [3] = 2 [2] = 5 [1] = 1 ) I want to get a

[PHP] Installation

2003-06-17 Thread Anand Tomar
Hi, i tried installing mysql-4.1.0-alpha, apache, php4.3.2. now the issue is that i have all the 3 application running and interacting with each other in sync but every time i try to connect to mysql through php it gives me this error: Warning: mysql_connect(): Client does not support

Re: [PHP] sorting an array

2003-06-17 Thread CPT John W. Holmes
array[numrooms] = Array ( [3] = 2 [2] = 5 [1] = 1 ) I want to get a result like this: 2=5 3=2 1=1 ( I want the keys to stay attached to the results) perhaps asort()? This function sorts an array such that array indices maintain their correlation with the array elements they are

[PHP] go through array

2003-06-17 Thread Diana Castillo
I have this array: Array ( [2] = 6 [1] = 2 [3] = 2 ) how do I go through it and get the key and the value in this order? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MSSQL connection

2003-06-17 Thread Wim Paulussen
At least : step 1. Does anyone know what is meant by the 'interfaces' file ? quote The servername argument has to be a valid servername that is defined in the 'interfaces' file. /quote -Oorspronkelijk bericht- Van: Wim Paulussen [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, June 17,

Re: [PHP] go through array

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:43, lines prefixed by '' were originally written by you. I have this array: Array ( [2] = 6 [1] = 2 [3] = 2 ) how do I go through it and get the key and the value in this order? Use the foreach construct, it is

[PHP] cron job

2003-06-17 Thread Paul Marinas
Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. Paul GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] cron job

2003-06-17 Thread Jay Blanchard
[snip] Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. [/snip] You could run a looping script with a sleep statement in it, not a good idea though. Jay -- PHP General Mailing List

Re: [PHP] cron job

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:59, lines prefixed by '' were originally written by you. Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. Paul GnuPG

Re: [PHP] cron job

2003-06-17 Thread CPT John W. Holmes
Is there a way to run a script (to check a table for new fields, or to check time..etc) evrey few hours, without using programes souch as crontab. In addition to what others have said, you don't _have_ to set up the cron job (or any scheduled job) on the same computer as your scripts. If you

[PHP] Disaple warnings

2003-06-17 Thread Karina S
Hello, I have the following code: if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/;} At home on my PC (WinXP+PHP4.3.2) this code works without warnings. But in my office (Win2000+PHP4.3.0) I always becom warnings for this line and in case of any

[PHP] PHP versioning and security information

2003-06-17 Thread Fraser Campbell
Hi, I'm trying to figure out if the version of php that I am running is secure against all known exploits and I am finding that task very difficult. I haven't been able to find a security page on either http://www.php.net/ or http://www.zend.com/ My questions are: - is php 4.2.3 vulnerable

[PHP] Naming a variable with a variable

2003-06-17 Thread Antti
Ho can I create (name) a variable with other variables value? If $foo = bar; then the variable I want to create is $bar. How do I do this? -antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_errno codes

2003-06-17 Thread Don Read
On 16-Jun-2003 Thomas Hochstetter wrote: Hi. [3rd try] ... where can i get mysql_error codes from? The ones that mysql_errno returns. You can get all the OS and MySQL error codes with: $ perror `jot 1500` | grep -v 'Unknown error' Regards, -- Don Read

RE: [PHP] Naming a variable with a variable

2003-06-17 Thread Dan Joseph
Hi, Ho can I create (name) a variable with other variables value? If $foo = bar; then the variable I want to create is $bar. $$foo = blah; that will set $bar equal to blah. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread Mika Tuupola
On Tue, 17 Jun 2003, Antti wrote: Ho can I create (name) a variable with other variables value? If $foo = bar; then the variable I want to create is $bar. How do I do this? ?php $foo = 'bar'; $$foo = 'barvalue'; print $bar; ? This prints barvalue. -- Mika Tuupola

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread Mike Migurski
Ho can I create (name) a variable with other variables value? If $foo = bar; then the variable I want to create is $bar. How do I do this? $$foo see: http://www.php.net/manual/en/language.variables.variable.php - michal

Re: [PHP] Naming a variable with a variable

2003-06-17 Thread R'twick Niceorgaw
$$foo or ${$foo} somethinbg like that ? http://us2.php.net/manual/en/language.variables.variable.php R'twick - Original Message - From: Antti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:19 PM Subject: [PHP] Naming a variable with a variable Ho can I create

[PHP] max_execution_time

2003-06-17 Thread Yann Larrivee
Hi, i made a major programing mistake this mornning. It probably helped me to figure out a bug in PHP 5. But i would like to confirme with more people... class MyClass{ public MylClass(){ $this-MyFunc(); } private MyFunc(){ $this-MyFunc();

Re: [PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 17:00:26 +0200, you wrote: I'm embedding an SQL query constructed in Javascript to an URL and opening it in PHP where I try to execute it. I can't believe anyone hasn't jumped on this yet :) Please be very, very careful. There's a big big hole there. Problem is, the string

RE: [PHP] go through array

2003-06-17 Thread Ford, Mike [LSS]
-Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 17:43 I have this array: Array ( [2] = 6 [1] = 2 [3] = 2 ) how do I go through it and get the key and the value in this order? foreach ($array as $key=$value) (See www.php.net/foreach).

Re: [PHP] Disaple warnings

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 19:25:39 +0200, you wrote: I have the following code: if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/;} At home on my PC (WinXP+PHP4.3.2) this code works without warnings. But in my office (Win2000+PHP4.3.0) I always becom

[PHP] bcmod()

2003-06-17 Thread Thomas Bolioli
The docs (see below) for bcmod() are rather skimpy. Does anyone have a clue as to how it works. Basically I want to do this (below code). PS: I am new to PHP but not to programming in general. Tom $i = 1; while (something true){ $modulus = the_modulus_of($i / 4); // does php do % instead of

Re: [PHP] bcmod()

2003-06-17 Thread Chris Sherwood
if I read it right it looks like it returns what is the remainder as per any normal mod function so fer instance you want to get the remainder when you divide 10 by 3 (which we both know is 1) $remainder = bcmod(10,3); for example I think - Original Message - From: Thomas Bolioli

  1   2   >