[PHP] PHP License Agreement

2002-08-18 Thread daniel cozzolino
Hello all, I have an issue with an application I have developed that has Macromedia Director interfacing with MySql via PHP. I am told by our legal representation that under the PHP license agreement, the PHP html source code must be available. It was my understanding that only the compiler sou

Re: [PHP] php string match problem

2002-08-18 Thread Brad Bulger
have you tried printing them out with surrounding characters, like echo 'row8=(',$row[8],') LOGINNAME=(',$LOGINNAME,')'; to see if there are leading or trailing spaces? On Mon, 19 Aug 2002, Pafo wrote: > heh,, is it just me or can anyone see whats wrong with this code... > > $query = "SELECT

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
oops again, please ignore my last two posts :( -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:38 PM To: 'Pafo'; [EMAIL PROTECTED] Subject: RE: [PHP] php string match problem oh, just realised, one of them needs to go below the "else" li

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
oh, just realised, one of them needs to go below the "else" line, to end the "while" loop -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:37 PM To: 'Pafo'; [EMAIL PROTECTED] Subject: RE: [PHP] php string match problem You've got too many

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
You've got too many closing braces... if ($temp == $temp2) { $ierror = "Loginnamnet är redan upptaget!" . $ierror; } <--- Here's one } <--- Here's the other } else { print "error"; } <--- And a third

[PHP] php string match problem

2002-08-18 Thread Pafo
heh,, is it just me or can anyone see whats wrong with this code... $query = "SELECT * FROM logininfo WHERE loginname = '$LOGINNAME'"; if ($result = mysql_query($query)){ while ($row = mysql_fetch_row($result)){ $temp = $row[8]; $temp2 = $LOGINNAME; if ($temp == $temp2) { <-- this d

[PHP] Re: html parser

2002-08-18 Thread Justin French
Roman, Please direct your question to the list, no to me personally. When I have time on the list, I answer what I can... if I start answering questions off list: a) others don't benefit b) others can't join in c) I consider it a billable, personalised service to you Parsing HTML is pretty co

[PHP] max_execute_time does not work on infinitely loop

2002-08-18 Thread NoWhErEMan
Hi all, I have set the max_execute_time in php.ini to 300 (5 mins). And i found that if my script have a infinitely loop( caused by careless programming), the script still executing even 5 mins is passed and uses up all my cpu resourse. Even i "stop" and close the browser, the script seen still r

RE: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-18 Thread Roger Lewis
On Sat, 17 Aug 2002 20:10:02 -0700 "Roger Lewis" <[EMAIL PROTECTED]> wrote: > My problem is how do you create the variable, $to, from the MySQL table so > that it contains all of the addresses separated by commas. Daren Cotter [mailto:[EMAIL PROTECTED]] responded Saturday, August 17, 2002 8:42

Re: [PHP] mail/variable help needed..

2002-08-18 Thread Jason Wong
On Monday 19 August 2002 07:23, eriol wrote: > I understand that PHP will retain the file in a temporary directory (/tmp/) > until it is stored to the path I've specified (/uploaded/), but I don't > understand how to get it to print the new file name within the email it > sends to me.. Currently,

RE: [PHP] Resetting the timeout

2002-08-18 Thread Martin Towell
set_time_limit() -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Resetting the timeout On Monday 19 August 2002 10:06, Mike Mannakee wrote: > Is there any way to set the timeout (max length of

Re: [PHP] Resetting the timeout

2002-08-18 Thread Jason Wong
On Monday 19 August 2002 10:06, Mike Mannakee wrote: > Is there any way to set the timeout (max length of time the script has to > execute) from within a script, just for its own execution? ini_set() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integr

[PHP] Resetting the timeout

2002-08-18 Thread Mike Mannakee
Is there any way to set the timeout (max length of time the script has to execute) from within a script, just for its own execution? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 19 Aug 2002 01:31:13 -0000 Issue 1533

2002-08-18 Thread php-general-digest-help
php-general Digest 19 Aug 2002 01:31:13 - Issue 1533 Topics (messages 113133 through 113168): Sort multidimensional array using Natural-Order 113133 by: Hessu 113135 by: Hessu Re: Help needed about queries with MySQL, thanks. 113134 by: Craig Vincent 113136

[PHP] XML XSL Issue

2002-08-18 Thread karthikeyan
Hi All, I have an XML file. I want to display a count of unique record(surname, forename) using XSL. In the below example there are 3 records out of which 1 is duplicate in that case I want to display using XSL [Total = 2] This is my xml file -- Coates Arnold T

[PHP] mail/variable help needed..

2002-08-18 Thread eriol
The following is the partial source for an upload form.. I'm having trouble with the mail() function including the actual file name the user is sending instead of "/tmp/phpIkRjHq".. I understand that PHP will retain the file in a temporary directory (/tmp/) until it is stored to the path I've spe

RE: [PHP] Find rows by 1st letter in MySQL

2002-08-18 Thread Chris Kay
Try Select blah from blah where blah like '$letter%' % is wildcard after first letter Regards. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone:

Re: [PHP] Find rows by 1st letter in MySQL

2002-08-18 Thread DL Neil
Tony, > How would I go about selecting rows from a MySQL table where the first > letter of a certain field is $letter ? Depends upon the MySQL tbl's schema. The MySQL online manual discusses wildcards (full text). Alternatively see LEFT() and other string functions that can be used in SELECT an

[PHP] Find rows by 1st letter in MySQL

2002-08-18 Thread Tony Harrison
How would I go about selecting rows from a MySQL table where the first letter of a certain field is $letter ? -- - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] hyperlink parser - a bit new view :)

