Re: [PHP] checkbox: was it shown or not?

2003-07-17 Thread Leif K-Brooks
Chris Hayes (SENSE) wrote: if i understand well, a checkbox in a form is only send on to the next page when it is checked: so the next page will only see a value in $_POST['checkboxname'] if it is set: else it is not set. Right? So the followup page cannot see the difference between a form wher

[PHP] filemtime() on Windows

2003-07-17 Thread Shawn McKenzie
I am trying to get the last modified time of an HTML file on my windows machine. The file is in a sub dir of my script dir and I can use the same path for file_get_contents() and fopen() and the path works great. $filetime = date("mdyhis", filemtime("subdir/file.html")); Always returns: 1231690

RE: [PHP] scoring/sorting db search results based on score

2003-07-17 Thread Dave [Hawk-Systems]
Appreciate the responses... >> Try >> SELECT , (((keywords LIKE '%$search%') * 5) + ((title LIKE >> '%$search%') * 3) + (description LIKE '%$search%')) score FROM . >> ORDER BY score DESC > >PostgreSQL cannot type cast the Boolean type so you have to use a case >statement, also changing li

RE: [PHP] Access Text Field Max Size

2003-07-17 Thread Johnny Martinez
I figured it out. FYI You can use the Memo datatype which has a max of 65,535 characters vs. the Text datatype which has a max of 255. J -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:40 AM To: [EMAIL PROTECTED] Subject: [PHP] Access T

Re: [PHP] deleting one cookie is deleting both..why? (tiny scripts)

2003-07-17 Thread Chris Shiflett
--- Ryan A <[EMAIL PROTECTED]> wrote: > how do i make sure that the cookie will work for http://best > and www.best... and blah.bestweb etc? because thats what I > thought I was doing by using .bestwebhosters.com If you are setting the cookie from bestwebhosters.com, the best way (my opini

[PHP] Re: Access Text Field Max Size

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi, PHP has nothing to do with this , use javascript to limit user entry into your textarea field.. I'll find many sample over the net. Regards, P.E. Baroiller "Johnny Martinez" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi all, > I'm using an Access db as the backend

[PHP] Re: filemtime() on Windows

2003-07-17 Thread Shawn McKenzie
Nevermind. I had a typo in the path. Sorry... -Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to get the last modified time of an HTML file on my windows > machine. The file is in a sub dir of my script dir and I can use the same > path for file

Re: [PHP] XML Parsing

2003-07-17 Thread Tyler Lane
On Thu, 2003-07-17 at 10:03, Doug La Farge wrote: Hello, I'm new to PHP but have been coding in Perl for over six years. I've had a steep learning curve in the last few days. My task has been to use fsockopen to pull in an XML stream, parse that XML stream, and package up that data int

[PHP] Shiflett=>Re: [PHP] deleting one cookie is deleting both..why? (tiny scripts)

2003-07-17 Thread Ryan A
Hey, Thanks dude, will give it a go. Cheers, -Ryan - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Ryan A" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 5:34 PM Subject: Re: [PHP] deleting one cookie is deleting both..why? (tiny scripts) > --

Re: [PHP] back button and session variables

2003-07-17 Thread Matt Matijevich
To make matters more confusing the problem occurs on Windows machines but does not occur on Macintoshes Could you give me a little more info about what is happening? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Stored in DB has errors

2003-07-17 Thread Guru Geek
Hello, I went to bed last night and this was working. I woke up this morning and something has happened or someone has tampered with it. I have noticed that the LONGBLOB in the database which stores the actual binary of the image states that it contains 25.3k and the actual 'image_size' field st

[PHP] PHP and mod_perl

2003-07-17 Thread jsWalter
Anyone have any idea why I can't run PHP and mod_perl in the same web structure? I am getting this in my error log... [Thu Jul 17 14:02:07 2003] [error] 2508: ModPerl::Registry: Unterminated <> operator at G:/home/walter/htdocs/test.php line 1. This is my php file... "; ?> Any ideas

Re: [PHP] PHP and mod_perl

2003-07-17 Thread John Nichel
jsWalter wrote: Anyone have any idea why I can't run PHP and mod_perl in the same web structure? I am getting this in my error log... [Thu Jul 17 14:02:07 2003] [error] 2508: ModPerl::Registry: Unterminated <> operator at G:/home/walter/htdocs/test.php line 1. This is my php file... ";

