[PHP] Re: Long screen display cut short.

2003-05-31 Thread Martin Helie
g the code to avoid using an array solved the problem. Have not had the problem since upgrading php. Martin Floyd Baker <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello... > > I have a routine that works fine on local win98 but when it runs on > linux online

[PHP] Re: Adding graphics library

2003-05-31 Thread Martin Helie
Well, not necessarily, since gd is included with php 4.3.x. You'll probably still want to get libjpeg and libpng, and link against them with the proper configure options. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --with-gd and of oucrce you need the GD library. > > "Todd Car

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
Ernest, I'm not _that_ clueless :-) As I said, since I was recursing through the function by calling it numerous times in the middle of its execution, and since the function didn't explicitly return, I didn't expect it to continue past each call. That's all! Martin Ernest E

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
Hi Steve, yes, I am familiar with these concepts; I am just starting to experiment with recursive functions and static variables. Thanks for explaining that once the function is called and completed, the rest of the first call continues executing normally. That is what surprised me. Martin >

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
> Why? The "I'm here" line is outside the conditional. The function will > still complete independent of the conditional. If $i is greater than ten, > the pointer just skips the contents of the if/then and continues on the > next line after it. Here's a better illustration: In my test() function,

[PHP] static vars question

2003-05-31 Thread Martin Helie
and test() is invoked again, the current function call executes all the way through to echoing "I'm here". I would've thought current execution would be terminated as soon as the function is called again, and that I'd get "I'm here" only once we're out o

[PHP] Problem with big files

2003-05-27 Thread Martin
we would like to upload large files to the server ( 20 MB ). We have changed the configuration of php.ini in order to upload this files via http. We changed the following parameters: post_max_size = 25M file_uploads = On upload_tmp_dir =/tmpupload upload_max_filesize = 25M memory_limit = 25M als

RE: [PHP] date math question

2003-03-27 Thread Martin Towell
I think there's problems doing that when daylight savings starts/ends Just something to keep in mind... -Original Message- From: Leo Spalteholz [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] date math question On March 27, 2003 09:

RE: [PHP] sript doesn't work

2003-03-27 Thread Martin Towell
same question as before: have you got register_globals turn on or off ? -Original Message- From: J. P. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] sript doesn't work Hello! I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1. Whe

RE: [PHP] Why this script doesn't work?

2003-03-27 Thread Martin Towell
have you got register_globals turn on or off ? -Original Message- From: J. P. [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Why this script doesn't work? I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1! -- PHP General M

RE: [PHP] echo

2003-03-20 Thread Martin Towell
sorry - sleep(5); -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:58 PM To: Martin Towell; php list Subject: Re: [PHP] echo php has a wait function? I didn't know that... But i get: Fatal error: Call to undefined function: wait() I

RE: [PHP] echo

2003-03-20 Thread Martin Towell
is this what you're after ? flush(); wait(5); // I think wait() is in seconds echo "blah"; -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 2:54 PM To: php list Subject: [PHP] echo hello all, is it possible to delay an echo say by 5 seconds

RE: [PHP] multiple foreach

2003-03-20 Thread Martin Towell
try this... for ($i = 0; $i < count($charge); $i++) { $c = $charge[$i]; $s = $size[$i]; $sql = "UPDATE products_to_sizes SET surcharge = '$c' WHERE product_id = '$products_id' AND size_id = '$s'"; mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR()); print $sql.''; } -Origi

RE: [PHP] Zero Fill -> Number Format

2003-03-20 Thread Martin Towell
oops, sorry - try this instead sprintf/printf("%07d", $num) -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 8:23 AM To: Martin Towell; Harry.de; [EMAIL PROTECTED] Subject: RE: [PHP] Zero Fill -> Number Format wouldn't thi

RE: [PHP] strip single quotes

2003-03-19 Thread Martin Towell
try this $address2 = str_replace("'", "''", $address) -Original Message- From: Daniel McCullough [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] strip single quotes I'm trying to query the database using a string pulled out of the dat

RE: [PHP] Zero Fill -> Number Format

