Re: [PHP] HELP PLEASE!

2002-03-28 Thread heinisch
At 27.03.2002 21:20, you wrote: Even if I didn´t read your code exactly, the fault is the do while loop replace it with something like this while ($row = mysql_fetch_array($result)) { for($i=0,$i count($row);$i++) { // add something to make it fancy like a table or so

Re: [PHP] New php functions?

2002-03-28 Thread Jon Farmer
It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. I know the feeling! In the end I printed the Date page out, folded it up and stapled it into my PHP pocket ref book -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952

Re: [PHP] HELP PLEASE!

2002-03-28 Thread hugh danaher
The difficulty of using a FOR loop in a WHILE loop is that the data record doesn't change until the next WHILE loop. I've used variations of the following to get multiple columns of data from a database query. A variation of this should work. while ($cards=mysql_fetch_array($result)) { if

Re: [PHP] while loop: detect next loop?

2002-03-28 Thread Tom Rogers
Hi add the newline and white space first like this $data_printed = ; while ($row = mysql_fetch_assoc($result)) { if($data_printed != ){ $data_printed .= \n; } $data_printed = file id=\ . $row['file_id'] . \ . $row['file_name'] . /file; } That will

[PHP] Re: Regex Form Filter Help

2002-03-28 Thread liljim
Hello James, James Taylor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a site where users can type whatever they want in and it posts it to a database. I'm trying to eliminate whatever types of abuse I can think of, and, since I'm using nl2br on the

[PHP] Opening up a generic text file

2002-03-28 Thread Ron
I want to open up a generic text file from the same server that my www is on. $file= fopen(The full URL/finance/daily.txt,r); $rf=fread($file,100); $new=substr ($rf,0); fclose($file); echo (center$new/center); ? I keep on getting errors...any suggestions on how I can do this??? Warning:

[PHP] Re: Opening up a generic text file

2002-03-28 Thread Ron
Figured it out on a windows platform you have implicitly specify the path c:\ Ron [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to open up a generic text file from the same server that my www is on. $file= fopen(The full URL/finance/daily.txt,r);

[PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Hello, I am still having problems with the regular expressions. Looks like there has been a change in the way they are handled between PHP3 and PHP4, since the code worked with PHP3 !! I need to search for all words having alphanumberic characters as well as _ (underscore) which are prefixed

[PHP] Need some help on security with php and mysql

2002-03-28 Thread hamish
Hello all, I am using php and mysql with phpmyadmin. I am trying to set up a username and password in mysql so that when I use if(!$db_conn = mysql_connect('localhost', 'username', password)) { echo 'Could not connect to the Database Server'; } with the correct username and password it

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
This code works fine: eregi(__([a-z0-9_]+)__, Hello __WO_RD__ Test, $Matches); echo $Matches[1]; produces: WO_RD -Rasmus On Thu, 28 Mar 2002, Sharat Hegde wrote: Hello, I am still having problems with the regular expressions. Looks like there has been a change in the way they are

Re: [PHP] Need some help on security with php and mysql

2002-03-28 Thread Rasmus Lerdorf
Did you flush the privileges? Using either flush privileges or mysqladmin reload? And besides, you really should be using a GRANT query to do this. -Rasmus On Thu, 28 Mar 2002, hamish wrote: Hello all, I am using php and mysql with phpmyadmin. I am trying to set up a username and password

[PHP] Is this code safe?

2002-03-28 Thread Richard Ellerbrock
$result=mysql_query(DELETE FROM customer WHERE customer=$cust, $ds) and $result=mysql_query(DELETE FROM custinfo WHERE customer=$cust, $ds) and $result=mysql_query(DELETE FROM revdns WHERE customer=$cust, $ds) and

[PHP] Re: Is this code safe?

2002-03-28 Thread Hugh Bothwell
Richard Ellerbrock [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $result=mysql_query(DELETE FROM customer WHERE customer=$cust, $ds) and $result=mysql_query(DELETE FROM custinfo WHERE customer=$cust, $ds) and

Re: [PHP] Need some help on security with php and mysql

2002-03-28 Thread heinisch
Did you restart mysql ? could you see your entrances when using mysql on console with master/masterpassword? Oliver At 28.03.2002 10:37, you wrote: Hello all, I am using php and mysql with phpmyadmin. I am trying to set up a username and password in mysql so that when I use if(!$db_conn =

[PHP] ereg_replace or chr bug?

2002-03-28 Thread Ando
Ok, what i wanna do is replace the codes in html with ascii equivalents: $text= ereg_replace('#([0-9]+);' , chr('\1') , $text); But somehow it doesnt work, i have no idea why. When i use $text= ereg_replace('#([0-9]+);' , '\1' , $text); it replaces everything correctly But $text=

RE: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Rick Emery
From the manual for chr() Returns a one-character string containing the character specified by ascii. It replaces one (1) character, not a string -Original Message- From: Ando [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:59 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Get a specified amount of text?

2002-03-28 Thread Rick Emery
string substr (string string, int start [, int length]) -Original Message- From: Donald [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Get a specified amount of text? In Visual Basic there is a function called left. usage:

Re: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Ando
Not sure what you mean here $text= ereg_replace('#([0-9]+);' , chr('\1') , $text); should replace for example #65; with chr('65') (\1 means everything in brackets in regular expression), which is 'A' . Rick Emery wrote: From the manual for chr() Returns a one-character string containing

[PHP] ASP vs PHP

2002-03-28 Thread Ciro Martins
Hi! I've been programming in PHP for long. But one question that always is coming to my mind is to know if there exists some kind of tools (like for SP. It exists a tool called ASPWebTools for wich it is possible to develop applications written in ASP and connecting with DB like SQL Server in

RE: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Rick Emery
chr() expects you to pass it a numeric value. You are passing it a string. For instance, if $text= #45, then you are trying to do: chr(45), which is not the same as chr(45). Hence, ereg_replace() fails and simply returns the original string, $text. -Original Message- From: Ando

Re: [PHP] ereg_replace or chr bug?

2002-03-28 Thread Ando
Uh why do you think that? Try print chr(65); works the same as as print chr(65); Rick Emery wrote: chr() expects you to pass it a numeric value. You are passing it a string. For instance, if $text= #45, then you are trying to do: chr(45), which is not the same as chr(45). Hence,

[PHP] RADIUS - supported in PHP?

2002-03-28 Thread Benji Spencer
From the initial documentation I have found, the answer to my question is No, however I am just seeking confirmation of it. Does PHP support RADIUS? If not, does anyone know of any scripts/classes for PHP which deal with RADIUS? thanks benji --- Ben Spencer Web Support [EMAIL PROTECTED] x

RE: [PHP] ASP vs PHP

2002-03-28 Thread J. Scott Johnson
I've seen a tool called Code Charge which claims to do that. http://www.codecharge.com/index2.html And, I think that the new Zend tools make this easier (but I really haven't started evaluation yet). www.zend.com Scott * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP

RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Hunter, Ray
What are you trying to do with radius and php? Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Benji Spencer [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:35 AM To: [EMAIL PROTECTED] Subject: [PHP] RADIUS - supported in PHP?

RE: [PHP] Can you use null?

2002-03-28 Thread Rick Emery
you test for a NULL value with PHP's isset() function. if( ! isset($image_name) ) { ... display no image ... } -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9:32 PM To: PHP General Subject: [PHP] Can you use null? I am wanting

RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Benji Spencer
What are you trying to do with radius and php? I really don't know yet. We are looking at implementing RADIUS as a authentication scheme. I only roughly understand RADIUS, which doesn't help much. I looked at the RADUIS Apache module, which is where I am gaining most of my knowledge. It

[PHP] Re: accessing a mysql column by number

2002-03-28 Thread Jens Lehmann
Is there a way to access a column in Mysql just by using a number? Please refer to the MySQL-Documentation. A database doesn't have any predefined structure, so you're responsible for doing this. Can you explain why you need this feature? Like if you had three columns called column1,

RE: [PHP] Re: accessing a mysql column by number

2002-03-28 Thread Rick Emery
Jens, A database does have a structure. The order in which the columns/fields are defined is their numeric order. Second, mysql_fetch_row() will accomplish what he needs. Third, we answered this yesterday. -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Hunter, Ray
Actually, that is more of a Kerberos system that you are thinking of. Here is some info on radius: Taken from rfc 2865 Remote Authentication Dial In User Service (RADIUS). Key features of RADIUS are: Client/Server Model A Network Access Server (NAS) operates as a client of RADIUS.

[PHP] Uploading files without an HTML form

2002-03-28 Thread Sam Rose
Hi there, I was wondering if it is possible to upload an known file without having to use an HTML form with the post command? If so, could you point me in the right direction? Thanks alot Sam Rose p.s. I'm only on the digest list, so it would be really handy if you could send any replies

[PHP] a CNN headline news grabber

2002-03-28 Thread Ron
Does anyone know of a CNN headline news grabber. I found one, but it returns a blank page everytime. Or does anybody have a grabber that I can customize??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading files without an HTML form

2002-03-28 Thread Collins, Robert
If you know the file location, and the location doesn't change you could do an fopen() and basically read and rewrite the file. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Sam Rose

RE: [PHP] a CNN headline news grabber

2002-03-28 Thread Collins, Robert
I had written one but CNN keeps changing their page format so it was too hard to keep it up-to-date. That is probably why the one you have is returning a blank page. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED]

[PHP] New PHP4 Based on Zend 2.0 Engine Almost Ready for Release

2002-03-28 Thread Rick Emery
If you've read the Zend 2.0 Engine documentation, you'll know that PHP4 is getting a BUNCH of cool functionality To: php-dev at lists dot php dot net mailto:[EMAIL PROTECTED] From: Andi Gutmans andi at zend dot com mailto:[EMAIL PROTECTED] Date: Sat, 23 Mar 2002 12:38:12 +0200 Hey, Most big

[PHP] Reopen of File in PHP

2002-03-28 Thread Moschitz Martin
Hi! I need to reopen a file in php - how can i manage this? The problem is the following: at the beginning of my main php file I am including a picture, which refers to a php-image-file. I am creating a Text File in this Image File and I need to open this in the main php file. But I don´t have

[PHP] SQL Question

2002-03-28 Thread Sebastian A.
How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For example say I wanted to list all my users alphabetically. How would I do this? Or say I had a form and I wanted to present the content to the user *AFTER* they have filled it out so that they can check for mistakes.

RE: [PHP] Reopen of File in PHP

2002-03-28 Thread Rick Emery
What do you mean you don´t have the filepointer anymore? File pointer to what? The image file? Is the image file dynamically created using PHP? I must be dense...I don't understand. -Original Message- From: Moschitz Martin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002

RE: [PHP] SQL Question

2002-03-28 Thread Rick Emery
How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For example say I wanted to list all my users alphabetically. How would I do this? You would sort in your SQL statement, not PHP. SELECT * FROM my table ORDER BY field_name; Or say I had a form and I wanted to present the

Re: [PHP] SQL Question

2002-03-28 Thread Jason Wong
On Thursday 28 March 2002 22:34, Sebastian A. wrote: How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For example say I wanted to list all my users alphabetically. How would I do this? Or say I had a form and I wanted to present the content to the user *AFTER* they have

Re: [PHP] a CNN headline news grabber

2002-03-28 Thread Erik Price
On Thursday, March 28, 2002, at 09:31 AM, Ron wrote: Does anyone know of a CNN headline news grabber. I found one, but it returns a blank page everytime. Or does anybody have a grabber that I can customize??? Do they provide RDF content? (I would think, but maybe not.) If so, then I

Re: [PHP] New php functions?

2002-03-28 Thread Jason Wong
On Thursday 28 March 2002 17:13, Jon Farmer wrote: It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. It begs the question, why don't you just download the manual? It's available in a myriad of different formats, one of which

Re: [PHP] Re: accessing a mysql column by number

2002-03-28 Thread Jens Lehmann
Hi Rick, thanks for correcting me. (numeric order) I thought he just wants to select one col. (SELECT 3rd column FROM table ... ) I didn't read your answer because it was not in the same thread (reading the news with MS Outlook Express), because the subject-line changed. Can you suggest me a

[PHP] SSL and Apache

2002-03-28 Thread pong-TC
Hello All This is quite off the topic. Does anyone advise me how to install SSL on Apache server? I used to do on IIS by using Verisign. It was quite easy. Because I am not used to with the Apache, I don't where I should start.. Any help, please. Thank you. Pong -- PHP General Mailing

[PHP] setcookie with array (was serialize)

2002-03-28 Thread Rodrigo Peres
Hi list, Regarding my last post about serialize, I've tried many things but couldn't make it function. I'm trying to store the data from a form in order to allow my user to stop the process of filling the form and retrieve later what was inserted before. Among many other thing I tried this

[PHP] Source Code for the CNN Grabber

2002-03-28 Thread Ron
This is the source, which is to advanced for me to debug!!! Waiting on their responce and maybe they can help me.Anybody have any clues ? ## # spider_cnn.php # # Copyright W3matter.com LLC # http://www.w3matter.com ## # Released

Re: [PHP] Source Code for the CNN Grabber

2002-03-28 Thread Chris Boget
This is the source, which is to advanced for me to debug!!! Waiting on their responce and maybe they can help me.Anybody have any clues Perhaps if you told us what was going wrong? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Source Code for the CNN Grabber

2002-03-28 Thread Ron
Sorry meant to reply to my previous postAll it does is return a blank page! Ron [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is the source, which is to advanced for me to debug!!! Waiting on their responce and maybe they can help me.Anybody

Re: [PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Jason Wong
On Thursday 28 March 2002 23:40, Max Wilson wrote: I have an Apache server built with mod_php4.c linked into the executable. e.g. bash-2.03$ httpd -l Compiled-in modules: http_core.c mod_env.c mod_php4.c mod_perl.c What changes do i need to make to http.conf before I

[PHP] How is code in PHP interpreted, from 1st line to last? i dont think so

2002-03-28 Thread Moschitz Martin
How can I say php to execute graf.php until it´s finished and then move on to the rest of the code? echo img src='graf.php; ... more code ... tanxs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How is code in PHP interpreted, from 1st line to last? i dont think so

2002-03-28 Thread Chris Boget
How can I say php to execute graf.php until it´s finished and then move on to the rest of the code? echo img src='graf.php; ... more code ... echo img src='; include( graf.php ); echo ; Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Benji Spencer
Actually, that is more of a Kerberos system that you are thinking of. That is the other option. I am not the one making the discussions and have only been asked to investigate how RADIUS would interact with the web (as RADIUS) would also be how dial up users would be authenticated. I

RE: [PHP] How is code in PHP interpreted,from 1st line to last? i do nt think so

2002-03-28 Thread Darren Gamble
Good day, Please keep this conversation on the list. As my message says, no, in HTML you don't have text and images together. The image is retrieved from the server by the client in a completely different request. The main request basically says An image goes here. Go ask over there to go get

RE: [PHP] How is code in PHP interpreted,from 1st line to last? i do nt think so

2002-03-28 Thread Darren Gamble
Good day, No, there is no real way in HTML to have this work. You would be best off looking at WHY you need the image to be done first, and change your programming appropriately to take into account how HTML works. A very messy solution would be to have an include statement that generates an

[PHP] Group moderation formula

2002-03-28 Thread SP
Everyone gets an arbitrary 100 points ranking to start with. Everyone can vote for or against a proposal. If you vote for a proposal and it gets approved by the majority then you get more points. If you vote against a proposal and it gets approved then you lose points. The more points you

AW: [PHP] How is code in PHP interpreted, from 1st line to last? i do nt think so

2002-03-28 Thread Moschitz Martin
As my message says, no, in HTML you don't have text and images together. The image is retrieved from the server by the client in a completely different request. The main request basically says An image goes here. Go ask over there to go get that image. so, do you have any solution for me, how

[PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Max Wilson
I have an Apache server built with mod_php4.c linked into the executable. e.g. bash-2.03$ httpd -l Compiled-in modules: http_core.c mod_env.c mod_php4.c mod_perl.c What changes do i need to make to http.conf before I can use php in web pages which will work please? -- Thanks

Re: [PHP] setcookie with array (was serialize)

2002-03-28 Thread Jason Wong
On Thursday 28 March 2002 23:25, Rodrigo Peres wrote: Hi list, Regarding my last post about serialize, I've tried many things but couldn't make it function. I'm trying to store the data from a form in order to allow my user to stop the process of filling the form and retrieve later what

RE: [PHP] SQL Question

2002-03-28 Thread Rick Emery
What do you mean ORDER BY 'S' ?? yes, it can be a column or combination of columns and data. What are you trying to DO? -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 10:30 AM To: PHP General List (PHP.NET) Subject: RE: [PHP] SQL

[PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Caspar Kennerdale
just a quick query, hopefully someone can help (sorry for these repeat schooboy questions) re classes- Can you create an instance of a class and use its 'value' within an instance of another instance of the same class? For example I have created two classes- html.class and db.class I am

RE: [PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Rick Emery
this appears to be a coding issue. show your code...we can't read your mind... -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:45 PM To: PHP Subject: [PHP] classes- getting their slowly but surely I think just a quick query,

RE: [PHP] SQL Question

2002-03-28 Thread Marcus Rasmussen
You could do it this way WHERE column LIKE 's%' ORDER BY column Now you'll get all rows sorted and where column is staring with an 's' or 'S' - On 28-03-02 at 17:30 Sebastian A. wrote:

[PHP] arrays of strings - accessing elements of array elements

2002-03-28 Thread Lee P Reilly
Hi, Dodgy subject header or what... I have array of strings called $composition, and I itterate through this using: $composition[$i] Is there any way to echo the first character of the string by doing something like: $composition[$i][0] or ($composition[$i)][0] ? I can easily just do

Re: [PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Max Wilson
Is that all? Probably something like: AddType application/x-httpd-php .php4 .php3 .phtml .php .inc AddType application/x-httpd-php-source .phps On Thursday 28 March 2002 23:40, Max Wilson wrote: I have an Apache server built with mod_php4.c linked into the executable. e.g.

[PHP] question

2002-03-28 Thread Chris Frommann
I was directed to this email address to ask a question, hope I'm not mailing the wrong person. Anyways, how would I get T in the date() function to display EST instead of Eastern Standard Time? Thanks, Chris

[PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
I am trying to add error trapping to my site. In particular I want to direct visitors to an error page when for what ever reason a MySQL connection can not be made. Rather than a page full of errors I want a generic 'we are temporarily closed performing maintenance etc.. etc' Basically after a

[PHP] running commands as root from a script

2002-03-28 Thread Ken Nagorski
Hi there, I have a little problem. I need to run a few commands for Courier from a script. What I have is a php based application that makes it easy to create and manage virtual domains and the addresses for them from the web. However when You Apply the changes everything is written to /tmp dir

[PHP] Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-28 Thread DL Neil
Hi Patrick, [I have put this back on the list, because greater minds might come up with a better explanation!?] There appears to be an issue with gm time functions. gmmktime() is supposed to take a GMT date and return a GMT UNIX TimeStamp (as per mktime() but with no DST parameter). Conversely

Re: [PHP] SQL Question

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 00:30, Sebastian A. wrote: When you say ORDER BY that, is it also possible to do that via letters such as ORDER BY 'S', because from what I understand, ORDER BY has to be a column. In my example, 'this', 'that', 'the', 'other' are all columns. So yes, ORDER BY ,

RE: [PHP] running commands as root from a script

2002-03-28 Thread Darren Gamble
Good day, A bit off topic, but you can run a Perl script setuid. You have to pass a flag to Perl to let it know that it's OK, though (it's -U, I believe) which would appear in your first she-bang line. I've never had to run a PHP script setuid. I would imagine that one would have to write it

Re: [PHP] running commands as root from a script

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 01:44, Darren Gamble wrote: Good day, A bit off topic, but you can run a Perl script setuid. You have to pass a flag to Perl to let it know that it's OK, though (it's -U, I believe) which would appear in your first she-bang line. I've never had to run a PHP script

Re: [PHP] Enabling PHP in Apache when PHP is linked INTO the server?

2002-03-28 Thread Jason Wong
On Friday 29 March 2002 01:25, Max Wilson wrote: Is that all? Probably something like: AddType application/x-httpd-php .php4 .php3 .phtml .php .inc AddType application/x-httpd-php-source .phps Did you want more? OK, you need to restart the httpd server as well. -- Jason Wong

RE: [PHP] SQL Question

2002-03-28 Thread Miguel Cruz
On Thu, 28 Mar 2002, Sebastian A. wrote: When you say ORDER BY that, is it also possible to do that via letters such as ORDER BY 'S', because from what I understand, ORDER BY has to be a column. The object of order by should be something that changes for each row, or else the statement is

Re: [PHP] FTP RAW

2002-03-28 Thread Analysis Solutions
I have written the code to upload using RAW FTP commands. Cool! How'd you get it to work? --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I

Re: [PHP] setcookie with array (was serialize)

2002-03-28 Thread Miguel Cruz
On Thu, 28 Mar 2002, Rodrigo Peres wrote: if(isset($submit)) { $x = addslashes($HTTP_POST_VARS); $y = serialize($x); setcookie(posted,$y) } 1) You probably should call serialize on the array to turn it into a string before trying any string transformations like addslashes. If

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Rasmus, The code worked fine in PHP Version 3.x It does not work with PHP Version 4.1.1. That is where I have a problem. With Regards, Sharat From: Rasmus Lerdorf [EMAIL PROTECTED] To: Sharat Hegde [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Regular Expression Problem continues

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Miguel Cruz
Works for me in 4.1.1 (and 4.1.2) too. Are you sure there's not something else going on? Can you provide an unadulterated code sample pasted directly from your problem script? miguel On Thu, 28 Mar 2002, Sharat Hegde wrote: The code worked fine in PHP Version 3.x It does not work with PHP

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
I just tried it on 4.1.x and it is working fine. On Thu, 28 Mar 2002, Sharat Hegde wrote: Rasmus, The code worked fine in PHP Version 3.x It does not work with PHP Version 4.1.1. That is where I have a problem. With Regards, Sharat From: Rasmus Lerdorf [EMAIL PROTECTED] To: Sharat

[PHP] Cannot find php.ini

2002-03-28 Thread Todd Cary
My NT server has the OS in the directory, WINNT2, and the php.ini is not being read that is in that directory. What am I missing? Todd -- Dr. Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523 [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Emulating POST ?

2002-03-28 Thread Devin Atencio
I need to somehow write a PHP Script that will POST XML type stuff to UPS like this: ?xml version=1.0? AccessRequest xml:lang=en-US AccessLicenseNumberTEST262223144CAT/AccessLicenseNumber UserIdtestUser/UserId PasswordtestPW/Password /AccessRequest ?xml version=1.0? TrackRequest

RE: [PHP] Emulating POST ?

2002-03-28 Thread Johnson, Kirk
http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 http://marc.theaimsgroup.com/?l=php-generalm=92353052714384w=2 Kirk -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:14 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Emulating POST ?

2002-03-28 Thread Rick Emery
http://sourceforge.net/projects/snoopy/ -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Emulating POST ? I need to somehow write a PHP Script that will POST XML type stuff to UPS like this:

[PHP] new $_SESSION variables vs. session_register/unregister

2002-03-28 Thread Steven Jarvis
The manual says: If you are using $HTTP_SESSION_VARS/$_SESSION, do not use session_register(), session_is_registered() and session_unregister(). If that's the case, how do I unregister $_SESSION variables? Do I just use unset() or is there another way? I'm pretty new to PHP and I'm just

Re: [PHP] new $_SESSION variables vs. session_register/unregister

2002-03-28 Thread Steven Jarvis
Uh... doh! I was reading this: Note: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable. incorrectly. In my haste, I was basically not parsing the parentheses. I see now that I just treat the $_SESSION variables like any other

[PHP] Re: Sessions/Cookies and HTTP Auth

2002-03-28 Thread Steve Clay
Just as a note, recent builds of Mozilla have a cookie manager that is the best for seeing exactly what's going on with your cookies. You can list by name or host and see all the properties of each. Know when your session cookies are sent/deleted, know if PHP is allowing use of the same SESSID

[PHP] where i get .so [dll] file of linux ?

2002-03-28 Thread Prachait Saxena
Hello I would like to Know, where Site or Link i can get complied .so [dll] files. of linux as i have php_sockets.dll which works very fine in Windows enviroment. but on linux Can you suggest any other option for this. I am using dl(php_sockets.dll); while writing my code for windows and

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Yesthere may be something else going wrong. The source code of the test file I have is: ?php if (eregi(__([a-z0-9_]+)__, Hello __WO_RD__ Test, $Matches)) print Match Found with . $Matches[1] . br; else print Match Not Foundbr; ? The source

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
In your configure flags you have: --with-regex=system Why did you do this? Recompile without that switch and see if things change. -Rasmus On Thu, 28 Mar 2002, Sharat Hegde wrote: Yesthere may be something else going wrong. The source code of the test file I have is: ?php if

[PHP] Getting just the filename

2002-03-28 Thread Sharat Hegde
Hello, Is there a simple way of getting just the filename from strings which give the filename along with the path. For example, I need test.txt from c:\myfiles\test.txt It should also work with the / character, in other words, give test.txt from /htdocs/myfiles/test.txt With Regards, Sharat

RE: [PHP] Getting just the filename

2002-03-28 Thread Rick Emery
string basename (string path [, string suffix]) i recommend you read the manual before posting -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting just the filename Hello, Is there a

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
The files are hosted on a 3rd party hosted ISP. On my local machine it works fine. While I try and request for a recompile of the system, is there an alternate way out? By the way, what is the significance of the switch --with-regex=system Rasmus and Miguel, Thanks for your help. With

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Rasmus Lerdorf
While I try and request for a recompile of the system, is there an alternate way out? Why don't you use the PCRE functions instead. The equivalent preg would be: preg_match(/__([a-z0-9_]+)__/i, Hello __WO_RD__ Test, $Matches) By the way, what is the significance of the switch

RE: [PHP] Getting just the filename

2002-03-28 Thread Vail, Warren
One of the things I like about PHP, is if you think of something that you need like this, someone else has already thought about it and provided a function to do it. Try; http://www.php.net/manual/en/function.pathinfo.php Warren Vail Tools, Metrics Quality Processes (415) 667-7814 Pager

Re: [PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
-Original Message- From: Dan Tappin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:36 PM My only concern is that I am adding another mysql_connect and Why do it twice? The connection will still be there later in the script. Yes... I realized that after I hit send

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-28 Thread Rouvas Stathis
Prachait Saxena wrote: Hello I would like to Know, where Site or Link i can get complied .so [dll] files. of linux as i have php_sockets.dll which works very fine in Windows enviroment. but on linux Can you suggest any other option for this. I am using dl(php_sockets.dll);

[PHP] FreeMovie/PHP 1.1.2 is out

2002-03-28 Thread Jacek Artymiak
FreeMovie/PHP 1.1.2 is out at http://freemovie.sourceforge.net Enjoy, Jacek -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Loading Images

2002-03-28 Thread Kevin Stone
Huh.. hmm.. maybe this is possible after all. I'll have to test that out when I get home. If it works it could sure save me a headache or two. By the way most counters/trackers that I've seen are just simple javascripts which gather the browser information then request a tiny image from the

Re: [PHP] Loading Images

2002-03-28 Thread Rouvas Stathis
As long as preventing users to download a picture you display, my .02Eu opinion is that is is a fruitless task. A determined user will _always_ find a way to store the picture you send him. After all, you do send data to him, therefore the data can be manipulated at will:-) As far as some code

RE: [PHP] Loading Images

2002-03-28 Thread Darren Gamble
Good day, Yep, this is possible all right. I use this to display my rrdtool images. Just have the php program as the target for the image, and then supply the right header. For a gif image: header(Cache-control: private, no-cache); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Past date

[PHP] browscap.ini

2002-03-28 Thread webbie
Is there somewhere a standardized/universal browscap.ini? It seems to me that everyone simply snatches one from someone else and then builds on top of it. The most recent browscap.ini files that I find out there are still missing Lynx and Mozilla handlers. It would be nice if there were a type

[PHP] XSLT; XML = PHP code

2002-03-28 Thread Erik Price
I am using XSLT functions in PHP to transform a string (whose data is a string of XML) into another string. Ideally, the second string will consist of PHP code. I would like this outputted PHP code to be executed within the same script as the that which performs this transformation. Here

  1   2   >