Re: [PHP] back button and session variables

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 23:03, John Carpenter wrote: > I am having a hard time understanding what effect the back button has on > session variables. I have noticed that on some of my pages the back button > does not cause my application to have problems while on other pages it > does. To make matt

[PHP] Perl to PHP (Was XML Parsing)

2003-07-17 Thread Doug La Farge
First let me thank Tyler Lane for pointing out my XML issue. I'm an idiot (= vs. ==) was holding me up. D'uh! Now allow me to ask a Perl to PHP conversion question or three. As any Perl and PHP programmer is aware PHP does not have the cool reference thing going that Perl does (yeah, I hear th

Re: [PHP] PHP and mod_perl

2003-07-17 Thread John Nichel
Walter Torres wrote: -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 2:18 PM To: jsWalter Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP and mod_perl Look in your Apache configuration. Are you telling it to process *.php files as PHP? I seri

[PHP] PHP and secure transactions

2003-07-17 Thread Mike Joseph
Hey everyone, Anyone have any tips on books, sites, news groups... anything where I can get some *good* information on using PHP to process secure transactions (the real ones, with an RSA Certificate). Thanks in advance, ~Mike -- -==- Mike Joseph Unix Geek / Code Monkey "Gripped by fear men go

Re: [PHP] back button and session variables

2003-07-17 Thread Curt Zirzow
Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2003 23:03, John Carpenter wrote: > > I am having a hard time understanding what effect the back button has on > > session variables. I have noticed that on some of my pages the back button > > does not cause my application to have problem

[PHP] Apache TimeOut's disabled with mod_php

2003-07-17 Thread Eran Tromer
Greetings, My Apache processes occasionally get stuck on one request and stop doing anything useful. There's no progress on that request (as judged by tracing ethernet traffic or system calls), yet Apache's TimeOut directive does not kick in. This problem is apparently related to PHP, as it occu

[PHP] No Apache TimeOut with mod_php

2003-07-17 Thread Eran Tromer
Greetings, My Apache processes occasionally get stuck on one request and stop doing anything useful. There's no progress on that request (as judged by tracing ethernet traffic or system calls), yet Apache's TimeOut directive does not kick in. This problem is apparently related to PHP, as it occu

Re: [PHP] Perl to PHP (Was XML Parsing)

2003-07-17 Thread Curt Zirzow
Doug La Farge <[EMAIL PROTECTED]> wrote: > [...] > After that, how would this convert: > > $quote{class_name} = $text; > quote is a hash where class_name is the key. Php treats arrays and hashes the same, infact there really isn't any difference with them. so the syntax is always the same for ha

Re: [PHP] PHP and secure transactions

2003-07-17 Thread Curt Zirzow
Mike Joseph <[EMAIL PROTECTED]> wrote: > Hey everyone, > > Anyone have any tips on books, sites, news groups... anything where I > can get some *good* information on using PHP to process secure > transactions (the real ones, with an RSA Certificate). Not exactly sure what you mean.. do you wan

[PHP] Note on SuperGlobals

2003-07-17 Thread Michael Smith
Here's something pretty good I just found: A few years ago, my wife and I decided to go on a skiing trip up north. To reserve skiing equipment, you had to give 24 hours advance notice using the ski lodge's on-line website. The catch was that my wife had asked me to make the reservations 23 hour

Re: [PHP] PHP and secure transactions

2003-07-17 Thread Mike Joseph
Not exactly sure what you mean.. do you want a php script to make a secure connection with some external website? Perhaps... we are just in the planning stages right now. I have books upon books on writing code for secure transactions (processing credit card numbers, mostly) in Java and C++, but

[PHP] The stupidest question of the month.

2003-07-17 Thread René Fournier
(Okay, now you're prepared...) I need to write a little program that opens and maintains a TCP socket connection to a server across the Internet. This little program would wait for messages from the server it's connected to, then record those messages and send a kinda of acknowledgment "Got it"

[PHP] php4apache2.dll

2003-07-17 Thread jsWalter
What part of phpinfo.php tells me that mod_php4 is loaded and running on my Apache2/PHP 4.3.2 Win 2k system? php.conf (apache conf): # Windows Win32 version LoadModule php4_module modules/php4apache2.dll LoadFile "/etc/php/php4ts.dll" NOTE: pls, no comments on the lack of volume letter,

[PHP] A new FREE web server can do PHP faster than Apache's mod_php

2003-07-17 Thread LiteSpeed Information
Hi there! Do you feel the need for speed? Lite Speed Technologies proudly introduces you LiteSpeed Web Server 1.0 LiteSpeed Web Server is a full featured, high performance, secure, and easy-to-use Web server that runs on Unix and Linux. It supports HTTP/1.1, SSL, CGI, FastCGI, PHP, JSP, Servlets

[PHP] php-qt ?

2003-07-17 Thread Marco Weber
hi @all, i know php-gtk and i like it... however, i prefer qt... ;) is there a possibility to use qt for guis? thanks in advance for any reply Marco Weber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array key names - can they be called as strings?

2003-07-17 Thread Mike Morton
Perhaps I was not that clear on the subject :) I have the following array: $SAVEVARS[headerimage]=$_POST[headerimage]; $SAVEVARS[backgroundimage]=$_POST[backgroundimage]; I want to iterate through it to save to a database config: Forach($SAVEVARS as $whatever) { $query="update table set $wh

Re: [PHP] PHP and secure transactions

2003-07-17 Thread Chris Shiflett
--- Mike Joseph <[EMAIL PROTECTED]> wrote: > Anyone have any tips on books, sites, news groups... anything where I > can get some *good* information on using PHP to process secure > transactions (the real ones, with an RSA Certificate). Do you mean something like this? http://www.modssl.org/exa

Re: [PHP] back button and session variables

2003-07-17 Thread Jason Wong
On Friday 18 July 2003 04:39, Curt Zirzow wrote: > > 1) Whether or not the browser conforms to the rfc (something or another). > > If it conforms then the BACK button does not re-request the page. If it > > doesn't conform then it may re-request the page. > > If the page is not cacheable or the cl