2003-03-19 Thread Martin Towell
sprintf/printf("%7d", $num) -Original Message- From: Harry.de [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Zero Fill -> Number Format How can I put out a Zero Fill for numbers The result should be $something=26; echo $something;

RE: [PHP] Getting linux server's country

2003-03-19 Thread Martin Towell
So noone has any ideas at all ? Surely not ? If my question's too vague, please let me know and I'll try to expand on it... -Original Message----- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting linu

[PHP] Getting linux server's country

2003-03-18 Thread Martin Towell
e doesn't seen to be one. I'm using PHP 4.0.6 TIA Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re user Identifying

2003-03-14 Thread Martin Mandl
The problem you are describing is implemented in a quite amazing GPL shop. You might want to have a look: www.oscommerce.org Regards Martin Peter Goggin wrote: I did not make my request for information clear. The two scenarios which I have to cover: 1. The user registers as a customer with the

[PHP] Re: need a new challenge

2003-03-14 Thread Martin Mandl
there were some nice threads last week: - formating the input of a name: eg: stuart o'neil -> Stuart O'Neil RONALD MCDONALD -> Ronald McDonald serge d'avignon -> Serge d'Avignon von Braun -> von Braun ... implementing that for all possible langugae struktur

[PHP] string validating

2003-03-12 Thread Martin Dziura
was trying chr() to change all unwanted chars. TIA Martin _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: how to uploads files

2003-03-12 Thread Martin Mandl
try the following ... http://www.faqts.com/knowledge_base/index.phtml/fid/62 Luis A wrote: hi every one :) how can i uploads files to my server by php script ? any hand on that i realy apreciate Thanks __ Luis Atala Profetional

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread Martin Mandl
it's not possible (at the moment) to manipulate existing pdf-files with fpdf. Rives Sergio Sofrecom wrote: maybe the link didn't work... www.fpdf.org sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what the hell in this sql

2003-03-12 Thread Martin Mandl
Nevertheless the $ looks weard ... George Pitcher wrote: Firstly, This isn't a php question and should be directed at a sql list or to php-db Have you lokked at erro 1064 in the manual? What does it say? There are several things that you should do before coming to the list with a problem. Witho

RE: [PHP] Dollar signs in values

2003-03-06 Thread Martin Towell
code snippets would be helpful -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 5:07 PM To: php list Subject: Re: [PHP] Dollar signs in values > Escape them with a backslash: > > $text = "The amount is \$400.-"; All that does is print \$ in

Re: [PHP] Re: functions and

2003-03-03 Thread Martin Johansson
it logs somone out of a session.. "Ray" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: > Ok t

[PHP] Re: functions and

2003-03-03 Thread Martin Johansson
Ok to make it simplier, this is what I wanna do! Logout"; function logout() { . } ?> How do I do it!!! /M > Hi > I want to call a function logout() inside an statement: > > \">logout > > function logout() > { > > } > ?> > > but this doesnt work.. how shall I do it > /M > > -- P

[PHP] functions and

2003-03-03 Thread Martin Johansson
Hi I want to call a function logout() inside an statement: \">logout but this doesnt work.. how shall I do it /M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fread problem

2003-03-02 Thread Martin Towell
you'll have to exec() the code $filename = "test.php"; $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); exec($contents); see if that works Martin > -Original Message- >

RE: [PHP] heredoc problem

2003-03-02 Thread Martin Towell
when I copy/pasted directly from your email and tried to execute it, I can an error on line 5 too I noticed that there's a space at the end of line 5, I deleted it and it worked fine. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 9

RE: [PHP] Switch Statement || Case with multiple values?

2003-03-02 Thread Martin Towell
I've been using this: if (in_array($value, array("foo", "bar", "blah"))) { // do something } but if you want to use a switch/case, I don't know any easier way. HTH Martin > -Original Message- > From: CF High [mailto:[EMAIL PROTECTE

[PHP] Re: Too many connections - MySQL

2003-02-26 Thread Martin Mandl
don't use persitent connections ... that will solve your problem Stephen Craton wrote: On this site, www.roempire.com, which we host, they are having problems with too many connections. I think that someone messed with the GRANT option. How can we reverse this and allow unlimited connections per

Re: [PHP] newbie: installing gd in php4

2003-02-26 Thread Martin Mandl
just make sure, the php_gd.dll is in the directory where all your other php-dlls are ... -Original Message- Using MS Win 98 / PHP 4 and Apache. What is the best way to install php_gd.dll so that I can make use of the image library. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] WebTV vs PHP

2003-02-26 Thread Martin Mandl
okies switched off Best regards Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[6]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread Martin Marques
On Mié 19 Feb 2003 08:54, [EMAIL PROTECTED] wrote: > > I was wondering if you were able to check the exact RH release of your > PHP package, to see if it matched mine? ==> rpm -q php php-4.1.2-7.3.6 > MM> When you run phpinfo() the output gives you the configure line > MM> with which php was comp

Re: Re[4]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread Martin Marques
On Mar 18 Feb 2003 16:00, [EMAIL PROTECTED] wrote: > > Very weird - I thought RedHat would have enabled it too. I did When I say RH, I mean RedHat. The diference seems to be that I'm on 7.3, while you're on 7.1. Still, it should be compiled with ftp support. > copy-and-paste the problem command

Re: Re[2]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Martin Marques
Quoting [EMAIL PROTECTED]: > Rick, > > In response to your mail of Monday 17 February 2003 at 17:46:49: > > > Thanks for your swift response! > > > RE> I also use Redhat 7.1 and use FTP successfully. Something in your > RE> setup? > > Well, I don't think so ... it's all fairly standard (only

Re: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Martin Marques
Quoting [EMAIL PROTECTED]: > Hi, > > Installed RPM's from RedHat (latest patches) and using PHP with Apache > under RH7.1 Linux, lots of scripts, no problems. > > The hitch is that a user just tried ftp_connect(), and got the > "unknown function" error. > > Okay, so I expected this to be a miss

Re: [PHP] Beginners question

2003-02-09 Thread Martin Purdy
How do you use the output on a webpage then? Martin "Leif K-Brooks" <[EMAIL PROTECTED]> skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My guess is that the new lines are there, but since you're (most likely) > outputting HTML, you don&

[PHP] Beginners question

2003-02-09 Thread Martin Purdy
, but they come out as one line. echo "This spans\nmultiple lines. The newlines will be\noutput as well."; Can someone please tell me what I am doing wrong? Martin Purdy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problems with ==?

2003-02-06 Thread Martin Towell
check for leading/trailing spaces if (trim($view) == "vendor") HTH Martin -Original Message- From: Peter Gumbrell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:07 PM To: Php-General Subject: [PHP] problems with ==? In the following code $view = $HTTP_GET

Re: [PHP] Screen Size detect??

2003-02-01 Thread Martin
you can create a form with hidden fields like this document.screendata.height.value=screen.height; document.screendata.width.value=screen.width; screendata.submit(); bye "Nigel Powell" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] problem with header

2003-01-30 Thread Martin
i have an script, it send a header response: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ? in URLS.

2003-01-23 Thread Martin Towell
if it's just the string after the ? then use $QUERY_STRING can't remember which $_* variable it's under... HTH > -Original Message- > From: Simon Angell [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 24, 2003 4:50 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] ? in URLS. > > > Ok, i

Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Martin Hudec
. Martin On Thursday 23 January 2003 10:57 am, Jason Wong wrote: > On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote: > > Hi! > > > > A client wants to test market two versions of an advertising but wants to > > disable the users' ability to copy/save

[PHP] download script

2003-01-21 Thread Martin
i need a script that make downloads from files but it must support resuming for getright and download acelerator pro. Thanks... I have this classic download script , but does not support resuming error_reporting(0); header("Last-Modified: " . gmdate("D, d M Y H:i:s T", filemtime($file

[PHP] Re: Freshmeat question

2003-01-21 Thread Martin Thoma
ar-expressions, but php has this, too. > As for the script below, could I run it inside a (my) browser? This could be in any >browser? Well, it depends ;-) Generally: Yes. But you have to let a web-browser (like apache) process the php-script. Martin -- PHP General Mailing List

RE: [PHP] getting green screen

2003-01-20 Thread Martin Towell
Hi Martin Post some code snippets and the resultant output for us to look at Martin (To confuse things ) > -Original Message- > From: martin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 1:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] getting green sc

[PHP] getting green screen

2003-01-20 Thread martin
Hi, I'm somtimes getting a green screen after a PHP-app (green background and backslashes in front of "'"-signes. When reloading this outputpage, the normal lay-out without backslashes is visible. Why does this happen? Can I prevent it? Martin -- PHP General Mailing List

[PHP] Re: Freshmeat question

2003-01-20 Thread Martin Thoma
); print $line; If you are new in programming, I think PHP is easyier to learn than Perl. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: simple date question

2003-01-20 Thread Martin Thoma
Hi Adria, why not just using $month=date("m")? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting https-page

2003-01-20 Thread Martin Thoma
Hello! You can easily get an webpage with: $fp = fopen("http://www.mydomain.com/";, "r"); if ($fp) exit; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); print $line; But this doesn't work with https (SSL). How can I get an https-page? Martin --

[PHP] Which country?

2003-01-20 Thread Martin Thoma
Hello! Is there a way to get to know from which country a user is calling the webside with my php-script? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] searching for string inside document