2002-08-18 Thread DL Neil
Hi Roman, > But on those phpbuilder's page there are also similar questions but answered > scripts don't work, for example: > ... > preg_match_all("|href=\"?([^\"' >]+)|i(+[ >])", $text,$ar); >... > I really don't know :( There's definitely something wrong with the RegEx above. The string comme

Re: [PHP] sorting multiple-dimensional arrays

2002-08-18 Thread Evan Nemerson
Thanks Rasmus. On Sunday 18 August 2002 02:37 pm, you wrote: > usort(), uasort() or uksort(). uasort() has a nice little example in the > user comment. > > On Sun, 18 Aug 2002, Evan Nemerson wrote: > > I have an array that looks like > > > > $array = Array( > > Array($var1, $var2, $var3),

Re[2]: [PHP] save all vars in a url to a var?

2002-08-18 Thread Joachim Krebs
For a list of common system variables, refer to: http://cs-people.bu.edu/stevec/cs101/02s/php5_system.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] save all vars in a url to a var?

2002-08-18 Thread Evan Nemerson
take a look at $QUERY_STRING. If that's not what you want, you should be able to find something in phpinfo(); On Sunday 18 August 2002 02:53 pm, you wrote: > is there some way to save all the info that is after the .php? in a var? > need that for a function on my page, but I have no idea what t

Re: [PHP] newbie php image importing problems

2002-08-18 Thread hugh danaher
>From reading your post, I believe you've successfully gotten the file upload to work and now you're interested in using uploaded files (but with smaller dimensions) on your webpage. What you'll need to do is create a separate file named resize.php which includes only the following code. On your

[PHP] save all vars in a url to a var?

2002-08-18 Thread Hawk
is there some way to save all the info that is after the .php? in a var? need that for a function on my page, but I have no idea what to look for Håkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] hyperlink parser - a bit new view :)

2002-08-18 Thread Roman
Hi Mat, I would not please for help if I would not read those texts. Of course I've read them both. But on those phpbuilder's page there are also similar questions but answered scripts don't work, for example: $text="http://aaa\";>ttrtert"; preg_match_all("|href=\"?([^\"' >]+)|i(+[ >])", $text,

Re: [PHP] sorting multiple-dimensional arrays

