Re: [PHP] Text editor for linux

2002-02-18 Thread Billy S Halsey
I used to use JEdit and Nedit -- both were satisfactory, but recently I've become a nut for GVim (or Vim if you're only only on a tty). If you'd like, I can send you my .vimrc file, which sets things up very nicely the way I like them. -bsh :-) Josep Raurell wrote: Quoting Torkil Johnsen

[PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Adrian Murphy
Hi, I'd like to implement a system whereby people have a subdomain on my site like so: yourname.mysite.com I've been reading the apache docs that say you can do this via virtual hosts. Can I do it so 'yourname' can be anything - where all requests are sent to the same page where i can parse the

[PHP] upload problem...

2002-02-18 Thread Cristiano Canobbio
hi my name is Cristiano and I've a question: why the function is_uploaded_file return 1? my example file is index.php thanks ?php function carica() { global $userfile; echo brFUNZIONE is_uploaded_file (è un boolean 0 - vero, 1 - falso)-- .is_uploaded_file ($userfile); } echo .form

[PHP] Q on php://stdin

2002-02-18 Thread Billy S Halsey
Hi all, I've been trying for the last three hours to do something like this: #!/usr/local/bin/php -q ?php $fp = fopen(php://stdin, r); while (!feof($fp)) { $line = fgets($fp, 4096); print $line; } fclose($fp); ? And then

RE: [PHP] form submission error trapping

2002-02-18 Thread Jill . Baker
Here's what I did. $error = ; if (error_in_field_1) $error .= A; if (error_in_field_2) $error .= B; if (error_in_field_3) $error .= C; and so on. Then, when displaying the form... if (strstr($error,A)) { echo You forgot to fill in this fieldbr\n; } echo input type=\text\ name=\Whatever\

[PHP] Sendmail, I've had enough of it!

2002-02-18 Thread Liam MacKenzie
ARGH!!! I'm seriously sick of this! I've spent days on end reading documentation, trying settings, seeking help, and it still won't bloody work! So I've taken the ultimate step, and applied the trusty rm -rf command to everything that has to do with sendmail! In other words, sendmail is

[PHP] no-cache headers

2002-02-18 Thread Phil Ewington
Hi, I am new to PHP and am having problems with no-cache headers, I have the following code added as the first line of code in the page... ? header(Expires: Mon, 01 Jan 1997 00:00:00 GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Pragma: no-cache); ? A combination of

[PHP] creating PDF. How to get the xpositioni of a text?

2002-02-18 Thread Andy
Hi there, I would like to create a pdf file and place a heading in the center of the page. pdf_get_value should do the job, but it does not work out. Does anybody know how to get this thing working? Thanx for help ANdy Code: pdf_set_font($dokument, Times-Roman, 35, winansi); $heading_width =

RE: [PHP] What Do You Think?

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 19:52 Not only can I hardly find a place with Tetley's on tap, I can hardly find it in stores! LOVE Tetley's. Er -- should I mention here that I live and work within walking distance of the

Re: [PHP] no-cache headers

2002-02-18 Thread Matt
- Original Message - From: Phil Ewington [EMAIL PROTECTED] I am new to PHP and am having problems with no-cache headers, I have the following code added as the first line of code in the page... ? header(Expires: Mon, 01 Jan 1997 00:00:00 GMT); header(Cache-Control: no-store,

[PHP] convert TIFF to JPEG

2002-02-18 Thread Norbert Eder
hi everybody! is there a chance to convert a tiff group 4 image to an jpeg-images via php? i haven't found anything.. so maybe you know something that way.. greets Norbert Eder Open.IT Informationsmanagement GmbH CoKG Styria Medien AG Schönaugasse

[PHP] preg_match vs ereg etc

2002-02-18 Thread DigitalKoala
hi folks, I was just wondering what your opinions were on using preg_match, preg_split instead of ereg and explode? I have to write a script to parse a lot of html and text files.. and I'm looking to use the fastest possible functions to do this... Many thanks for all your input! dk --

Re: [PHP] form submission error trapping

2002-02-18 Thread Matt
I think that mixing of html and php is too complex and leads to hard to maintain scripts. I find it extremely difficult to understand a scripts logic when it's spread out over hundreds of lines of php/html. I use EasyTemplates that came in Web Applications Development with PHP 4.0 by Tobias

[PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Ron Dyck
Is it possible to use variable variables from form values inside a function. For example when submitting form values, this works fine: foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } but, this doesn't: function myFunction() {

Re: [PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Matt
- Original Message - From: Ron Dyck [EMAIL PROTECTED] but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } } Since php variable scope is local unless you define it global, that

Re: [PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Ron Dyck
but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } } Since php variable scope is local unless you define it global, that won't work that way. You might try (just guessing