2003-01-09 Thread Martin Hudec
Hello, i have document in html and i want to get out string between tags to put it into another variable.. i am wondering if i could use eregi() herebut how? I cant figure out any possible way... same with strchr() and strstr() can anyone help me please? -- Best regards, Martin

[PHP] output of calling grep lr

2003-01-09 Thread Martin Hudec
-- Best regards, Martin mail [EMAIL PROTECTED] mobile +421.907.303.393 icq34358414 wwwhttp://www.corwin.sk PGP key fingerprint 21365ca05ecfd8aeb1cf19c838fff033 &quo

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Martin Hudec
Hello Paul, well problem is this: you don't have defined variable $actionmaybe you are not posting it correctly from form...what is on first 12 lines? try to add $action="value"; on line 12...just define any suitable value... -- Best regards, Martin

Re[2]: [PHP] Img src CORRECTION

2003-01-08 Thread Martin Hudec
Hello Sean, oh i must correct myself ;)) . or try to use this: print ""; or just print ""; looks like u have error here: print ""; ^ ^^ ^ - use \ before " ^^- no need to use both \ and " remove those two characters or try this y

Re[2]: [PHP] Img src

2003-01-08 Thread Martin Hudec
Hello Sean, or try to use this: print ""; or just print ""; ^ ^^ ^ - use \ before " ^^- no need to use both \ and " remove those two characters or try this your php ?> " width=104 height=137> http://www.corwin.sk PGP key fingerprint

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
#x27;t work so I abandoned it. Perhaps I did something else stupid. I'll re-read the docs. Thanks for your help, and Happy New Year! Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:48, Martin S wrote: > >> This is the function which should return e.g. "printers" for >> $lookuptable. But doesn't. >> >> function setCurrentDevGroup($devID) >> { >>

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:02, Martin S wrote: >> Marek Kilimajer wrote: >> > You forgot global $adb; at the beginning of your function, or use >> > >> > $sth = $GLOBALS['adb']->prepare($query); >> >> Nope sorry,

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Marek Kilimajer wrote: > You forgot global $adb; at the beginning of your function, or use > > $sth = $GLOBALS['adb']->prepare($query); Nope sorry, I've just edited it from my post here. It is in the function. /Martin S. -- PHP General Mailing List (http://www.php.