2002-08-18 Thread Rasmus Lerdorf
usort(), uasort() or uksort(). uasort() has a nice little example in the user comment. On Sun, 18 Aug 2002, Evan Nemerson wrote: > I have an array that looks like > > $array = Array( > Array($var1, $var2, $var3), > Array($var1, $var2, $var3), > Array($var1, $var2, $var3) > );

[PHP] sorting multiple-dimensional arrays

2002-08-18 Thread Evan Nemerson
I have an array that looks like $array = Array( Array($var1, $var2, $var3), Array($var1, $var2, $var3), Array($var1, $var2, $var3) ); I want to sort the arrays within $array by $var3 (although if it helps i can easily change that to $var1). $var1 and $var2 are strings, $

RE: [PHP] hyperlink parser - a bit new view :)

2002-08-18 Thread MET
Look up Regular Expressions. Basically they allow you to search out matches in strings such as and any variable amount of letters between the open and closed tags. So you'd need to read in the entire file into a string, chop out all the pesky page returns ('\n') and then run your function using

RE: [PHP] hyperlink parser - a bit new view :)

2002-08-18 Thread Roman
I think there is no message about the same idea. I would need to parse html file and get all within href="" or href=''. So I don't want to get all texts which could be links, but only content of href variable within tag. Is there any easy way ? I have read hundreds of messages in this list toda

Re: [PHP] Web Based Mail

2002-08-18 Thread Dan Hardiker
www.squirrelmail.org -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Based Mail

2002-08-18 Thread The Doctor
On Sun, Aug 18, 2002 at 08:54:45PM +0200, Andy wrote: > Horde is really great. I can definatelly recommend it to. > > But why not stick with sendmail? It does a great job and is easier to > install with horde. > > Andy > Try http://www.openwebamil.org . > > -- >

Re: [PHP] Web Based Mail

2002-08-18 Thread Andy
Horde is really great. I can definatelly recommend it to. But why not stick with sendmail? It does a great job and is easier to install with horde. Andy -- -- http://www.globosapiens.net Worldwide Travel Community "Met" <[EMAIL PROTECTED]> schrieb

RE: [PHP] Web Based Mail

2002-08-18 Thread MET
IMP and SquirrelMail both do the job for me. IMP = http://www.horde.org/imp/ SquirrelMail = http://www.squirrelmail.org/ ~ Matthew -Original Message- From: Chill [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 18, 2002 2:35 PM To: [EMAIL PROTECTED] Subject: [PHP] W

[PHP] Web Based Mail

2002-08-18 Thread Chill
Can anyone recommend a good Web-Based Mail System for php? I know that there are a few out there but I was wondering which was the best (and easiest to setup) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure connection with MySQL database

2002-08-18 Thread @ Edwin
True. But I think you missed the point of the original question--there's no "non-web directory"... - E > >To take it to another level, place the PHP file you >are including in a non-web directory. That way, just >in case the web server mucks up, there's no chance of >PHP outputting the contents

[PHP] XP home install question

2002-08-18 Thread Jonathan Goulding
I receive the following error msg when trying to load a php page: "This PHP CGI binary was compiled with force-cgi-redirect enabled..." So, I have changed the php.ini file in both c:\windows and c:\php to no avail. The same error msg is given. Any suggestions would be greatly appreciated! J

[PHP] newbie php image importing problems

2002-08-18 Thread Brian & Shannon Windsor
Hello, I got some great help from this newsgroup a few days ago, and I'm 90% complete with my project, but I have one snag. I'm building a web page that allows a business to import pictures of their products and then display them on their page along ith other information. My problem is getting

[PHP] XP home install question

2002-08-18 Thread Jonathan Goulding
Hello all, I receive the following error msg when trying to load a php page after installing php and a web server on XP home: "This PHP CGI binary was compiled with force-cgi-redirect enabled..." So, I have changed the php.ini file in both c:\windows and c:\php to no avail. The same error msg

[PHP] Re: xml and a big script