Re: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Jason G.
Hi, Look into mod_rewrite with Apache. We use it to capture www.univo.biz/yourname and display a page about you. However, my experience is very limited. I would imagine you could figure it out though. -Jason Garber IonZOft.com At 09:47 AM 2/18/2002 +, Adrian Murphy wrote: Hi, I'd like

[PHP] exec()

2002-02-18 Thread Chad
Does anyone know if I can exec a perl script from a php script even if my isp doesn't allow me to run perl scripts from the command line?

[PHP] Re: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread Jason G.
$nWidth = 3; $oRow = TRUE; while($oRow) { //Write tr here for($i=0; $i$nWidth; $i++) { $oRow = mysql_fetch_object($dbResult); //Write td/td here } //write /tr here } At 12:06 PM 2/18/2002 +, you wrote: Hi all, I

[PHP] Mysql_num_rows

2002-02-18 Thread Frank Miller
Thanks to everyone that helped me with my last problem I've run into another problem and was wondering if someone here could offer any help or suggestions. The project I'm working on is an event calender. It does several things but the problem I've run into is when I click a date on the

[PHP] .htaccess login id

2002-02-18 Thread Dave
Hi, I currently have a directory of my web site access protected using .htaccess and .htpasswd. Is there any way of retrieving the user ID in PHP after the person successfully logs in? Thanks in advance Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Mysql_num_rows

2002-02-18 Thread Niklas Lampén
Maybe you can round the problem with if ($num 1) echo Nothing today!; else echo Something to do today!; if (!isset($num) || $num == 0)... Niklas -Original Message- From: Frank Miller [mailto:[EMAIL PROTECTED]] Sent: 18. helmikuuta 2002 16:05 To: [EMAIL PROTECTED]

[PHP] date problem

2002-02-18 Thread eoghan
hello i am running into some trouble with a very basic problem. i want to insert the current date/time into my db. i have the field set up as a datetime field. when i submit info, i just get a blank date, i mean it all zeros, like -00-00 00.00:00:00. how do i insert the current datetime

Re: [PHP] form submission error trapping

2002-02-18 Thread Jason G.
Why do not you all just put all your PHP logic, db access, etc at the TOP of the script. Once you have your results and variables created, then start into html. This method produces MUCH cleaner scripts, and there is a very minimal amount of PHP interspersed within the HTML. Also, you have

[PHP] how to test ob_start(ob_gzhandler);

2002-02-18 Thread Rein Velt
Dear PHP coders, i am using ob_start(ob_gzhandler) to compress all html output. Is there any way to check if the output is really compressed? (and how much)? Thanks in advance, Rein Velt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date problem

2002-02-18 Thread Julio Nobrega Trabalhando
Mysql? INSERT INTO table VALUES (NOW()); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Eoghan [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] readline() Fails in PHP for Win2000

2002-02-18 Thread Rick Emery
What do I need to do to allow the readline functions to work? The following short program fails when run from the command line: ?php $line = readline(Input data: ); print $line; ? Execution command and error message: C:\php -q myscript.php br bFatal error/b: Call to undefined function:

RE: [PHP] date problem

2002-02-18 Thread Niklas Lampén
date() is your answer, use it in the piece of code generating the query. $DateTime = date(Y-m-d H:i:s); // 2002-02-18 16:10:43 Niklas -Original Message- From: eoghan [mailto:[EMAIL PROTECTED]] Sent: 18. helmikuuta 2002 16:14 To: [EMAIL PROTECTED] Subject: [PHP] date problem hello

RE: [PHP] Breadcrumbs in PHP

2002-02-18 Thread Matt Williams
Hi Laurie Not really looked at the script there. But I wrote one a while back which is similar. http://oozoo.co.uk/nobba/php-here.php Have look at that and see if you have the same problems m: I was trying out this breadcrumbs code found at evolt.org:

RE: [PHP] Mysql_num_rows

2002-02-18 Thread Rick Emery
Please show your exact code, because your code snippet looks right. Then, again, maybe it's because it's an Aggie machine...GRIN -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 8:11 AM To: Php-General Subject: RE: [PHP] Mysql_num_rows

php-general Digest 18 Feb 2002 14:28:21 -0000 Issue 1179

2002-02-18 Thread php-general-digest-help
php-general Digest 18 Feb 2002 14:28:21 - Issue 1179 Topics (messages 85141 through 85200): Re: form opens a php window. 85141 by: Gary Re: Running php from shell - passing parameters 85142 by: Greg Donald phpmyadmin-mysql 85143 by: jtjohnston 85169 by:

[PHP] Re: Mysql_num_rows

2002-02-18 Thread Corey Eiseman
Hi Frank, I'm not exactly sure what's up with this, I've definitely used something similar before without any problems. However, maybe you can work around it by switching the logic... if($num) echo blah, blah, blah; else echo There are no events scheduled today!; Wish I had a better

RE: [PHP] Mysql_num_rows

2002-02-18 Thread Niklas Lampén
Do everything as you did, except for that if-statement. $Query = SELECT * FROM table; $Results = mysql_query($Query); $num = mysql_num_rows($Results); if ($num 1 || !isset($num)) echo Nothing here!; else echo Do something today!; Niklas -Original Message- From: Rick

[PHP] Getting the pixelwidth of a text in PDF possible?

2002-02-18 Thread Andy
Hi there, I would like to place a text in the middle of a PDF page. This requires to know the length of the text in pixels prior creating the text on the page. Is there a method to find the length of the text? Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Mail () problems - Need help!

2002-02-18 Thread Anthony Rodriguez
I''ve a php script that gets e-mail addresses from a MySQL db and then using the mail() sends the same message to 100+ recipients. I tested the script twice. FIRST TEST. (1) I commented out the mail() routine. (2) I looped to get the e-mail addresses. (3) I echoed the e-mail addresses on the

[PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread SpamSucks86
I had this same problem. It's very aggravating. Jason G's solution won't work, because $oRow will always be true as long as there is more results, NOT if there are less than 3 results left. Why don't you true something like this ?php $nWidth = 3; $numrows = mysql_num_rows($result); //Now take

RE: [PHP] storing arrays

2002-02-18 Thread Rick Emery
?php $myarray = array(123,abcdef,4.567,another string); $ser = serialize($myarray); $ff = fopen(C:\myfile,w); fwrite($ff,$ser); fclose($ff); $fr = fopen(C:\myfile,r); $outser = fgets($fr,1000); fclose($fr); $outarray = unserialize($outser); print $outarray[0].\n; print $outarray[1].\n; print

[PHP] .htaccess login id

2002-02-18 Thread Mohamed Ismail Bulale
To get username and password with php, use this below code: $headers = getallheaders(); $auth=$headers['Authorization']; $pos = strpos($auth, ' '); $delivered_auth_type = strtolower(substr($auth, 0, $pos)); $authorization_params = substr($auth, $pos+1); //* analyse parameters if

Re: [PHP] Mail () problems - Need help!

2002-02-18 Thread Bogdan Stancescu
Your browser probably timed out. Try using flush() after the echo in the loop. You may also encounter PHP timeout - take a look at set_time_limit() if you bump into that. What I don't understand is why you received no mail - are you sure your mail() syntax is correct? You should try a third

Re: [PHP] Mail () problems - Need help!

2002-02-18 Thread DL Neil
Anthony, A common issue. Pertinent info required: 1 Win or *nix? 2 able to send a single msg to a single email addr? 3 does loop get address and send msg to that address, 136 times; or does loop collect 136 addresses and then after closing the loop a single msg is sent to 136 recipients in the

[PHP] stupid problem

2002-02-18 Thread John Gurley
I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff } the problem is that no matter what the value of $inst the code enters the loop. I know it is some thing small and stupid, but any help would be appreciated. john

RE: [PHP] stupid problem

2002-02-18 Thread Rick Emery
show html show code -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] stupid problem I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff }

