Re: [PHP-WIN] i need help

2004-05-18 Thread Peter 'iridium' Waller
Jordi Canals wrote: Student wrote: I want to trim the following text [i:abcdef] Hi, You can do: $data = '[i:something]'; $array_data = explode(':',$data); and you will have: '[i' in $array_data[0] 'something]' in $array_data[1] If i understod corretly, you want to get only something, so you need $

Re: [PHP-WIN] i need help

2004-05-18 Thread Cory D. Wiles
= "[i:aslkdfj]"; $insidedata = substr($somedata,3,strlen($somedata)-4); -TG -Original Message- From: Student [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 11:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-WIN] i need help Hi i was hoping if someone can h

RE: [PHP-WIN] i need help

2004-05-18 Thread Gryffyn, Trevor
TED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] i need help > > > Hi i was hoping if someone can help; > > I want to trim the following text > > [i:abcdef] > > but the inside text is different at time eg abcdef, bcdefg, etc etc > how can i trim [i:(some text here)] so tha

Re: [PHP-WIN] i need help

2004-05-18 Thread Jordi Canals
Student wrote: I want to trim the following text [i:abcdef] but the inside text is different at time eg abcdef, bcdefg, etc etc how can i trim [i:(some text here)] so that i can replace them with nothing. eg these are to be trimmed. [i:abcdef] [i:bcdefg] [i:xyzab] [i:priftds] how can i trim them..

[PHP-WIN] i need help

2004-05-17 Thread Student
Hi i was hoping if someone can help; I want to trim the following text [i:abcdef] but the inside text is different at time eg abcdef, bcdefg, etc etc how can i trim [i:(some text here)] so that i can replace them with nothing. eg these are to be trimmed. [i:abcdef] [i:bcdefg] [i:xyzab] [i:prif

Re: [PHP-WIN] i need help

2003-11-27 Thread Hasan Barýþ Karayel
thanks... it works... From: Donatas <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] i need help Date: Thu, 27 Nov 2003 18:28:26 +0200 It doesn't work coz you need to do it this way: echo("Your username = ". *$_GET ['username']*.""); e

RE: [PHP-WIN] i need help

2003-11-27 Thread Disko_kex
Try use $HTTP_GET_VARS["password"] or $_GET["password"] > -Original Message- > From: Hasan Barýþ Karayel [mailto:[EMAIL PROTECTED] > Sent: den 27 november 2003 17:26 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] i need help > > Hi > i am new

RE: [PHP-WIN] i need help

2003-11-27 Thread Mike Brum
ailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:26 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] i need help Hi i am new in PHP... i made very a simple code but it did not work properly... this is my code: ::WaterBike Team Istanbul - ITU:: Show my password Your usern

[PHP-WIN] i need help

2003-11-27 Thread Hasan Barýþ Karayel
Hi, i am new in PHP... i made very a simple code but it did not work properly... this is my code: ::WaterBike Team Istanbul - ITU:: Show my password echo("Your username = ". $username.""); echo("Your password = ". $password.""); ?> when i click the link, i expect this output: Show my passw

Re: [PHP-WIN] i need help

2003-11-27 Thread Donatas
Disregard those stars... I guess this is a bug in my mail app or php-win mailing list, it should have been bold instead. Donatas wrote: It doesn't work coz you need to do it this way: echo("Your username = ". *$_GET ['username']*.""); echo("Your password = ". *$_GET ['password']*.""); you use $_

[PHP-WIN] i need help

2003-11-27 Thread Hasan Barýþ Karayel
Hi, i am new in PHP... i made very a simple code but it did not work properly... this is my code: ::WaterBike Team Istanbul - ITU:: Show my password echo("Your username = ". $username.""); echo("Your password = ". $password.""); ?> when i click the link, i expect this output: Show my passw

Re: [PHP-WIN] i need help

2003-11-27 Thread Donatas
It doesn't work coz you need to do it this way: echo("Your username = ". *$_GET ['username']*.""); echo("Your password = ". *$_GET ['password']*.""); you use $_GET ['']; superglobal array for values passed via link or form where type is get or $_POST ['']; if you get info from a form via post met

[PHP-WIN] i need help

2003-11-27 Thread Hasan Barýþ Karayel
Hi i am new in PHP... i made very a simple code but it did not work properly... this is my code: ::WaterBike Team Istanbul - ITU:: Show my password echo("Your username = ". $username.""); echo("Your password = ". $password.""); ?> when i click the link, i expect this output: Show my passwo

[PHP-WIN] I need help with fopen()

2003-09-17 Thread Rob Hermann
$profilename="f:/inetpub/wwwroot/PHP_HeadHunterWebSite/HeadHunter/".$FIRSTNA ME."_".$LASTNAME."_MemberProfile.html"; OR $profilename="f:\inetpub\wwwroot\PHP_HeadHunterWebSite/HeadHunter\".$FIRSTNA ME."_".$LASTNAME."_MemberProfile.html"; @unlink($profilename); $htmlfile=fopen($profilename,"