2002-08-18 Thread Pafo
this line is only for debugging: print $val located within these tags in startElement case "NAME": $da_relicname=$val;print $val;break; case "TYPE": $da_relictype=$val;break; "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i was almost done with

[PHP] xml and a big script

2002-08-18 Thread Pafo
i was almost done with everything :) and ofcourse i find a problem with the xml parser... the parser is not collection some vital information, and i dont know why... the xmlsite is: http://www.camelotherald.com/xml/servers.xml the problem is market with a <-- : 1707 Up - <

Re: [PHP] Secure connection with MySQL database

2002-08-18 Thread Edwin @
Well, I'm not sure if this is what you're looking for but... if you name the file with a .php extension (instead of .txt or .inc) then your password is "protected". For example, you have a password declared like this: $my_db_username = 'MyUserName'; $my_db_password = 'MyPassWord'; And it'

Re: [PHP] array's

2002-08-18 Thread Pafo
now it works, thx alot :) regards patrick "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sunday 18 August 2002 12:25, Pafo wrote: > > anyone that can find the problem..? > > description below. > > > > > function PrintInfo() { > >for (

[PHP] problems with php.ini

2002-08-18 Thread Andy
Hi everybody: I am trying to switch register_argc_argv to on. So I did edit php.ini located where phpinfo() told me. I switched it to on and uncommented the line. Then I restarted apache. phpinfo() still tells me that the fallue is off. What am I doing wrong? Can anybody give me a hint on how t

[PHP] Secure connection with MySQL database

2002-08-18 Thread Chris Schoeman
How can I protect my username and password for my connection with a mysql server. I can't place a file outside the root by the provider I use. Thankx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Help needed about queries with MySQL, thanks.

2002-08-18 Thread Chris Knipe
Same here... Even though allot of people say it's not necessary... - Original Message - From: "Carsten Mohr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 18, 2002 5:22 PM Subject: [PHP] Re: Help needed about queries with MySQL, thanks. > Hallo, > > I don't know if it

[PHP] Re: Help needed about queries with MySQL, thanks.

2002-08-18 Thread Carsten Mohr
Hallo, I don't know if it helps you, but normally you have to quote the variable in the SQL-Statement like: SELECT * FROM sessions WHERE sessionID = '$sessionID' Otherwise I always get an SQL-Error Jean-Marc Godart wrote: > Hello everyone, > > I am a new PHP user, from Belgium. I am trying to

[PHP] Sort multidimensional array using Natural-Order