[PHP] Function misfunction - 2

2002-12-30 Thread Martin S
NOW what am I doing wrong?? function setCurrentDevGroup($devID) { $query = "SELECT dev_group FROM tracking WHERE (computer = $devID)"; $sth = $adb->prepare($query); if($sth) { $res = $sth->execute();

Re: [PHP] function misfunction

2002-12-30 Thread Martin S
)"; break; case "printers": $query = "SELECT name FROM printers WHERE (ID = $this->ComputerID)"; break; } (And yes I suppose you could write that as "SELECT name from $lookuptable WHERE "; What am I missing now? /Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function misfunction

2002-12-30 Thread Martin S
ng "$tracking->" above. Obviously I'm doing something wrong here. What? Cheers, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] European "daylight saving" summer-time.

2002-12-29 Thread Martin Thoma
server to this. How can I avoid this without manually correct it every spring/autumn? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] *OK, more eval for today

2002-12-18 Thread Martin Towell
argh! eval() try this instead: $temp = ${"php_q3_$i"}; to get it directly from $HTTP_POST_VARS: $temp = $HTTP_POST_VARS["php_q3_$i"]; simple HTH Martin -Original Message- From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 6:08 AM

RE: [PHP] test

2002-12-17 Thread Martin Towell
delivered to: > > php-list,emc (The name was not found at the remote site. Check that the > name has been entered correctly.) > > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 10:02 PM > To: Php-Ge

RE: [PHP] test

