RE: [PHP] PHP: remote file open problem

2003-12-17 Thread Chris
I suggest you read http://www.php.net/manual/en/features.file-upload.php The GET method shouldn't work (though it may be possible). In all likelihood your browser is just sending the local filename as a string and not attempting to upload the file at all. You need to use the Array

[PHP] Getting the CTRL T value

2003-12-17 Thread Terence
Hi all, Can someone point me in the direction of getting the CTRL T value (^T) into a string? I need it for a line break on a system call, net send. Something along the lines of net send computer_name line 1 ^T line 2 ^T line 3. From what I've seen the Dec# is 20 and the Hex# is 14, but I have no

Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Jason Wong
On Wednesday 17 December 2003 16:06, Terence wrote: Can someone point me in the direction of getting the CTRL T value (^T) into a string? I need it for a line break on a system call, net send. Something along the lines of net send computer_name line 1 ^T line 2 ^T line 3. From what I've

Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Terence
No, that's to add a tab, I am looking for CTRL (control) + T Thanks anyway, Terence - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:14 PM Subject: Re: [PHP] Getting the CTRL T value On Wednesday 17 December 2003

Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Jason Wong
On Wednesday 17 December 2003 16:23, Terence wrote: No, that's to add a tab, I am looking for CTRL (control) + T Sorry, misunderstood the question. Try this: $CTRLTAB = chr(20); // assumming that's the code CTRL-T echo net send computer_name line 1 {$CTRLTAB} line 2 {$CTRLTAB} line 3; --

[PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread sumbry
My regex skills are serious lacking and after scouring the net for relevant links I'm a bit stuck. I've got a textarea field where I pull user input from, and I'd like to search this entire field for a Windows Directory Path (ex. C:\Documents\Blah). Basically my users are allowed to specify

[PHP] Re: Regex to grab a Windows Path from a String...

2003-12-17 Thread Sven
[EMAIL PROTECTED] schrieb: My regex skills are serious lacking and after scouring the net for relevant links I'm a bit stuck. I've got a textarea field where I pull user input from, and I'd like to search this entire field for a Windows Directory Path (ex. C:\Documents\Blah). Basically my users

Re: [PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread Marek Kilimajer
if(preg_match('/img[^]+src[ ]*=[ ]*(||\')[a-z]{1}:\\\/i', $string)) echo local links used; [EMAIL PROTECTED] wrote: My regex skills are serious lacking and after scouring the net for relevant links I'm a bit stuck. I've got a textarea field where I pull user input from, and I'd like to search

[PHP] Where'd my session go??

2003-12-17 Thread Anthony
I've got an issue with an app I wrote. I store some information about the user and if they are logged into the app in session variables. The problem is that if they leave the app idle for a while ( about an hour) the session information is lost, so the user is prompted to log back into the

Re: [PHP] Internal Searches on Windows 2000 Server / Apache

2003-12-17 Thread Raditha Dissanayake
Last time i used it was three years ago. It was pretty good then. A discussion of aspseek or mnogosearch specifics would take us outside the scope of this list. Chris wrote: Thanks for the response. I can't seem to find ASPSeek available for Windows at all. Did you say they had one? The

Re: [PHP] Where'd my session go??

2003-12-17 Thread Marek Kilimajer
It's the garbage collector - session.gc_maxlifetime setting. The setting is server wide, unless you use your own session storage functions. Anthony wrote: I've got an issue with an app I wrote. I store some information about the user and if they are logged into the app in session variables.

[PHP] problem compiling with openssl support

2003-12-17 Thread Jon Hill
Hi I cannot manage to compile openssl support into php. my configuration line is CPPFLAGS='-I/usr/local/include/' ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr --with-gettext-dir=/usr --with-gd --with-png-dir=/usr --with-zlib-dir=/usr --with-jpeg-dir=/usr

Re: [PHP] Re: Trying to make my session code smarter

2003-12-17 Thread Gerard Samuel
On Wednesday 17 December 2003 01:33 am, Justin Patrin wrote: You can turn on URL rewriting for sessions. I'm not sure where it is just nowjust search the PHP docs. Yes I know about this feature. Unfortunately, its an insecure feature. http://us2.php.net/manual/en/ref.session.php

Re: [PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread sumbry
My regex skills are serious lacking and after scouring the net for relevant links I'm a bit stuck. I've got a textarea field where I pull user input from, and I'd like to search this entire field for a Windows Directory Path (ex. C:\Documents\Blah). if(preg_match('/img[^]+src[ ]*=[

Re: [PHP] problem compiling with openssl support

2003-12-17 Thread Adam Maas
Jon Hill wrote: Hi I cannot manage to compile openssl support into php. my configuration line is CPPFLAGS='-I/usr/local/include/' ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr --with-gettext-dir=/usr --with-gd --with-png-dir=/usr --with-zlib-dir=/usr

Re: [PHP] problem compiling with openssl support

2003-12-17 Thread Jon Hill
cheers Adam, that now works Jon On Wednesday 17 December 2003 13:29, Adam Maas wrote: Jon Hill wrote: Hi I cannot manage to compile openssl support into php. my configuration line is CPPFLAGS='-I/usr/local/include/' ./configure --with-apxs=/usr/local/apache/bin/apxs

[PHP] Inserting function into mail()???

2003-12-17 Thread Tristan . Pretty
Ok, here's my code that I want to pick a random line from a text file, and then mail myself 10 times with a different line each time... But It simply won't work... Anyone know why? ? function randomline($filename) { $file = file($filename); srand((double)microtime()*100);

[PHP] Re: Inserting function into mail()???

2003-12-17 Thread Pavel Jartsev
Tristan Pretty wrote: Ok, here's my code that I want to pick a random line from a text file, and then mail myself 10 times with a different line each time... But It simply won't work... Anyone know why? ... while (2 $i) { ... Seems that this while-loop will execute only 2 times.. not 10. Maybe

php-general Digest 17 Dec 2003 14:21:06 -0000 Issue 2478

2003-12-17 Thread php-general-digest-help
php-general Digest 17 Dec 2003 14:21:06 - Issue 2478 Topics (messages 172844 through 172878): saving resource objects 172844 by: Michael Lewis 172845 by: Tom Rogers 172846 by: Justin Patrin 172847 by: Michael Lewis 172848 by: Michael Lewis

RE: [PHP] mail question (mime)

2003-12-17 Thread Bill Green
Thanks for your replies. Figured it out, just blind. The $headers were written correctly (except for \r\n at end of lines though \n seems to work in this case). The problem was in the call to the boundary, the boundary has to start with -- outside the quoted string definition of the boundary, and

[PHP] sql query and some math

2003-12-17 Thread Patrik Fomin
Hi, q1) i got a database with 2 diffrent tables, i want to take out all the information that arent duplicated from on of the tables, like this: $sql = SELECT t1.rubrik, t1.info, t2.priser FROM table1 AS t1, table2 AS t2 WHERE t1.arkiv = '0' ORDER BY t1.rubrik; the problem is that i got alot of

RE: [PHP] sql query and some math

2003-12-17 Thread Jay Blanchard
[snip] q1) i got a database with 2 diffrent tables, i want to take out all the information that arent duplicated from on of the tables, like this: $sql = SELECT t1.rubrik, t1.info, t2.priser FROM table1 AS t1, table2 AS t2 WHERE t1.arkiv = '0' ORDER BY t1.rubrik; [/snip] It's a SQL question, but

[PHP] Addslashes limit

2003-12-17 Thread Cesar Cordovez
HI! Is it just me or addslahes truncates the result to 65535 chars? Any comments? Or can it be that a blob field in a MySQL database is just 65535 chars, I don't think so... Cesar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Inserting function into mail()???

2003-12-17 Thread Eric Bolikowski
Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok, here's my code that I want to pick a random line from a text file, and then mail myself 10 times with a different line each time... But It simply won't work... Anyone know why? ? function randomline($filename)

Re: [PHP] Addslashes limit

2003-12-17 Thread Marek Kilimajer
Cesar Cordovez wrote: HI! Is it just me or addslahes truncates the result to 65535 chars? Any comments? Or can it be that a blob field in a MySQL database is just 65535 chars, I don't think so... Cesar. BLOB is just 65535 chars. Use MEDIUMBLOB (2^24 bytes) or LONGBLOB (2^32 bytes). Also

Re: [PHP] Addslashes limit [SOLVED]

2003-12-17 Thread Cesar Cordovez
Hi. Turns out that addslashes is not guilty of truncating it's result. Marek is right here. Changed the type of the field from BLOB to LONGBLOB and everything works great! Thanks! Marek Kilimajer wrote: Cesar Cordovez wrote: HI! Is it just me or addslahes truncates the result to 65535

[PHP] Re: sql query and some math

2003-12-17 Thread Sven
Patrik Fomin schrieb: ... q2) i got like 100 matches from a database into a $num variable, then i want to devide that by 3 aslong as it can be done, eg: while ($num != 0) { ïf ($num / 3 = true){ some code to display some fields from a database $num = $num - 3; } else { some other code to display

[PHP] Re: saving resource objects

2003-12-17 Thread Leendert
Michael Lewis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I posted this on the PHP-DB list and then realized it was a more general question about PHP than DB so I am posting it here also hoping someone can help. I have a fairly common problem that I have not been able to find

[PHP] mssql_connect problem

2003-12-17 Thread Omar
Hello. I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to connect to it : $db_conn = mssql_connect(CLUSTER01, $db_usuario, $db_password); and it gives me this message: Warning: 0 is not a MS SQL link index in x The user name and password are correctly created in the

[PHP] PHP causing IE to crash

2003-12-17 Thread Matt MacLeod
Hi, I posted recently regarding a PHP script that crashed Internet Explorer. The crash continued to occur until I removed any use of sessions in my scripts. The pages seem to work fine now, but of course I have lost the sessions functionality. Does anybody have any suggestions why Sessions

Re: [PHP] Re: Trying to make my session code smarter

2003-12-17 Thread Chris Shiflett
--- Gerard Samuel [EMAIL PROTECTED] wrote: On Wednesday 17 December 2003 01:33 am, Justin Patrin wrote: You can turn on URL rewriting for sessions. I'm not sure where it is just nowjust search the PHP docs. Yes I know about this feature. Unfortunately, its an insecure feature. You

[PHP] RE: Comparison between Postnuke and PHPnuke

2003-12-17 Thread YC Nyon
I am comparing between this two php-based CMS? My focus is really 1. the availability of modules/add-ons. Not too sure, but seems PHPnuke has more add-ons than Postnuke. 2. ease of maintaining a group of contributors/writers Nyon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Addslashes limit

2003-12-17 Thread CPT John W. Holmes
From: Cesar Cordovez [EMAIL PROTECTED] Is it just me or addslahes truncates the result to 65535 chars? Any comments? Or can it be that a blob field in a MySQL database is just 65535 chars, I don't think so... Think again... BLOB, TEXT L+2 bytes, where L 2^16 MEDIUMBLOB,

[PHP] List-Unsubscribe

2003-12-17 Thread Oksana Yasynska
__ This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute,

Re: [PHP] strange!

2003-12-17 Thread manoj nahar
Change this line if($dowork) { to if($_POST[dowork]) { it should work the. In your php.ini the variable register_gloabal seem to be off. Manoj Nahar Tom Holton wrote: Hello everyone, I looked through the FAQs and documentation and I cannot find this anywhere: We have a new Redhat server

RE: [PHP] strange!

2003-12-17 Thread Chris
That should be $_POST['dowork'] , $_POST[dowork] will attempt to use dowork as a constant -Original Message- From: manoj nahar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 10:51 AM To: Tom Holton Cc: [EMAIL PROTECTED] Subject: Re: [PHP] strange! Change this line

[PHP] Page Redirects - How can it be done

2003-12-17 Thread Hunter, Jess
I have created a simple login/authentication script to help protect some of my PHP pages. Here is where I am running into a little trouble in understanding. Let's Say I have the following pages protected Page1.php Page2.php Page3.php If the user is not logged in, the inc. file will send them

RE: [PHP] Page Redirects - How can it be done

2003-12-17 Thread Vail, Warren
Have you considered Sessions http://www.php.net/manual/en/ref.session.php Warren Vail -Original Message- From: Hunter, Jess [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:04 AM To: PHP - General List Subject: [PHP] Page Redirects - How can it be done I have created a

[PHP] Re: sql query and some math

2003-12-17 Thread Kim Steinhaug
Your first query, could it be that you dont have any reference between the two tables? You should have a link between them, like where t1.id=t2id Or else you do not have any reasonable way of predicting the outcome of the query. Atleast this is what I know from my own experience. Especially if

[PHP] Re: mssql_connect problem

2003-12-17 Thread Mike Smith
Omar wrote: Hello. I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to connect to it : $db_conn = mssql_connect(CLUSTER01, $db_usuario, $db_password); and it gives me this message: Warning: 0 is not a MS SQL link index in x The user name and password are correctly created

[PHP] php/mysql data display

2003-12-17 Thread JLake
I have a small database that I want to display data from. in such a way that it shows shows in a table with the table header being the department category and the table cells being the categories for each department. I have no problem connecting to the database) I imagine that I will need nested

RE: [PHP] php/mysql data display

2003-12-17 Thread Jay Blanchard
[snip] I have a small database that I want to display data from. in such a way that it shows shows in a table with the table header being the department category and the table cells being the categories for each department. I have no problem connecting to the database) I imagine that I will need

Re: [PHP] Page Redirects - How can it be done

2003-12-17 Thread RT
What if you use something like SourceForge. If you try to access a page the requires you to be logged in when it redirects you to the login page it includes in the URL the page that the user tried to access (ie login.php?redirect=page3.php) Then when the user successfully logs in they redirect to

Re: [PHP] php/mysql data display

2003-12-17 Thread JLake
Data is as such right now for testing purposes: ID, catName, catLink, catDepartment. I will have multiple instances of the same text in catDepartment. I realize this is a fopaux. I'm just trying to do a quick fix. none the less I want the data formatted like this: DEPARTMENT NAME

RE: [PHP] php/mysql data display

2003-12-17 Thread Jay Blanchard
[snip] Data is as such right now for testing purposes: ID, catName, catLink, catDepartment. I will have multiple instances of the same text in catDepartment. I realize this is a fopaux. I'm just trying to do a quick fix. none the less I want the data formatted like this: DEPARTMENT NAME

Re: [PHP] Page Redirects - How can it be done

2003-12-17 Thread Matt Matijevich
snip What if you use something like SourceForge. If you try to access a page the requires you to be logged in when it redirects you to the login page it includes in the URL the page that the user tried to access (ie login.php?redirect=page3.php) Then when the user successfully logs in they

[PHP] Help need with image2wbmp() arguments

2003-12-17 Thread Ivan Dermanov
There is a problem with PHP 4.3.4 under Windows by image2wbmp() example from PHP Manual. Example 1. image2wbmp() example --- ?php $file = 'php.jpg'; header('Content-type: ' .

[PHP] CLI question

2003-12-17 Thread Rodney Green
I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm writing has only a couple of functions, a couple of if conditionals and a while loop. At the very top of the script I have an echo statement with a message I want printed to the console window. The problem is that it's not

RE: [PHP] CLI question

2003-12-17 Thread Jay Blanchard
[snip] I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm writing has only a couple of functions, a couple of if conditionals and a while loop. At the very top of the script I have an echo statement with a message I want printed to the console window. The problem is that it's

[PHP] Quickform select element...

2003-12-17 Thread Bobber
I'm trying to get familiar with quickform in the Pear HTML module. I have a form with a select box created like this: $form-addElement('select', 'nickname', 'Is this a nickname?', array(1 = 'Yes', 0 = 'No') ); Now, how do I tell the select box to use the default value of 'No'? -- PHP General

[PHP] Levenshtein and Similar_Text Comparison

2003-12-17 Thread Gohaku
Hi everyone, I have been using the levenshtein function and similar_text function to evaluate which is the better function to use. I have read that the levenshtein function runs faster than similar_text. I haven't noticed any runtime differences but I have noticed that levenshtein seems to be

[PHP] [PHP]: File upload problem

2003-12-17 Thread Dino Costantini
sto cercando di scrivere una pagina per l'upload di file, ho copiato dei sorgenti ma non funzionano. queste sono le pagine: -form.html form action=upload.php method=post enctype=multipart/form-data input type=file name=upfile input type=hidden name=MAX_FILE_SIZE value=1 input

[PHP] File upload problem

2003-12-17 Thread Dino Costantini
i'm trying to write a page which allows user to upload file. theese are my sources but they didn't work, anyone could help me? -form.html form action=upload.php method=post enctype=multipart/form-data input type=file name=upfile input type=hidden name=MAX_FILE_SIZE value=1 input

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
Hoping this is an easy question to answer, apologise upfront if this is so basic, but just been put in charge of a PHP app with LDAP interface to M$ Exchange, and trying to figure out how it works. At the moment it works fine and extracts fields like first- and surname, title, department, etc. I

[PHP] Fw: [apache-br] extension no RH9

2003-12-17 Thread Mauricio
Hello All! I installed Oracle 9i and it's working perfectly. I use a linux server to connect using a client in this other machine. I need to put HTTPD 2.0.40, PHP 4.2.2, Oracle 9i working together on a RedHat 9... Hardly, searching on the web, I could compile the oracle.so module using the same

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
Hoping this is an easy question to answer, apologise upfront if this is so basic, but just been put in charge of a PHP app with LDAP interface to M$ Exchange, and trying to figure out how it works. At the moment it works fine and extracts fields like first- and surname, title, department, etc. I

[PHP] extension in RH9

2003-12-17 Thread Mauricio
Hello All! I installed Oracle 9i and it's working perfectly. I use a linux server to connect using a client in this other machine. I need to put HTTPD 2.0.40, PHP 4.2.2, Oracle 9i working together on a RedHat 9... Hardly, searching on the web, I could compile the oracle.so module using the

[PHP] RE: PostNuke vs PHPNuke

2003-12-17 Thread YC Nyon
I am comparing between this two php-based CMS? My focus is really 1. the availability of modules/add-ons. Not too sure, but seems PHPnuke has more add-ons than Postnuke. 2. ease of maintaining a group of contributors/writers Nyon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Trying to make my session code smarter

2003-12-17 Thread Gerard Samuel
On Wednesday 17 December 2003 11:58 am, Chris Shiflett wrote: You can use GET data, POST data, or cookies. Since these users opt to not use cookies, and you seem to not want to use GET data, I suppose passing the information via POST is the only option left. :-) Its not that I dont want to

Re: [PHP] RE: PostNuke vs PHPNuke

2003-12-17 Thread John W. Holmes
YC Nyon wrote: I am comparing between this two php-based CMS? My focus is really 1. the availability of modules/add-ons. Not too sure, but seems PHPnuke has more add-ons than Postnuke. 2. ease of maintaining a group of contributors/writers You forgot #3: The ease of your sight getting hacked

[PHP] Links of Tables from other DB

2003-12-17 Thread KidLat Ngayon
Greetings Guyz. I would just like to ask for a help regarding on Links of Tables from other DB. I'm just only a newbie in PHP Programming. What I have right now is a query result from my table, and what I wanted to do is on my one of the table I had is to have a link or button that will open

Re: [PHP] Re: Trying to make my session code smarter

2003-12-17 Thread Chris Shiflett
--- Gerard Samuel [EMAIL PROTECTED] wrote: Its not that I dont want to use GET, Im just heeding the warning about its insecurities from the manual. The code Im writing, is meant for others to use, and may not have access to ini directives. But from what I've read in the archives

php-general Digest 18 Dec 2003 02:40:50 -0000 Issue 2479

2003-12-17 Thread php-general-digest-help
php-general Digest 18 Dec 2003 02:40:50 - Issue 2479 Topics (messages 172879 through 172921): Re: mail question (mime) 172879 by: Bill Green sql query and some math 172880 by: Patrik Fomin 172881 by: Jay Blanchard 172886 by: Sven 172898 by: Kim

[PHP] Update issue - more then likely simple problem

2003-12-17 Thread Eric Holmstrom
Hi there, What im trying to do is read the information from a field in a table called PARTNO. Then add RU to the front of whatever is in the PARTNO field. So far i have this. //connect details rarara //query $query= SELECT PARTNO FROM russell2 ; // make a query to get old stuff from DB col

[PHP] get output in .html file

2003-12-17 Thread martin
Does somebody know how to get the output of an .php file into an .html file (server side). This in order to cache generated pages for futur visitors. thanks Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Links of Table to other DB....

2003-12-17 Thread KidLat Ngayon
Greetings Guyz. I would just like to ask for a help regarding on Links of Tables from other DB. I'm just only a newbie in PHP Programming. What I have right now is a query result from my table, and what I wanted to do is on my one of the table I had is to have a link or button that will open

[PHP] PHP IDE opinions

2003-12-17 Thread Shawn McKenzie
Any opinions on the most feature rich IDE? I use Maguma now, but I notice that Zend Studio and phpED have some good profiling features. I didn't see that Zend had any DB connection features built-in though. Any advice on these two? Others? Thanks for your input! -Shawn -- PHP General

[PHP] Re: get output in .html file

2003-12-17 Thread Shawn McKenzie
Buffer output and then write it to a file. I do it all the time. ob_start(); //output some stuff here $content = ob_get_contents(); ob_end_flush(); if ($handle = fopen(yourfile.html, w)) { fwrite($handle, $content); fclose($handle); } -Shawn Martin [EMAIL PROTECTED] wrote in