Re: [PHP] zend studio 2.0

2002-02-18 Thread Zeev Suraski
At 05:02 18/02/2002, Peter J. Schoenster wrote: Well, as you said, no point in arguing. Just that I think if someone really wants to develop they should learn some better tools than a GUI but it's a question of balance. That's quite an arguable point. I don't code PHP but C++ and Java, and I

RE: [PHP] Frustrating ?

2002-02-18 Thread Rick Emery
It means your query failed. Change $news = mysql_query('select * from ccl where '.$where.' order by AU desc'); TO: $news = mysql_query('select * from ccl where '.$where.' order by AU desc') or die(error: .mysql_error()); this will display the error -Original Message- From: jtjohnston

[PHP] response

2002-02-18 Thread John Gurley
here is the html part of the code:: h3 align=center Instrument/h3 center select name=inst option selected value=1Beeps/option option value=2Violin/option /select /center and the php:: echo($inst); if($inst == 2) { } cheers

RE: [PHP] response

2002-02-18 Thread Rick Emery
A little more code would be handy. We promise not to steal it for our own use GRIN When you print $inst, is the correct value displayed? May we assume the SELECT block is in a form? -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:06 AM

RE: [PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Ron Dyck [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 13:38 [... snip working example] but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } }

[PHP] code

2002-02-18 Thread John Gurley
not trying to be sneaky or hide anything, the only thing is that it is a long code and what ever is wrong with what I am using it will not let me paste the code over!?! when I echo $inst i get the expected result (i.e. 1 or 2) but even if the result is 1 it goes into the loop...and yes the