[PHP] how can upgrade php 4.0 to php 5 ?

2003-07-17 Thread pehepe php
How can I upgrade php 4.0 to php 5 (I downloaded php 5) which settings should ý do. I use win 98 and pws. Thank you _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Matt Matijevich
The question is the - the assigned string key - is there a way to retrieve that in a loop? Foreach, for, while or otherwise? I think this is what you want. http://www.php.net/manual/en/control-structures.foreach.php foreach(array_expression as $value) statement foreach(array_expression as $ke

[PHP] 4.3.2 and CLI

2003-07-17 Thread Michael Rubin
I'm running PHP 4.3.2 (cli) as well as Zend Optimizer and PerformanceSuite (Accelerator only version), on RH 7.1 with apache 1.3. I keep getting the following errors when I try to do any php from command-line: PHP Warning: The Accelerator presently supports only Apache, ISAPI and FastCGI SAPIs in

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Evan Nemerson
I kinda skimmed, but I think what you want is foreach ( array_keys($SAVEVARS) as $key ) $query = "update table set $key=$SAVEVARS[$key];"; On Thursday 17 July 2003 02:38 pm, Mike Morton wrote: > Perhaps I was not that clear on the subject :) > > I have the following array: > > $SAVEVARS

Re: [PHP] php4apache2.dll

2003-07-17 Thread Evan Nemerson
Well if phpinfo.php looks like , and when you view it through the server you get tons of data, PHP is working. If you just get , it's not. On Thursday 17 July 2003 02:28 pm, jsWalter wrote: > What part of phpinfo.php tells me that mod_php4 is loaded and running on my > Apache2/PHP 4.3.2 Win 2k

Re: [PHP] The stupidest question of the month.

2003-07-17 Thread Evan Nemerson
Since you don't need to put up a server, you can just use fsockopen. If I recall correctly, passing the timeout argument as 0 means no timeout... If you use the cli version of php, you can just enter `php -q myscript.php &` on the command line (doubt this works w/ m$...). The ampersand tells the

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Chris Shiflett
--- Mike Morton <[EMAIL PROTECTED]> wrote: > Forach($SAVEVARS as $whatever) { > $query="update table set $whatever=$whatever[$whatever]"; > } Use braces: $query = "update table set $whatever = '{$whatever[$whatever]}'"; Chris = Become a better Web developer with the HTTP Developer's Han

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Lars Torben Wilson
On Thu, 2003-07-17 at 14:38, Mike Morton wrote: > Perhaps I was not that clear on the subject :) > > I have the following array: > > $SAVEVARS[headerimage]=$_POST[headerimage]; > $SAVEVARS[backgroundimage]=$_POST[backgroundimage]; > > I want to iterate through it to save to a database config: >

[PHP] Problem with sessions