2002-12-17 Thread Martin Towell
na! didn't work :) -Original Message- From: Roger Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:59 PM To: Php-General Subject: [PHP] test This is a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

RE: [PHP] Where am I?

2002-12-17 Thread Martin Towell
Doing a quick scan through the output of phpinfo() on my machine, I can see any one of the following will give me the path (incl. filename of the current script) $HTTP_SERVER_VARS["DOCUMENT_ROOT"] . $PHP_SELF $HTTP_SERVER_VARS["SCRIPT_FILENAME"] $HTTP_SERVER_VARS["PATH

RE: [PHP] Where am I?

2002-12-17 Thread Martin Towell
try doing a phpinfo() , somewhere in there it'll tell you Martin -Original Message- From: Jeff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Where am I? I'm using PHP 4.0.6. I am developing on Win98SE, and depl

RE: [PHP] php / unix functions

2002-12-17 Thread Martin Towell
Greg "Andy Turegano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, what do you want them to do? > > > On Wed, 18 Dec 2002, Martin Towell wrote: > > > the only other way I know is to use: $output = `$cmd`; (ie, bac

RE: [PHP] php / unix functions

2002-12-17 Thread Martin Towell
the only other way I know is to use: $output = `$cmd`; (ie, backticks) -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 1:27 PM To: [EMAIL PROTECTED] Subject: [PHP] php / unix functions Hi- Is there a built in way, besides using exec and system

RE: [PHP] Plz help to solve my problem.

2002-12-16 Thread Martin Towell
>From this error Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 It looks like you'll have to change php.ini to have session.save_path point to a valid path. Maybe \temp\ ? HT

RE: [PHP] undefined index....property.

2002-12-16 Thread Martin Towell
you didn't send the code snippet for "Undefined index" however, I think the reason you're getting these errors at home is because you have a different error_reporting level. HTH a bit Martin [snip] //filled out info and clicked send. Notice: Undefined index: l

RE: [PHP] select * From ????

2002-12-15 Thread Martin Towell
Looks good to me, but as Peter said, see if you really are getting something in ['img'] try print_r($row) or var_dump($row) to make sure -Original Message- From: Bruce Levick [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:01 AM To: Martin Towell Subject: RE: [P

RE: [PHP] select * From ????

2002-12-15 Thread Martin Towell
can you post some more of your code? I think, if it's not too big, the entire while loops Martin -Original Message- From: Bruce Levick [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:45 AM To: [EMAIL PROTECTED] Subject: [PHP] select * From Hi, Am just a newb

[PHP] code for my question about sessions ;) sorry

2002-12-05 Thread Martin Hudec
t;; echo "setTimeout('window.close()',1000)"; echo ""; ?> index.php: forum_fns.php: "; return true; } else { echo "\$valid_user not registered!!"; return false; } } ?> --

[PHP] sessions

2002-12-05 Thread Martin Hudec
n_register("valid_user").then it reloads parent window (index.php), which will then again check validity of user...but it does not work. does anyone know why? register globals are on. -- Best regards, Martin mai

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
> Martin, > Ah yes, the famous 'read the upgrade notes - gotcha'! > Well done, you figured it out... > =dn Thanx for your help, it pointed me in the right direction ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
ll I found a register_argc_argv = On in my php.ini, which should work then. But I also found, that I have to use print "Ok: ".$_SERVER["argv"][1]; instead of print "Ok: ".$argv[1]; Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Hi, > What do argv and argc tell you? > Is the php.ini file set up so that these variables are shown/valid? "Undefined variable: argv" - so I guess this is the problem ;-) What do I have to change in the php.ini? Martin -- PHP General Mailing List (http://www.php.net/) To un

[PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
n error or printing "Ok"!) I'm using PHP 4.2.3. on Windows2000). Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get/wait for user-input?

2002-12-02 Thread Martin Thoma
Hello! I'm using a PHP-script as a small console-app. Is the only way to give parameters to it the $QUERY_STRING, or can I wait for the user to input something (like scanf in C)? I couldn't find anything in the docs, so perhaps this is not possible?! Martin -- PHP General Mailing

RE: [PHP] Disable refresh?

2002-12-01 Thread Martin Towell
ting page. HTH Martin -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 12:33 PM To: PHP List Subject: RE: [PHP] Disable refresh? If not, is there a variable that provides information that a refresh occurred to load the page? Larry S. Brown Dim

AW: [PHP] can't pass complete URL (part of the query string) from one script to another --??

2002-11-26 Thread Martin Lucas
hi nicole, do you have an example what your query contains ? maybe urlencode($pageURL) or quoting will help greetings martin > -Ursprüngliche Nachricht- > Von: Nicole Lallande [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 26. November 2002 15:40 > An: [EMAIL PROTECTE

Re: [PHP] store images in mysql tables

2002-11-26 Thread Martin Johansson
Yes you can store images in a mysql table. But you will have to create a new binary database. You can read here how it works: http://www.phpbuilder.com/columns/florian19991014.php3 It is a easy to understand text. /Martin "Justin French" <[EMAIL PROTECTED]> skrev i meddelandet

[PHP] Re: Missing images

2002-11-26 Thread Martin Johansson
pictures. Maybe this is the problem you have? /Martin > Hi all > > I have kind of a very strange problem... But I hope someone can help. > Imageing a little web-based application for browsing images. Every page is > exactly the same (from a php point of view). A user can browse through

[PHP] Post your announcements in PHP Journal

2002-11-25 Thread Martin Streicher, Editor
mation) We are happy to receive product announcements, press releases, and blurbs from individuals and groups. Entries will be edited for grammar and space, and not every announcement can run do to space constraints in the printed version of the magazine. We look forward to hearing from you! Martin Streicher Editor, PHP Journal [EMAIL PROTECTED]

[PHP] Newbie: ereg

2002-11-25 Thread Martin Johansson
I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this This shall be visible or This shall be visible too thanks Martin -- PHP General Mailing List (http

RE: [PHP] inserting preexisting image inside dynamic image

2002-11-24 Thread Martin Towell
try these: ImageCopy*() -Original Message- From: Eric Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting preexisting image inside dynamic image Hi there... Just wondering... when creating a dynamic image, is there a w

[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] character ' in switch

2002-11-21 Thread Martin Hudec
<-- i want this... code break; default: break; } but PHP can't use 'i am thinking about making urlencode() to put that character to %XX value any advices? -- Best regards, Martin mailto:[EMAIL PROTECTED] -- PH

[PHP] Problem with browscap.ini

2002-11-20 Thread Martin Magnusson
I've recently installed php 4.2.3 on Apache 2.0.43. (windows2000) I downloaded a browscap.ini file from GaryKeith.com and copied it to c:\WINNT\system32\browscap.ini In php.ini the value for browscap is set to c:\WINNT\system32\browscap.ini This doesn't work... For example: the variable $HTTP_USER

[PHP] Undefined variables?

2002-11-18 Thread Martin Magnusson
... Hope you understand my problem... Martin Magnusson

[PHP] php mail confirmation

2002-11-14 Thread Martin Hudec
Hello all, I would like to ask how can I make registration confirmation by email...user will receive mail confirming his registration immediately after he registers in application.is it possible to make mail() function filled with data from registration (email)? -- Best regards, Martin

RE: [PHP] can a popup window get the page referer?

2002-11-13 Thread Martin Towell
> (B>Message-ID: <[EMAIL PROTECTED]> (B>References: <[EMAIL PROTECTED]> (B> (B>"Joseph Szobody" <[EMAIL PROTECTED]> wrote: (B>>Actually, it still won't work under Windows. (B>> Even on a pop-up window, you can right click, (B>> view properties, copy the page address, open (B>> a new browse

RE: [PHP] number format

2002-11-13 Thread Martin Towell
you've got it in the subject line http://www.php.net/manual/en/function.number-format.php -Original Message- From: Michael P. Carel [mailto:mikecarel@;teamglac.com] Sent: Thursday, November 14, 2002 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] number format Hi to all; Is there any php f

RE: [PHP] How To Delete All Files In A Directory

2002-11-12 Thread Martin Towell
you could break out into the shell and do rm $dir/*(rm -r $dir/* if there's directories too) (or del $dir/*.* for dos) or use opendir, readdir, closedir to read the directory's content and use unlink to delete the file(s) (if $dir is not hardcoded, I can see a security hole he

[PHP] Quick question

2002-11-07 Thread Martin Towell
what is the technical difference between using else if and elseif ?? Are they interpretted the same internally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    4   5   6   7   8   9   10   11   12   13   >