2002-08-18 Thread Hessu
Hi, I have following filename/date array Array ( [0] => Array ( [0] => 1.jpg [1] => 10.jpg [2] => 11.jpg [3] => 12.jpg [4] => 2.jpg [5] => 3.jpg [6] => 4.jpg [7] => 5.jpg [8] => 6.jpg [9] => 7.jpg [10] => 8.jpg [11] => 9.jpg ) [1] => Array ( [0] => 1026502301 [1] => 1026502312 [2] => 1026502313

RE: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Craig Vincent
> I have a MySQL database (called "sessions") with a auto-increment > INT field called "sessionID". I try to check if there is already > a record in this database with a given sessionID, which is called > $sessionID in PHP. I use this query, which must be wrong (but I > cannot find out why !!!) :

[PHP] Sort multidimensional array using Natural-Order

2002-08-18 Thread Hessu
Hi, I have following filename/date array Array ( [0] => Array ( [0] => 1.jpg [1] => 10.jpg [2] => 11.jpg [3] => 12.jpg [4] => 2.jpg [5] => 3.jpg [6] => 4.jpg [7] => 5.jpg [8] => 6.jpg [9] => 7.jpg [10] => 8.jpg [11] => 9.jpg ) [1] => Array ( [0] => 1026502301 [1] => 1026502312 [2] => 1026502313 [

php-general Digest 18 Aug 2002 11:43:43 -0000 Issue 1532

2002-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2002 11:43:43 - Issue 1532 Topics (messages 113097 through 113132): Re: preg_match help? 113097 by: Bas Jobsen 113098 by: vic 113099 by: vic 113115 by: Jason Wong How Can I Generate an Email List from a MySQL Table 113100 by

[PHP] Sort multidimensional array using Natural-Order

2002-08-18 Thread Hessu
Hi, I have following filename/date array Array ( [0] => Array ( [0] => 1.jpg [1] => 10.jpg [2] => 11.jpg [3] => 12.jpg [4] => 2.jpg [5] => 3.jpg [6] => 4.jpg [7] => 5.jpg [8] => 6.jpg [9] => 7.jpg [10] => 8.jpg [11] => 9.jpg ) [1] => Array ( [0] => 1026502301 [1] => 1026502312 [2] => 1026502313

[PHP] Installing PHP... ASAP

2002-08-18 Thread Konstantin
Hello Guys I has FreeBSD4.3 I need help how install PHP under Apache2.0.35 when i compile PHP with apxs module support Apache say's Cannot load /usr/libexec/modules/libphp4.so into server: /usr/libexec/modules/libphp4.so: Undefined symbol "pthread_getspecific" I'm the begginer in Unix. Please i

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
On Sunday 18 August 2002 17:59, Jean-Marc Godart wrote: > Thanks for your suggestion ... Yes, I tried to print $sessionID (using > echo()) and I get the right value (the one I am looking for) ... Though the > query does not work. Any other idea ??? Thanks again ! Please post your code so we can h

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jean-Marc Godart
Thanks for your suggestion ... Yes, I tried to print $sessionID (using echo()) and I get the right value (the one I am looking for) ... Though the query does not work. Any other idea ??? Thanks again ! Jean-Marc - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
On Sunday 18 August 2002 17:45, Jean-Marc Godart wrote: > I have a MySQL database (called "sessions") with a auto-increment INT field > called "sessionID". I try to check if there is already a record in this > database with a given sessionID, which is called $sessionID in PHP. I use > this query,

Re: Re[2]: [PHP] pop-up

2002-08-18 Thread Justin French
Well, you're going to have limitations with passing things around in a URL. You need to post your JS function to comp.lang.javascript, and ask them how to modify the script so that it POSTs the form data to the new pop-up window. Justin French on 18/08/02 7:44 PM, Mantas Kriauciunas ([EMAIL

[PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jean-Marc Godart
Hello everyone, I am a new PHP user, from Belgium. I am trying to manage a MySQL database with PHP, and I kindly request your help to solve a little (probably very stupid) problem I have been dealing with for a while already ... I have a MySQL database (called "sessions") with a auto-increment

[PHP] Re: Cleanup script

2002-08-18 Thread Julio Nobrega
> I just had a massive open house party... > > Is it possible to write a PHP script to collect all the bottles and > cans, mop the floor, fumigate the carpet and make me lunch? PHP is all. You need. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "Liam Mackenzie" <[EMAIL PR

RE: Re[2]: [PHP] pop-up

2002-08-18 Thread Jason Soza
I just wrote something exactly like this today: function news_window (headline_str) { var headline_link = "/story.asp?headline=" + escape(headline_str); window.open(headline_link,'','scrollbars=yes,resizable=yes'); } Now, if I needed to pass along more variables, I'd just add them to the news_

Re: [PHP] ICQ interface?

2002-08-18 Thread Justin French
Sometimes the easiest solutions are the best!! http://web.icq.com/whitepages/online?icq=51362125&img=21";> Courtesy of the ICQ site :) Justin French on 18/08/02 5:06 PM, Justin French ([EMAIL PROTECTED]) wrote: > Has anyone built, or partially built an interface to ICQ? > > I'm not nec

Re[2]: [PHP] pop-up

2002-08-18 Thread Mantas Kriauciunas
Hello Justin, i don't think that this thing will pass 300 simbols successfuly i take $nw_text from and i need to pass it to pop-up (other window) there it will generate preview of that text with some stuff... but i need to pass also 2 more ...so total is 3 things...one text and other ones is jus