2003-07-17 Thread Peda
I'm working on a website. Begining of my script is: But when I conect to website I get this warning message: Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec, O_RDWR) failed: Permission denied (13) in /home2/pena/public_html/listing1.php on line 3 Can anyone tell me wha

[PHP] Problem with sessions

2003-07-17 Thread Peda
I'm working on a website. Begining of my script is: But when I conect to website I get this warning message: Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec, O_RDWR) failed: Permission denied (13) in /home2/pena/public_html/listing1.php on line 3 Can anyone tell me wha

Re: [PHP] Problem with sessions

2003-07-17 Thread John W. Holmes
Peda wrote: Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec, O_RDWR) failed: Permission denied (13) in /home2/pena/public_html/listing1.php on line 3 Can anyone tell me what is wrong? PHP is trying to save session data in /tmp by writing a file there, but permission is den

[PHP] Input Submi Help

2003-07-17 Thread Matt Palermo
I have a script that contains a form which goes to page1.php on the click of a submit button. Inside the form are lots of checkboxes and things to fill out that get passed to page1.php. I want to put another button in there that send all the same names and values of the checkboxes to page2.php.

Re: [PHP] imagecreate() error

2003-07-17 Thread Michelle Bernard
YAY Got it working somewhat, now the so called image comes out garbled on the browser!! BUT getting close! "Michelle Bernard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > no errors have come up yet, still getting the same problem too, I am pulling > out my hair :) everything els

Re: [PHP] php4apache2.dll

2003-07-17 Thread jsWalter
Well, thanks Even, but my post stated what my phpinfo() was telling me was loading. My question is how can I tell if mod_php is running? Thanks anyway. Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions help

2003-07-17 Thread Dante O. Cabrera H.
I m working whit session's and I had this error : Warning: Cannot send session cache limiter - headers already sent (output started at /home/web/validacion.php:8) in /home/web/validacion.php on line 47 Warning: Cannot add header information - headers already sent by (output started at /home/web/

[PHP] session php mysql ,,,,help

2003-07-17 Thread Dante O. Cabrera H.
Hi everybody I want to start a session after a user validation, I have my variable I want to register : $login the code to start my session is: session_name(); session_start(); session_register('login'); session_encode(); $url="Location: mypage.php?PHPSESSID=".$PHPSESSID; header($url); ?> a

Re: [PHP] bcc on php

2003-07-17 Thread Louie Miranda
> A message that you sent contained a recipient address that was incorrectly > constructed: > Bcc: [EMAIL PROTECTED] missing or malformed local part (expected word or > "<") got this error.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Wendell Brown" <

RE: [PHP] jpeg photo file upload problem

2003-07-17 Thread motorpsychkill
I suspect this may be a browser/platform issue. I've recently run some tests and below are the most interesting results (mime types): IE 6 on PC: something.jpg -> image/pjpeg something.tif (pc format) ->application/octet-stream something.tif (mac format) -> image/tiff IE 5 o

RE: [PHP] jpeg photo file upload problem

2003-07-17 Thread John T. Beresford
You're exactly right. I did a test on a win box and it reported image/pjpeg I ran tests on other browsers/platforms, and for a .jpg image, only a handful of win boxes reported the 'pjpeg' thing. I also did tests using 'regular jpegs' and 'progressive jpegs' and that had no effect. Apparently t

[PHP] Reading files question

2003-07-17 Thread Beauford.2005
I have a file that has the 130 lines which follows the example below. Barnaby What I need to do is read this file, remove one line, add another line, and then resave it. I have tried the different fget functions etc. to read the file, but all I get is the name part and nothing else. I am assuming

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Justin French
Read this -- it got me well and truely pointed in the right direction http://zend.com/zend/trick/tricks-august-2001.php Justin On Friday, July 18, 2003, at 01:36 AM, Juan Nin wrote: I need to do the same and a .htacces file would not suite the problem I need to do as yahoogroups does When you

Re: [PHP] sessions help

2003-07-17 Thread Justin French
You called session_start() too far down the page... and by that time, you had already outputted something (text, html, or even just blank lines) to the browser. 1. rearrange you code so that session_start() is as close to the top as possible 2. implement output buffering Justin On Friday, J

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-17 Thread Dan Goodes
Hi Chris, a million thanks for the help there. That's what i thought I'd have to do. What I'm doing now is inspect the Range header to pull out the start and end, and then deduce the length, and then using fopen, fseek and fread to open the file and read from a certain offset for a certain leng

Re: [PHP] bcc on php