Re: [PHP] zend studio 2.0

2002-02-18 Thread Zeev Suraski
Chris, Stability improved *a lot* since the beta in December. Remember, it *was* a beta release, and like most betas, stability was not perfect. It's quite good now, and it also got a whole new (well, mostly new) code completion engine which is really revolutionary for PHP. I'm not

Re: [PHP] zend studio 2.0

2002-02-18 Thread Zeev Suraski
At 00:27 18/02/2002, robert janeczek wrote: hi i write in php about 1.5 years. from the beginning i use macromedia homesite and i`m quite content of it. but...debugger, environment not optimized for php developers etc. so i wanted to try zend studio, i downloaded it, installed (w2k, i already had

Re: [PHP] Sessions that last for ever

2002-02-18 Thread Erik Price
On Saturday, February 16, 2002, at 03:10 PM, Nigel Gilbert wrote: But very many commercial sites, including Apple and Amazon to name two, do exactly this. When you re-enter the site they 'remember' who you are using a cookie. In my case, I'm building a multi-player strategy game and

[PHP] pg_result pg_fetch_row pg_fetch_array

2002-02-18 Thread * nea *
Which is the diference between this functions: pg_result, pg_fetch_row, and pg_fetch_array @@()@@ wWWWw Andrea Hernandez Alfaro (___) Dpto. Computo, Area Internet / YUniversidad Latina de Costa Rica \ | \ |/ jgs|// \\|/// Your mind

RE: [PHP] pg_result pg_fetch_row pg_fetch_array

2002-02-18 Thread Rick Emery
If they'e like the mysql equivalents, then: pg_result() fetches a single value pg_fetch_row() fetches a row from the result set. Access each value with an integer subscript. pg_fetch_array() fetches a row from the result set. Access each value with the name of the column/field read the manual

[PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
Hello, I'm running PHP version 4.1.1. When I invoke this function, ?php phpinfo()?, all variables are set. However, when I try to retrieve a value of a certain variable like this: ?php echo $HTTP_USER_AGENT; ? It returns NULL. Is there a missing configuration on apache or

Re: [PHP] pg_result pg_fetch_row pg_fetch_array

2002-02-18 Thread Jim Lucas [php]
http://php.blue-box.net/manual/en/function.pg-result.php http://php.blue-box.net/manual/en/function.pg-fetch-row.php http://php.blue-box.net/manual/en/function.pg-fetch-array.php This should tell you all you need to know. Jim Lucas - Original Message - From: * nea * [EMAIL PROTECTED]

Re: [PHP] Re: building dynamic pdf files?

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 12:31 AM, michael kimsal wrote: Seems a couple other answers pointed you to Adobe, but if you need to run this under Unix, you're kinda outta luck. Adobe don't make current tools for Unix (as far as I can tell). Well... don't forget that Mac OS X is

Re: [PHP] What Do You Think?

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 07:01 AM, Ford, Mike [LSS] wrote: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 19:52 Not only can I hardly find a place with Tetley's on tap, I can hardly find it in stores! LOVE Tetley's. Er -- should

[PHP] Re: F/U on mail () problems

2002-02-18 Thread DL Neil
Dear Anthony, [I've put this back on the list, because others know far more about *nix and email than I do] BTW: people will respond more readily if you include a reassurance that you are emailing a 'membership' list or its some sort of client opt-in situation - not spamming! Thank you for

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
You can also do this via a PHP script, which is what I do. I have 5 URLs all going to the same site (500 megs disk space). I parse the subdomain, and re-driect to the appropriate sub-directory. Actually, you don't even need to parse the URL for sub-domain. Just search for the

[PHP] got the code

2002-02-18 Thread John Gurley
here is a larger chunk of the code: html body background = backgrnd.gif text = ff8c00 link = ff vlink = 00 /body /html ? $f=fopen(/home/jgurley/www/test.txt,w); ? html center h1WEB BASED MUSIC COMPOSITION/h1 hr font size =6 Enjoy the Tune /font hr br font size = 4Tone Row:/font

[PHP] Unsubscribe s.osborne

2002-02-18 Thread Rick Emery
List Moderator, Can you please unsubscribe s.osborne Every post I send earns a Postmaster - Cannot Deliver return. -Original Message- From: Postmaster [mailto:Postmaster] Sent: None To: [EMAIL PROTECTED] Subject: Error delivering message to:

RE: [PHP] Re: F/U on mail () problems

2002-02-18 Thread Michael Geier
2 - Yes. The script works if the # of e-mails is small. More than likely, the script is timing out. see http://www.php.net/set_time_limit Here's a copy: ?php $connection=mysql_connect(localhost,wagner,xxx) or die (No connection!); $db=mysql_select_db(sbwresearch_com,$connection) or die

RE: [PHP] got the code

2002-02-18 Thread Rick Emery
First, where is $inst set prior to being echoed and tested? second, please stop changing the subject. It makes following the thread very difficult. -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:25 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Text editor for linux

2002-02-18 Thread Chris Lott
Anyone know of a good text editor for linux, WITH syntax highlighting for php/html + other languages? emacs. There is no alternative. :) c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get_browser();

2002-02-18 Thread Chris Boget
The following example that is in the onsite documentation: ? function list_array ($array) { while (list ($key, $value) = each ($array)) { $str .= b$key:/b $valuebr\n; } return $str; } echo $HTTP_USER_AGENThr\n; $browser = get_browser(); echo list_array ((array) $browser); ?

Re: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Chris Lott
You can also do this via a PHP script, which is what I do. I have 5 URLs all going to the same site (500 megs disk space). I parse the subdomain, and re-driect to the appropriate sub-directory. So do you have this code running on every page or does it only redirect from the index page or

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Neil Freeman
Have a look at the function getenv().. eg: $ip = getenv (REMOTE_ADDR); // get the ip number of the user HTH Neil Narvaez, Teresa wrote: Hello, I'm running PHP version 4.1.1. When I invoke this function, ?php phpinfo()?, all variables are set. However, when I try to

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
Only re-directed from the index.html page. My web-host service is set-up so that .HTML suffix files can execute PHP script files without re-directing to them. -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:49 AM To: [EMAIL PROTECTED]

Re: [PHP] zend studio 2.0

2002-02-18 Thread DL Neil
Zeev, Didn't experience any stability problems with the beta per-se, but using a Windows box was an exercise in Unix-ification. Has the released version for Win32 seen significant alterations to the GUI? =dn - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: Chris Lott

[PHP] Returning table rows from MySQL

2002-02-18 Thread Scott Saraniero
Hi. I've got a piece of code below that works great for me. Now I would like to modify the rows with alternating colors in the displayed results. Any suggestions on how to do this? ?php $Host = ; $User = ; $Password = ; $DBName = ; $TableName = ; $Link = mysql_connect($Host, $User,

RE: [PHP] Returning table rows from MySQL

2002-02-18 Thread Rick Emery
?php $Host = ; $User = ; $Password = ; $DBName = ; $TableName = ; $Link = mysql_connect($Host, $User, $Password); $Query = SELECT * FROM $TableName; $Result = mysql_db_query($DBName, $Query, $Link); $ctr = 1; print (table border=1 width=\65%\ cellpadding=3 align=center); print (tr); print

[PHP] Reading PHP Session Files?

2002-02-18 Thread Devin Atencio
I have a program that saves session information into the database. It saves the session info much like the PHP4 session files. I need to allow my script to pull the session info out of the database then update one of the fields and then write back out the entire session string back to the

RE: [PHP] Reading PHP Session Files?

2002-02-18 Thread Rick Emery
You, of course, recognize this as serialized data. Therefore, simply use unserialize(), change the data value, the serialize() it again. -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] get_browser();

2002-02-18 Thread Alastair Battrick
Have you got the browscap.ini file installed properly ? and have you got a up to date version of browscap.ini ? and What is reported by IE visitng the script ? Alastair -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 17:48 To: [EMAIL

RE: [PHP] Returning table rows from MySQL

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Scott Saraniero [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 18:02 To: [EMAIL PROTECTED] I've got a piece of code below that works great for me. Now I would like to modify the rows with alternating colors in the displayed results. Any suggestions

[PHP] http_referer

2002-02-18 Thread tom hilton
Hi, I am trying to pull http_referer info on users accessing a certain page, but am not having any luck. When I run phpinfo(), the referer information is listed with all the other server variables, but when I pull a list of the server variables as an array and print them, they all appear except

RE: [PHP] http_referer

2002-02-18 Thread Rick Emery
Try accessing the variable: $HTTP_REFERER without specifying the array. it works for me -Original Message- From: tom hilton [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:25 PM To: [EMAIL PROTECTED] Subject: [PHP] http_referer Hi, I am trying to pull http_referer

[PHP] PHP and HTTPS

2002-02-18 Thread wm
hi. wondering if anybody has any insight into this. i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot be displayed error

Re: [PHP] Returning table rows from MySQL

2002-02-18 Thread Matt Drake
On Mon, 18 Feb 2002, Scott Saraniero wrote: I've got a piece of code below that works great for me. Now I would like to modify the rows with alternating colors in the displayed results. Any suggestions on how to do this? Try this: $Count = 0; while ($Row = mysql_fetch_array($Result) {

[PHP] major redirection woes!

2002-02-18 Thread DigitalKoala
hi folks, i've been tearing my hair out over a redirection problem ... but i can't seem to find a satisfactory solution. i'm sending some variables to a script on an external webpage, the webpage sends me the data i need back.. except that this page goes through a redirect page... i want to

Re: [PHP] PHP and HTTPS

2002-02-18 Thread Matt Drake
On Mon, 18 Feb 2002, wm wrote: i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot be displayed error (with possible

Re: [PHP] zend studio 2.0

2002-02-18 Thread Zeev Suraski
At 19:53 18/02/2002, DL Neil wrote: Zeev, Didn't experience any stability problems with the beta per-se, but using a Windows box was an exercise in Unix-ification. Has the released version for Win32 seen significant alterations to the GUI? I'm not sure which beta you've seen, but the GUI is

Re: [PHP] zend studio 2.0

2002-02-18 Thread robert janeczek
The problems you were having with the server components of the studio sound quite odd - can you elaborate on them? (probably off-list, it's best if you could submit a bug report about it through zend.com/store/pickup.php, evaluation support). This is water under the bridge now, but you

[PHP] Re: PHP and HTTPS

2002-02-18 Thread Michael Kimsal
Wm wrote: hi. wondering if anybody has any insight into this. i have written some PHP scripts that work every single time under http. under https (we have a valid security certificate) they work every single time on IE on mac and on NN on mac and pc. on IE on pc a this page cannot

Re: [PHP] Unsubscribe s.osborne

2002-02-18 Thread Erik Price
Yes, me too (to verify) -- Check the archives for Friday, you'll see that this has been ongoing for a few days. Thank you Erik On Monday, February 18, 2002, at 12:24 PM, Rick Emery wrote: List Moderator, Can you please unsubscribe s.osborne Every post I send earns a Postmaster -

Re: [PHP] zend studio 2.0

2002-02-18 Thread Scott
FYI- My two cents. I have been running the demo version since a day or two after it was released. On Windows 2000 it has been solid as a rock. I have not tried it on my XP laptop yet, but will soon. Zend Studio is really helping to make PHP 'legitimate' in the corporate world since it

Re: [PHP] http_referer

2002-02-18 Thread Erik Price
In PHP4.1 or later, try: echo $_SERVER['HTTP_REFERER']; Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_match vs ereg etc

2002-02-18 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Digitalkoala) wrote: I was just wondering what your opinions were on using preg_match, preg_split instead of ereg and explode? I have to write a script to parse a lot of html and text files.. and I'm looking to use the fastest possible

Re: [PHP] php blocking functions

2002-02-18 Thread Sofhian Mahat
Hey List, That is a great question. I too would like to know. Does anyone on this list know anything about this? Thanks, Chad - Original Message - From: Sofhian Mahat To: [EMAIL PROTECTED] Sent: Saturday, February 16, 2002 9:33 PM Subject: [PHP] php blocking functions

[PHP] Php Enum Field

2002-02-18 Thread Wee Chua
Hi all, How can I get the preset values for Enum field inside the table. For example, table A has a field called AccessRight, the enum fields are Read,Add,Delete. How can I write the query to get these values out from AccessRight field? Thanks, Wee -- PHP General Mailing List

[PHP] Re: PHP and HTTPS

2002-02-18 Thread J Smith
Sourceforge has a bit on this, too. Basically, they have a checkbox that lets you drop out of SSL after you login, so your username and password aren't sent over the wire in plaintext. However, after that, everything is plaintext, no SSL at all. Useful if you want to keep your password safe

Re: [PHP] code

2002-02-18 Thread Tyler Longren
make sure you're doing it like this: if ($inst == 1) { // do this } else { // do something else } instead of this: if ($inst = 1) { // do this } else { // do this } Just a thought. Tyler - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Re: got the code

2002-02-18 Thread J Smith
Could you please leave the subject alone when you're following up on a thread. It's hard to follow what you're talking about when we can't see the references to the other parts of the thread. As for your problem, try removing the semi-colon after the if ($inst == '2') statement. It's a

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
I must not understand your question. As you've asked it, the answer is: SELECT AccessRight FROM tableA; -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 1:27 PM To: PHP (E-mail) Subject: [PHP] Php Enum Field Hi all, How can I get the preset

RE: [PHP] Php Enum Field

2002-02-18 Thread Wee Chua
Sorry, my question was how can I retrieve the preset Enum values from AccessRight field property? Thanks. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:51 PM To: 'Wee Chua'; PHP (E-mail) Subject: RE: [PHP] Php Enum Field I must not

[PHP] Re: Polymorphism in PHP

2002-02-18 Thread Richard Fox
That's right, the difference between C++ pure virtual and virtual is that a virtual function has an implementation but pure virtual only defines an interface. But can we get back to my original PHP question: Can I do something like the following in php: class Base { function Foo() { echo

Re: [PHP] Php Enum Field

2002-02-18 Thread Chris Lott
Sorry, my question was how can I retrieve the preset Enum values from AccessRight field property? Thanks. Untested, but I think I remember: $result = mysql_query(SHOW COLUMNS FROM main LIKE `colname`); c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List

RE: [PHP] Re: Polymorphism in PHP

2002-02-18 Thread Rick Emery
I must be missing something in your question, because I just tried your script below and it worked as advertised. Did you try the script and it failed? -Original Message- From: Richard Fox [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:13 PM To: PHP Subject: [PHP] Re:

Re: [PHP] get_browser();

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 12:47 PM, Chris Boget wrote: Isn't working as described in the example output provided on the page. In fact, half the time, get_browser() is returning nothing. And HTTP_USER_AGENT is only returning: Mozilla/4.7 [en] (Win95; I) for Netscape. Why isn't

[PHP] Timed Redirect

2002-02-18 Thread Steven Walker
Is there way to have a page automatically redirect the user to another page, but with a timed delay? I'm working on a purchasing system. After a successful purchase, a thank you page is shown, and then I want to take the user to a download page a few seconds afterward. Thanks! Steven J.

  1   2   >