Re: [PHP] Apache 2 + PHP

2003-12-05 Thread Martin Hudec
Just thought I would check. -- : :. kind regards :.. Martin Hudec :.: :.: =w= http://www.aeternal.net :.: =m= +421.907.303393 :.: [EMAIL PROTECTED] [EMAIL PROTECTED] :.: :.: "When you want something, all the universe :.: conspires in helping you to achieve it." :.:

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
y > that you're using a version of PHP that is recent enough to have $_POST. > So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only > is it shorter, I believe the older name is deprecated. -- : :. kind regards :.. Martin Hudec

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
> echo "Values submitted via POST method:"; > reset ($HTTP_POST_VARS); > while (list ($key, $val) = each ($HTTP_POST_VARS)) { > echo "$key => $val"; > } > > ?> > > but if I call the variable directly > > it prints nothing, should I go

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Martin Hudec
ctory. > > > > > > > > Brona > > > > > I am getting this error once i run the script > > > > > > Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: > > > Permission denied in /blah/blah > > > Do i need to set t

Re: [PHP] cannot execute?

2003-09-25 Thread Martin Hudec
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyway I can't understand why php does not return any message in this: $mess = "blablabla"; if (exec("mogrify blbalba")) { $hlaska .= "xixixixix"; } echo $hlaska; - -- kind regards - -- Martin Hudec -

Re: [PHP] cannot execute?

2003-09-25 Thread Martin Hudec
t; > Also, the webserver user have write (not only read) the file ? > - -- kind regards - -- Martin Hudec - -- :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.

[PHP] cannot execute?

2003-09-25 Thread Martin Hudec
- -- Martin Hudec - -- :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/cu2b1VPr1EE7sj4RAjiRAKCKgQDRmp6b7SjW3VnT5lMlBr2YFQCgkL2h FypoB1eyT/Xux1vs9u415ro

Re: [PHP] about writing permissions

2003-07-08 Thread Martin Hudec
its configuration file to group). like rw-rw-r-- user group test.php I hope I have explained it a bit to you. -- Martin Hudec :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 "In google non est, ergo non est." -

Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Martin Hudec
H it might be done by checking which mouse button is pressed using javascript :) but i think this works only in Iexplore ;)...i used such code on my webpageit shows only copyright etcanyway user does not need to rightclik and save if he knows where is his browser cache located.

[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
Hello all, i am executing grep command from php to get listing of files containing searched phrase i am getting output like this: a/x.txt a/y.txt b/z.txt I am unable to find any way to replace spaces for \n character using ereg_replace(), I tried to replace / instead and it replaced it in la

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 mail [EMAIL P

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

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

2002-12-05 Thread Martin Hudec
Hello , okay here's the code...sorry forgot to post it everything works in login.phpsession is registered...but in index, it seems that session is empty... login.php: "; //reloads index.php (login.php is popup from index.php echo "window.opener.location.reload();"; echo "setTimeout('windo

[PHP] sessions

2002-12-05 Thread Martin Hudec
Hello, I have following problem: i have one script (index.php) which displays information (menu items) based on result from function check_valid_user(). This function checks if there is session_is_registered("valid_user"). second script is for login.it saves into session session_register("va

[PHP] character ' in switch

2002-11-21 Thread Martin Hudec
Hello all, I would like to know how can I put ' character to case in switch... Situation: from flash i am getting url: index.php?action=what's new i need to pass this thing to switch like: switch ($action) { case about: code break; case what's new: <-- i want this.

[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

[PHP] php and electronic pay system

2002-11-06 Thread Martin Hudec
Hello, does anyone have experience with implementation of electronic pay system for website based on PHP? Can you give me directions about this? -- Best regards, Martin Hudec mailto:corwin@;corwin.sk -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Martin Hudec
Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == "") and ($telefon == "0")why dont u make something like this? if (empty($sted) || empty($telefon)) { include header if (empty($sted)){ echo STED NOT FILLED... } if (empty($telefon)

Re[2]: [PHP] for??????

2002-10-28 Thread Martin Hudec
r rows. JWH> John >> -Original Message- >> From: Martin Hudec [mailto:corwin@;corwin.sk] >> Sent: Monday, October 28, 2002 12:38 PM >> To: Bsantos PHP >> Cc: [EMAIL PROTECTED] >> Subject: Re: [PHP] for?? >> >> Hello Bsantos, >> >&g

Re: [PHP] for??????

2002-10-28 Thread Martin Hudec
Hello Bsantos, BP> Now, I've created a funtion which controls how many fields (cols) may be BP> seen by user. Some like this: BP> function select_query ($fields, $table) { BP> $result = ("SELECT $fileds FROM $table"); BP> } maybe mistype in SELECT fileds should be fieldsalso try using select

Re: [PHP] Failing to Make MySQL Query on Submit

2002-10-28 Thread Martin Hudec
Hello user, ill take a look only into this udi> // UPDATE THE DATABASE udi> $sql = "UPDATE fantasytoo SET o1 = \"$o1\",w1 = \"$w1\",c1 = udi> \"$c1\",o2 = \"$o2\",w2 = \"$w2\",c2 = \"$c2\",en = \"$en\",wc = udi> \"$wc\",ot = \"$ot\" WHERE realname = \"$realname\" "; udi> } well here u

Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
@;corwin.sk Monday, October 28, 2002, 4:18:45 PM, you wrote: E> Hello, E> "Martin Hudec" <[EMAIL PROTECTED]> wrote: >> or (from my point of view is this better) >> >> if {$country!="finland") : >>display_shipping(calculate_nonfinland_cost($c

Re: [PHP] IP addresses

2002-10-28 Thread Martin Hudec
Hello Bret, use $REMOTE_ADDR like this: -- Best regards, Martinmailto:corwin@;corwin.sk Monday, October 28, 2002, 3:46:04 PM, you wrote: BLC> Hi all, BLC> I've been away for a while but I'm back and have a question about IP addresses. BLC> How do I retrieve / capt

Re[2]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello Steve, oh my fault...i apologize...this should worki shouldn't use break ;) if {$country!="finland"){ display_shipping(calculate_nonfinland_cost($country)); } elsif ($country=="finland" && $express=="no") { display_shipping(calculate_shipping_cost($weight)); } elseif ($country=="f

Re: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello Steve, I hope I understand your questions...so first we will check value of country (if it is other than finland)...then if the first if requirement is not met we will continue to second part (checking express)...and so on if {$country!="finland"){ display_shipping(calculate_nonfinla