2003-07-17 Thread Wendell Brown
On Fri, 18 Jul 2003 08:30:24 +0800, Louie Miranda wrote: >> A message that you sent contained a recipient address that was incorrectly >> constructed: >> Bcc: [EMAIL PROTECTED] missing or malformed local part (expected word or >> "<") > >got this error.. Well, maybe your copy of php is expectin

[PHP] Re: 4.3.2 and CLI

2003-07-17 Thread DvDmanDT
You must remove Accelerator... "Michael Rubin" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I'm running PHP 4.3.2 (cli) as well as Zend Optimizer and PerformanceSuite > (Accelerator only version), on RH 7.1 with apache 1.3. I keep getting the > following errors when I try to do

[PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Ow Mun Heng
Hi All, Just a quick question on this. In my scripts, I'm using A LOT Of $GLOBALS['my_parameter'] to get the declared values/string. 1 example below : function display_menu_html() { echo ''."\n"; echo ''."\n"; echo "\t".''."\n"; echo "\t".'' . $GLOBALS['ho

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Leif K-Brooks
Ow Mun Heng wrote: This isn't really a Problem but.. is it bad programming practice?? Or I should just write another function that can return the values/string? I don't see why it would be, unless you don't like how it looks. -- The above message is encrypted with double rot13 encoding. Any unau

Re: [PHP] Reading files question

2003-07-17 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > I have a file that has the 130 lines which follows the example below. > > Barnaby > > What I need to do is read this file, remove one line, add another line, > and then resave it. I have tried the different fget functions etc. to > read the file, but all

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Curt Zirzow
Evan Nemerson <[EMAIL PROTECTED]> wrote: > I kinda skimmed, but I think what you want is > > foreach ( array_keys($SAVEVARS) as $key ) > $query = "update table set $key=$SAVEVARS[$key];"; > should be: $query = "update table set $key='{$SAVEVARS[$key]}';"; -- PHP General Mailing List (h

[PHP] Re: Reading files question

2003-07-17 Thread Beauford.2005
I found the answer. I was looking through the PHP manual and found htmlspecialchars() which did the trick. B -Original Message- From: Beauford.2005 [mailto:[EMAIL PROTECTED] Sent: July 16, 2003 8:50 PM To: PHP Subject: Reading files question I have a file that has the 130 lines which f

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Curt Zirzow
Ow Mun Heng <[EMAIL PROTECTED]> wrote: > Hi All, > > Just a quick question on this. In my scripts, I'm using A LOT Of > $GLOBALS['my_parameter'] to get the declared values/string. 1 example below > : > > function display_menu_html() > { > echo ''."\n"; > echo ''."\n"; > e

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Ow Mun Heng
> 'Loosely-coupled' code relied much less on the environment around it. > It would typically receive its values through an argument list, array > of values it needs, or perhaps by being a method in a class which has > attribute values for all of the necessary stuff. The $GLOBALS['parameter'] is ac

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Lars Torben Wilson
On Thu, 2003-07-17 at 18:35, Ow Mun Heng wrote: > Hi All, > > Just a quick question on this. In my scripts, I'm using A LOT Of > $GLOBALS['my_parameter'] to get the declared values/string. 1 example below > : The only real problem is if you ever want to use that code in anything else. Usin

[PHP] Still problem with files

2003-07-17 Thread Beauford.2005
Hi, Sorry for the extra emails, but I thought I had this licked, but now other problem pop up. As I said, I have a file with many lines like Alfredsson in it. I have been able to read the file into an array and display it, but I am trying to do a comparison IF statement and no matter what I try I

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Lars Torben Wilson
On Thu, 2003-07-17 at 21:10, Ow Mun Heng wrote: > > 'Loosely-coupled' code relied much less on the environment around it. > > It would typically receive its values through an argument list, array > > of values it needs, or perhaps by being a method in a class which has > > attribute values for all

[PHP] Value for entire file

2003-07-17 Thread Uma Shankari T.
Hello, I am facing one problem..i am getting one variable value from another file by using href..I need to use that value in the entire file..how can i do that..?? for example i am using the href like this.. i am passing the Apr1998 to the index file..i need to use the Apr1998 value full

[PHP] Re: Input Submi Help

2003-07-17 Thread Bobby Patel
I thought you could, but actually I dont think you can ... however there is this little hack I just came up with. FORM Example Code for redirect.php I hope you are familiar enough with PHP to understand the above. Basically depending on what Page variable was passed from the submit button, t

Re: [PHP] Value for entire file

2003-07-17 Thread Jason Wong
On Friday 18 July 2003 12:40, Uma Shankari T. wrote: > I am facing one problem..i am getting one variable value from another > file by using href..I need to use that value in the entire file..how can i > do that..?? > > for example i am using the href like this.. > > You should be using correc

[PHP] Re: Value for entire file

2003-07-17 Thread Bobby Patel
it should be in the $_GET or $HTTP_GET_VARS array in the index.php script. put this at the top of your index.php script var_dump ($_GET); # or $HTTP_GET_VARS depending on PHP version and see if the value is there. Also, if you are using the value in a function and you have PHP < 4.1.0 (I think),

Re: [PHP] Still problem with files

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 12:18, Beauford.2005 wrote: > Sorry for the extra emails, but I thought I had this licked, but now > other problem pop up. As I said, I have a file with many lines like > Alfredsson in it. I have been able to read the file > into an array and display it, but I am trying to

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Beauford.2005 <[EMAIL PROTECTED]> wrote: > Hi, Hello > > Sorry for the extra emails, but I thought I had this licked, but now > other problem pop up. As I said, I have a file with many lines like > Alfredsson in it. I have been able to read the file > into an array and display it, but I am tryin

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2003 12:18, Beauford.2005 wrote: > > > > So using the example above what would I use where the question marks are > > if I wanted to display everything but this line - > Value="3">Alfredsson. I have tried a variety of ways to do this: >

[PHP] problem matching multiple times

2003-07-17 Thread Vince LaMonica
Hi All, I have a content management system that I'm building and I'm having issues matching a variable that needs to be replaced with rows from a database. Basicly I have something setup similar to bbcode, where a user enters html-like text for formatting - eg: [b]bold text[/b]. I'm now adding

Re: [PHP] Still problem with files

2003-07-17 Thread Curt Zirzow
Curt Zirzow <[EMAIL PROTECTED]> wrote: > Beauford.2005 <[EMAIL PROTECTED]> wrote: > > > > i.e > > > > $p = "Alfredsson"; And watch out for case sensitive issues 'Option' != 'option' Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need background info on PHP & Java

2003-07-17 Thread Jan Bro
Hi, I know, I've posted a while back, but I still couldn't find any docuuments on how PHP and Java interact. I know what I've pulled out of the manual and I knwo I could also connect via Java Servlet (thx Ray) but that's just not enough, to satisfy. I mean if I'm using it, I sure want to know why i

[PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
I have this form with 2 values under 1 name ColTemplate. I was hoping if i can redirect it to another url? on the ?? if templateone or templatetwo. Anyhelp would be good. -- code - $v_get_template = $_POST['ColTemplate']; if ($v_get_template === 'TemplateOne') { ?? } elseif ($v_get_te

Re: [PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
My solution.. echo ""; Or you may have other more advance alternatives? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:08 PM Subject: [PHP] redirecting to a url.. > I

[PHP] Recovering from a time out

2003-07-17 Thread Gerard Samuel
Is it possible to *gracefully* recover from php timing out? For example, uploading a large file, and php times out, so display "Oops Timed out" This also assumes that we have no means of changing php's time out value?? Thanks for your comments.. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] problem matching multiple times

2003-07-17 Thread Curt Zirzow
Vince LaMonica <[EMAIL PROTECTED]> wrote: > Hi All, hello > [...] > function vjencode($message) { > > $message = " " . $message ; > > ##--- [b] and [/b] for bolding text. > $message = preg_replace("/\[b\](.*?)\[\/b\]/si", "\\1", $message); > > ##--- [i] and [/i] for italicizing text. > $

Re: [PHP] redirecting to a url..

2003-07-17 Thread Curt Zirzow
Louie Miranda <[EMAIL PROTECTED]> wrote: > I have this form with 2 values under 1 name ColTemplate. I was hoping if i > can redirect it to another url? on the ?? if templateone or templatetwo. header('Location: http://domain/file'); Curt -- -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
thanks, this is much better. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:29 PM Subject: Re: [PHP] redirecting to a url.. > > Louie Miranda <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Robert Cummings
Rather than having the following scenario: $GLOBALS['foo'] = 'foo'; $GLOBALS['fee'] = 'fee'; The following would be much cleaner and portable while still allowing the ease of use of $GLOBALS based configuration: $GLOBALS['myProjectName']['foo'] = 'foo'; $GLOBALS['myProjectName']['fee'] = 'fee';

<    1   2