Re: [PHP-WIN] i need help with an undefined variable

2002-10-02 Thread Anyang
thanks for the help. got it to work "Brother - Martin Bagge" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Anyang: > > > it's giving me this now: > > Notice: Undefined index: game in C:\Xitami\webpages\index.php on line > > 5 Notice: Undefined index: game in

Re: [PHP-WIN] i need help with an undefined variable

2002-10-02 Thread Luis Ferro
>> >>>>if (!$_GET["game"]) { >>>>include("public.html"); >>>>} >>>>if ($_GET["game"] != NULL && $op != NULL) { >>>>include("http://mywebsite.com/example/"; . "$game" . ".

RE: [PHP-WIN] i need help with an undefined variable

2002-10-02 Thread brother - Martin Bagge
Anyang: > it's giving me this now: > Notice: Undefined index: game in C:\Xitami\webpages\index.php on line > 5 Notice: Undefined index: game in C:\Xitami\webpages\index.php on > line 8 > > because i'm opening index.php without using ?game= > is there anything I can do to not get it to say that?

Re: [PHP-WIN] i need help with an undefined variable

2002-10-02 Thread Anyang
) { > > > > include("http://mywebsite.com/example/"; . "$game" . ".html"); > > > > } > > or post instead of get in there? > > > -Original Message- > > From: Anyang [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 2 Oct

Re: [PHP-WIN] i need help with an undefined variable

2002-10-02 Thread Anyang
gt; > include("public.html"); > > > > } > > > > if ($_GET["game"] != NULL && $op != NULL) { > > > > include("http://mywebsite.com/example/"; . "$game" . ".html"); > > > > } >

RE: [PHP-WIN] i need help with an undefined variable

2002-10-01 Thread Peter Houchin
if ($_GET["game"] != NULL && $op != NULL) { > > > include("http://mywebsite.com/example/"; . "$game" . ".html"); > > > } or post instead of get in there? > -Original Message- > From: Anyang [mailto:[EMAIL PROTECTED]] &g

RE: [PHP-WIN] i need help with an undefined variable

2002-10-01 Thread Peter Houchin
how r u getting $game? that's the undefind var. > -Original Message- > From: Anyang [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 2 October 2002 11:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] i need help with an undefined variable > > > I wrote a

Re: [PHP-WIN] i need help with an undefined variable

2002-10-01 Thread Anyang
PROTECTED]">news:[EMAIL PROTECTED]... > how r u getting $game? that's the undefind var. > > > -Original Message- > > From: Anyang [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 2 October 2002 11:38 AM > > To: [EMAIL PROTECTED] > > Subject: [PH

[PHP-WIN] i need help with an undefined variable

2002-10-01 Thread Anyang
I wrote a php script for a page that I hosted on a separate host and it worked perfectly. I recently installed php 4 onto my windows XP Pro build 2600 computer and it seems to work until I try to use varuables that look to the address bar for reference. I wanted to make it so that when somebody

Re: [PHP-WIN] I need help!!!

2001-05-21 Thread Mike Flynn
Read one line from the text file at a time. Then use explode to separate it by semicolons. Haven't ever done it from a text file myself, but something SIMILAR to this should work: \n"; print "$str1\n"; print "$int1\n"; print "$str2\n"; print " \n"; } ?> At 03:45 PM

Re: [PHP-WIN] I need help!!!

2001-05-21 Thread Michel Laine
Alain Menard wrote: > I clicked on the send button to fast... > > The part that i'm having problem with is the second part. Especially the one > about the first string becomming a link to the corresponding URL. > > ""Alain Menard"" <[EMAIL PROTECTED]> wrote in message > 9dv3k5$873$[EMAIL PROTECTE

Re: [PHP-WIN] I need help!!!

2001-05-17 Thread Michael Kelley
They way I handled something like this was, I read the line in with fread breaking it up into "$chunks" $chunk1 = fread( $fp, 12); //Your string#1 $chunk2 = fread( $fp, 11); //The URL $chunk3 = fread( $fp, 5); //the INT $chunk4 = fread( $fp, 50); //The final Stri

Re: [PHP-WIN] I need help!!!

2001-05-16 Thread Alain Menard
I clicked on the send button to fast... The part that i'm having problem with is the second part. Especially the one about the first string becomming a link to the corresponding URL. ""Alain Menard"" <[EMAIL PROTECTED]> wrote in message 9dv3k5$873$[EMAIL PROTECTED]">news:9dv3k5$873$[EMAIL PROTE

[PHP-WIN] I need help!!!

2001-05-16 Thread Alain Menard
Hi!! I'm presently working on my personal web site and i would like to use PHP to do the following : 1- Read a string in the following format from a text file : string;url;integer;string string;url;integer;string string;url;integer;string ... string;url;intege