RE: [PHP] Please Help

2003-07-31 Thread Joseph Blythe
Sathiyabama, Is always a good idea to read the manual, search google and the list archives before posting to this list, the below links should help you get started. http://www.php.net/manual/en/function.mail.php and: http://www.php.net/manual/en/function.rmdir.php Regards, Joseph > -Ori

Re: [PHP] eval

2003-07-31 Thread Joona Kulmala
Decapode Azur wrote: Is it possible to put PHP code in eval ? Or just vars ? $string = 'The result of '; eval ($string); ?> It should go like: [code] eval('$var = "The result of"; $a=2; $b=3; $c = $a + $b; $var .= "$a + $b is $c";'); [/code] Just a question, what are you really trying to d

Re: [PHP] eval

2003-07-31 Thread Adrian
PHP-Code: eval('?>'.$string) Vars: eval('$string="'.str_replace('"','\\"',$string).'";'); > Is it possible to put PHP code in eval ? > Or just vars ? > $string = 'The result of >'; > eval ($string); ?>> -- Adrian mailto:[EMAIL PROTECTED]

Re: [PHP] Please Help

2003-07-31 Thread Joona Kulmala
My requirement is 1.I want to send video file using mail() function in PHP.So how to send it.What is the procedure? http://fi2.php.net/manual/en/ref.mail.php Check out the templates, there is described how to build mail headers with attachments. PHPs own mail function doesn't support this by defa

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread John Manko
i did a quick google, and found the following. hope it helps http://phpcomplete.com/articles.php?sec=readArticle&id=306 http://www.php-accelerator.co.uk plus, there is something called PHP bcompiler (byte compiler). I dont know the details of any of these, but should help. maybe others can exp

[PHP] eval

2003-07-31 Thread Decapode Azur
Is it possible to put PHP code in eval ? Or just vars ? '; eval ($string); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread Decapode Azur
> I would expect compiled C/C++ to be faster as there is no need for > the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please Help

2003-07-31 Thread John Manko
umm... ok. www.google.com www.php.net that should get you started. Sathiyabama wrote: Dear PHP Team, I request your help to sort some issues in using PHP. 1.Chennai IIT has developed one recorder.We can record our voice and video.Its user defined extenion is MV4. My requirement is 1.I wan

[PHP] Please Help

2003-07-31 Thread Sathiyabama
Dear PHP Team, I request your help to sort some issues in using PHP. 1.Chennai IIT has developed one recorder.We can record our voice and video.Its user defined extenion is MV4. My requirement is 1.I want to send video file using mail() function in PHP.So how to send it.What is the procedure?

Re: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Joel Rees
I hate to rain on this parade, but, > I'm a pretty good PHP programmer, and things > I could knock out in a couple of hours seem to be WAY more difficult to > do in .Net. This is the pith of the question. If you knew what you're doing, anything from Microsoft takes longer to do than doing it t

Re: [PHP] Mysql query and PHP loops

2003-07-31 Thread Nicholas Robinson
I think this does what you want. You can probably extend it to do the final check for val3 vs. val2 select distinct t1.val1, max( t1.id ), t1.val2 from table as t1, table as t2 where t1.val2 <= t2.val2 group by t1.val1; HTH On Thursday 31 Jul 2003 3:22 pm, Petre Agenbag wrote: > Hi List >

Re: [PHP] Is there an easier way?

2003-07-31 Thread Joona Kulmala
Ryan A wrote: The problem is I have 38 fields and i can get upto 5 records that means i will end up with over 150 of these statements: $blahn=$data['blah'][n]; and since i dont want to go all over my script saying "echo $data['blah'][n];" is there an easier way to avoid the 150 possible stateme

Re: [PHP] Upload scripts timing out

2003-07-31 Thread Evan Nemerson
php.net/set-time-limit On Thursday 31 July 2003 09:03 pm, Josh Abernathy wrote: > My current upload script times out too quickly when users are uploading > large files. How can I stop this from happening? > > Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Re: value submit button

2003-07-31 Thread Justin French
Do some testing in a few browsers to see what happens when the user hits "enter" or "return", rather than clicking on the button(s)... I *think* you need to put in a hidden element. For example, if you wanted "submit2" to be the default value: Justin On Friday,

Re: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread John Manko
"You have to be deviant if you're going to do anything new." - David Lee Nka wrote: On Thu, 31 Jul 2003 12:35:55 -0500, you wrote: I know this is a little off topic but I really need some help with this. The company I work for just got bought out by a larger company. The larger com

[PHP] Re: value submit button

2003-07-31 Thread hu zhenghui
You can get the button value use code below: -- Hu Zhenghui IBM Certified Solutions Expert IBM WebSphere Studio ISBN 7-5606-1163-X ISBN 7-900107-51-7 mailto:[EMAIL PROTECTED] http://huzhenghui.51.net

Re: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Nka
On Thu, 31 Jul 2003 12:35:55 -0500, you wrote: >I know this is a little off topic but I really need some help with this. > >The company I work for just got bought out by a larger company. The larger company >uses .NET from Micro$oft. I of course use all open source stuff for our web sites and

Re: [PHP] tags to lowercase

2003-07-31 Thread Justin French
Curt, Thanks for the link -- have downloaded the code, and will do some playing/testing later today -- sounds great! Everyone else, That tidy extension seems great, when I move into PHP 5 (a while off I'd guess), and yes, it appears I can install tidy into my own web space (even host said so,

[PHP] Upload scripts timing out

2003-07-31 Thread Josh Abernathy
My current upload script times out too quickly when users are uploading large files. How can I stop this from happening? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tags to lowercase

2003-07-31 Thread Justin French
Not really that useful -- essentially I want this as part of a CMS On Thursday, July 31, 2003, at 11:55 AM, Jason Sheets wrote: Tidy is available for DOS as well, you could run it on your windows machine locally then upload the source to your host. Jason -- PHP General Mailing List (http://w

RE: [PHP] session header issue

2003-07-31 Thread Ow Mun Heng
I changed it so that it's not an ABS URL. I had it working so.. I thought, if it aint' broken, don't fix it... Well, I fixed it anyway, who knows it might cause problems somewhere.. Thank All. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message

Re: [PHP] headline news retriever

2003-07-31 Thread David Otton
On Thu, 31 Jul 2003 20:26:25 -0400, you wrote: >Does anyone know any headline news retrieving script/library specially >something able to check with several news sites? I'm planing to roll my own >but I want to see different approaches. RSS. The BBC (for example) have RSS feeds, and most journ

Re: [PHP] Using $PHP_SELF

2003-07-31 Thread David Otton
On Thu, 31 Jul 2003 15:38:41 -0500, you wrote: >I am having problems while transfering information to another page. I >am using $PHP_SELF and I am getting errors here is a bit of code so you >can see what I am saying: > >echo "$file\n"; > >This is what the browser is saying... >Notice: Undefine

Re: [PHP] What is $$

2003-07-31 Thread Jason Wong
On Friday 01 August 2003 10:59, Ryan A wrote: > I have just found this in my book: $$var = $value > what is the double dollar for? or is that a typo? > Thanks, Search manual for variable variables (and no, that is not a typo). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

Re: [PHP] What is $$

2003-07-31 Thread Paul Marinas
http://www.php.net/manual/en/language.variables.variable.php On Fri, 1 Aug 2003, Ryan A wrote: > Hi, > I have just found this in my book: $$var = $value > what is the double dollar for? or is that a typo? > Thanks, > -Ryan > > > We will slaughter you all! - The Iraqi (Dis)information ministers s

[PHP] What is $$

2003-07-31 Thread Ryan A
Hi, I have just found this in my book: $$var = $value what is the double dollar for? or is that a typo? Thanks, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Wendell Brown
On Thu, 31 Jul 2003 14:04:02 -0400, Dan Joseph wrote: >Yeah, the framework does. The free editor is for web apps, the Visual >Studio is for normal apps. FYI, I just had Visual Studio ordered for me - a single license for it with a 1 year subscription to MSDN was over $2800! I don't know yet wha

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread Joel Rees
> Greetinx, Greetinx to you to. > I'm a newbie and wondering which PHP script or CGI in C/C++ generally can > run/respond faster via http from the same server doing the same tasks. CGI is inherently slow. The way I understand it, php as CGI will probably be pretty much the same speed as C/C++ as

Re: [PHP] jabber - chmod on files

2003-07-31 Thread Jason Wong
On Friday 01 August 2003 05:51, Carlos Castillo wrote: [snip] > How can I change the perm from the php page, so I change with chmod 644 > .xml before I open it You can't unless you're running your php as root. > or how can I modify jabber so it doesn't > change the perm of the files? A

Re: [PHP] Yet another socket question...

2003-07-31 Thread Jason Wong
On Friday 01 August 2003 05:43, René Fournier wrote: [snip] > I know, but I'm not talking about writing to the socket, just echoing > to the local Server command line. I would expect the echo'd text to > appear in the server terminal window as the script runs--but it only > appears when the serve

[PHP] Re: Page Break

2003-07-31 Thread hu zhenghui
in ie the code below will work: -- Hu Zhenghui IBM Certified Solutions Expert IBM WebSphere Studio ISBN 7-5606-1163-X ISBN 7-900107-51-7 mailto:[EMAIL PROTECTED] http://huzhenghui.51.net --

Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
function page_content($content,$limit = 10,$page) { $limit=20; $afile = explode("\r\n", $content); $maxline = count($afile); // count existing lines $max = $maxline - 1; $page ? $page = $page : $page = 1; $s=$page+$limit; for ($i=$p

Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
ok this seemed to work using the text paging example replace the file line with this $afile = explode("\r\n", $string); > hi guys regarding my question yesterday here is exactly what i want to > do > > http://www.evilwalrus.com/articles.php?aid=42 > > this is obvioiusly splitting the content up whe

Re: [PHP] Is there an easier way?

2003-07-31 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 1 Aug 2003 at 02:04, lines prefixed by '>' were originally written by you. > Hi, > This is what i am doing, querying a database via a select statement > (getting > max 5 records), then dumping everything into an associative array. And > th

RE: [PHP] Is there an easier way?

2003-07-31 Thread Jennifer Goodie
> if(!($rs = mysql_query($q))) // querying > { echo "Query failed". mysql_error(); exit; } > > >$n = 0; > while ($line = mysql_fetch_assoc($rs)) { //dumping into an array > foreach ($line as $field => $value) { > $data[$field][$n] = $value; > } > $n++; > } > > and thi

[PHP] splitting content from database into pages again

2003-07-31 Thread daniel
hi guys regarding my question yesterday here is exactly what i want to do http://www.evilwalrus.com/articles.php?aid=42 this is obvioiusly splitting the content up when pull from the database here is an example but is uses text files http://www.evilwalrus.com/viewcode.php?codeEx=522 is there a

[PHP] Is there an easier way?

2003-07-31 Thread Ryan A
Hi, This is what i am doing, querying a database via a select statement (getting max 5 records), then dumping everything into an associative array. And then assign the arrays value to a variable for easier readibility and usability like so: if(!($rs = mysql_query($q))) // querying { echo "Query

RE: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Daevid Vincent
Add an entry to /etc/sudoers like so: nobody ALL=NOPASSWD: /bin/date Daevid Vincent http://daevid.com > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 3:02 AM > To: tirumal b > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] S

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Steve Buehler <[EMAIL PROTECTED]> wrote: > > Something else I found out now. I think it was Cpt John W. Holmes > > (not sure though) that said I couldn't have a cookie as an array > > like this the following. So i am not sure if it is somethin

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 4:06:12 PM, you wrote: JH> I found this on my server... I have no idea what it is... can someone JH> tell me what it does... if you use apache you can do this to protect against uploaded php scripts php_flag engine off -- regards, Tom -- PHP General

RE: [PHP] is there a way?

2003-07-31 Thread Jennifer Goodie
> Is there a way to have your html table represent one color, > Cause when I click the link it turnes purple, and I want it to stay > 336699 > no matter what state. > > I tried to use css, but it does the whole page. > And I want the 336699 to be in this table alone. > > Can anyone help me out with

Re: [PHP] Re: include help please

2003-07-31 Thread Curt Zirzow
* Thus wrote LoonySalmon ([EMAIL PROTECTED]): > > i want to call up my contact page, but how do i do it? > > http://localhost/index.php?page=$contact I hope you cant use something like: http://localhost/index.php?page=%2Fetc%2Fpasswd Curt -- "I used to think I was indecisive, but now I'm no

[PHP] is there a way?

2003-07-31 Thread karl james
Hello guys, This may be off subject but not sure! Is there a way to have your html table represent one color, Cause when I click the link it turnes purple, and I want it to stay 336699 no matter what state. I tried to use css, but it does the whole page. And I want the 336699 to be in this table

[PHP] headline news retriever

2003-07-31 Thread andu
Does anyone know any headline news retrieving script/library specially something able to check with several news sites? I'm planing to roll my own but I want to see different approaches. Andu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > Something else I found out now. I think it was Cpt John W. Holmes > (not sure though) that said I couldn't have a cookie as an array > like this the following. So i am not sure if it is something that > is going away or not. > setcookie ("admin_access

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > Well, if I take off the "string domain" part, it will work just > fine. This is what I was trying to explain. The cookie wasn't being returned, because the browser didn't think the hostname matched. By leaving it out, the browser will use whatever it

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
Something else I found out now. I think it was Cpt John W. Holmes (not sure though) that said I couldn't have a cookie as an array like this the following. So i am not sure if it is something that is going away or not. setcookie ("admin_access[host]", "$cookhost",0,"/","$cookhost"); setcookie (

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
h. Just found out what was wrong. These are the specs that php.net says a setcookie function can have: setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) Well, if I take off the "string domain" part, it will work just fine. The proble

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > $cookhost=$_SERVER["HTTP_HOST"]; > header("Set-Cookie: aa_host=$cookhost;"); > setcookie ("aa_host", "$cookhost",0,"/","$cookhost"); > setcookie ("aa_host", "localhost",0,"/","localhost"); > setcookie ('aa_host', 'localhost',0,'/','localhost'); ... > I

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Jeff Harris
On Jul 31, 2003, "Steve Buehler" claimed that: |I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP |4.2.3 on my laptop and my cookies still don't work like they |should. Hopefully someone can explain to me why. | | |I can set the cookie with the "header" line with no problem,

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Tom Rogers
Hi, Friday, August 1, 2003, 8:53:51 AM, you wrote: SB> I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP SB> 4.2.3 on my laptop and my cookies still don't work like they SB> should. Hopefully someone can explain to me why. SB> $cookhost=$_SERVER["HTTP_HOST"]; SB> header("

[PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP 4.2.3 on my laptop and my cookies still don't work like they should. Hopefully someone can explain to me why. $cookhost=$_SERVER["HTTP_HOST"]; header("Set-Cookie: aa_host=$cookhost;"); setcookie ("aa_host", "$cookhost",0,"/

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks jeff harris, that is exactly what my problem was, now it works good night all thank a million "Jeff Harris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 1, 2003, "LoonySalmon" claimed that: > > |and btw, this is my code now: > | > | |require 'files.inc.php'; > | >

Re: [PHP] Re: include help please

2003-07-31 Thread Jeff Harris
On Aug 1, 2003, "LoonySalmon" claimed that: |and btw, this is my code now: | | -- Is $main being set inside a function? http://www.php.net/language.variables.scope Also, for future compatability, you should probably change the 3rd line to "if (isset($_GET['page'])) {" That will also help incase

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
and btw, this is my code now: "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > well crap, it turns out that i'm back to step 1, but with more code > it won't load up the other files now when defined through the url. i guess > that there is something wrong, but w

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
well crap, it turns out that i'm back to step 1, but with more code it won't load up the other files now when defined through the url. i guess that there is something wrong, but what could it be? "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > if (isset($page)) { > i

[PHP] jabber - chmod on files

2003-07-31 Thread Carlos Castillo
HI,   I'm using jabber but I have one problem, I did an administrator webpage for it, so I create the users for jabber in that page, when I create the user, it creates a xml file with permission of 644 and the owner is apache, but when I connect on the jabber or that user connects the xm

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
Jennifer Goodie wrote: I don't think I'd let someone pass any page they wanted via a get and just include that page. If you have URL fopen wrappers on I can create a page on my server and include it to your page and pretty much execute any code I want on your server. example: http://www.yourdomai

Re: [PHP] Yet another socket question...

2003-07-31 Thread René Fournier
On Thursday, July 31, 2003, at 02:45 PM, Chris Shiflett wrote: --- René_Fournier <[EMAIL PROTECTED]> wrote: Is it normal for a socket server to output all the echo'd messages only after the socket terminates? Can you explain what situation you're trying to describe? For example, echo does not wr

RE: [PHP] Re: include help please

2003-07-31 Thread Jennifer Goodie
> if (isset($page)) { > include $$_GET['page']; > } else { > $page = $home; > include $page; > } > > would that be right? > or should i use > > if (isset($page)) { > include $$_GET['page']; > } else { > include $home; > } > > hopefully that's right. if so, pretty good for a n00b > I don't think I

[PHP] (done) session not carrying...why?

2003-07-31 Thread Ryan A
Hey, I got it, the problem was that where i was setting the session i didnt have a session_start(). Thanks anyway. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
for some odd reason, $home wasn't working, so i changed home to main and now it works thanks for all the good support guys/gals? L00NY54LM0N - 16 year old coder in the makin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: include help please

2003-07-31 Thread Matt Matijevich
is there anyway where i can check if page is defined in the url? not sure I know exactly what you mean but I think you could use something like this $foo = @include("index.php"); if ($foo) { //index.php was valid } else { //index.php was not valid } there also might be a better way to do th

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; } else { include $home; } hopefully that's right. if so, pretty good for a n00b -- PHP General Mailing List (http://www.php.n

[PHP] session not carrying...why?

2003-07-31 Thread Ryan A
Hi, I seem to be setting the session properly but its not showing on the next page...any idea why? I am sending data to save.session.php via checkboxes like so: .."; print_r($not_checked); //working print_r("".$_SESSION['hide']['noPlatform']); //this prints 1 echo "".$_SESSION['hide']['noPrice']; /

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
LoonySalmon wrote: if page is defined in url, include page defined else include home You are on the right track. Take a look at the manual. http://us4.php.net/manual/en/index.php http://us4.php.net/isset - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
ok i have that done, but now i can't just have index.php because i get an error is there anyway where i can check if page is defined in the url? if so, could somebody make me a simple script? this is my first time with php i'm guessing that it would be something like this, but summed up if pa

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
LoonySalmon wrote: that isn't really what i want i want to have a seperate file where i declare the variables. what i'm getting at here is this, well, take a look at this page: http://l33trus.servebeer.com/site/index.php i just want to include a page into the table where it says that it's included

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
that isn't really what i want i want to have a seperate file where i declare the variables. what i'm getting at here is this, well, take a look at this page: http://l33trus.servebeer.com/site/index.php i just want to include a page into the table where it says that it's included what i'm going fo

Re: [PHP] Re: include help please

2003-07-31 Thread Chris Shiflett
> http://localhost/index.php?page=contact.html > > And get rid of your hard-coded set for $contact, and use > $_GET['contact'] instead. My apologies. I meant $_GET['page']. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mai

Re: [PHP] Using $PHP_SELF

2003-07-31 Thread Matt Matijevich
try $_SERVER["PHP_SELF"] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Retain Info on Back?

2003-07-31 Thread Joona Kulmala
Hi I have a php form that I run a test to see if they have entered in all required fields before inserting into a MySQL db. The PHP script simply reports what is missing and exits the rest of the page. However, when you click the back button, all the information that was entered, is gone. Is the

[PHP] Using $PHP_SELF

2003-07-31 Thread Buntin, Seth - KATE
I am having problems while transfering information to another page. I am using $PHP_SELF and I am getting errors here is a bit of code so you can see what I am saying: echo "$file\n"; This is what the browser is saying... Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\test\download

Re: [PHP] Re: include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon <[EMAIL PROTECTED]> wrote: > INDEX.PHP > > require 'files.inc.php'; > $page = $home; > include $page; > ?> > > FILES.INC.PHP > > $home = 'home.html'; > $forum = 'forum/index.php'; > $contact = 'contact.html'; > ?> > > http://localhost/index.php?page=$contact http://localhost/in

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread Jeff Harris
On Jul 31, 2003, "David Nicholson" claimed that: |Hello, | |This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at |13:38, lines prefixed by '>' were originally written by you. |> Greetinx, |> I'm a newbie and wondering which PHP script or CGI in C/C++ |generally |> can |> run/respond

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
lol, yet again i need some more help as you guys can see from the scripts before, i am including a file into a page. now my only problem is trying to include a different file. what i have INDEX.PHP FILES.INC.PHP i want to call up my contact page, but how do i do it? http://localhost/in

Re: [PHP] Yet another socket question...

2003-07-31 Thread Chris Shiflett
--- René_Fournier <[EMAIL PROTECTED]> wrote: > Is it normal for a socket server to output all the echo'd > messages only after the socket terminates? Can you explain what situation you're trying to describe? For example, echo does not write to a socket, so there's more going on than you're telling

Re: [PHP] standardize @throws for phpdocumentor 2.0?

2003-07-31 Thread Ray Hunter
> @throws constant|classname [description] I like that and the ability to link. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include help please

2003-07-31 Thread Matt Matijevich
I think you want -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Yet another socket question...

2003-07-31 Thread René Fournier
Is it normal for a socket server to output all the echo'd messages only after the socket terminates? According to the source code, I would think that during its execution any echo "text"; commands would output to Terminal, but in practice (at least under Mac OSX), it's only after the Socket ter

Re: [PHP] PHP Hosting (somewhat OT)

2003-07-31 Thread Chris Shiflett
--- Matt Giddings <[EMAIL PROTECTED]> wrote: > I'm currently looking at http://www.phpwebhosting.com/ to move > a medium size site to. Has anyone had any experience with > them, could you pass any comments about their service on to me? I have some accounts with them, and they seem fine to me. A

[PHP] PHP Hosting (somewhat OT)

2003-07-31 Thread Matt Giddings
Hello, I'm currently looking at http://www.phpwebhosting.com/ to move a medium size site to. Has anyone had any experience with them, could you pass any comments about their service on to me? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Querying a form

2003-07-31 Thread Curt Zirzow
* Thus wrote Gerard Samuel ([EMAIL PROTECTED]): > David Nicholson wrote: > > >You can either use the cUrl functions: > > > >http://uk2.php.net/curl > > > >or if this is not an option to you, you can use the socket > >functions: > >http://uk2.php.net/manual/en/ref.network.php > >but you will have t

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks everybody now it works "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i am looking to use includes on my page, > this is the code that i want to use to call my files with: > > INDEX.PHP > > require 'files.inc.php'; > $page = '$home'; > include '$page'; > ?> > >

Re: [PHP] load the PHP script last on the page

2003-07-31 Thread Bogdan Stancescu
...or use flush() just before that piece of code, if that's the case (if you don't need its output to complete the page). The page will be sent, the browser will remain in the "page in progress" state until the whole script is done, but that shouldn't bother your users, since they have the whol

Re: [PHP] include help please

2003-07-31 Thread Matt Matijevich
INDEX.PHP the problem must be when i am trying to include the $page variable get rid of the ' around the variable. $page = "something.php"; include $page; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon <[EMAIL PROTECTED]> wrote: > $page = '$home'; ... > Warning: main($page) [function.main]: failed to create stream: > No such file or directory in C:\swamp\www\site\index.php on line > 109 You're trying to include a file named $home, and it doesn't exist. I think you mean this inste

RE: [PHP] include help please

2003-07-31 Thread Dan Joseph
Hi, Take the quotes off around the $page variable. -Dan Joseph > -Original Message- > From: LoonySalmon [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 4:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include help please > > > i am looking to use includes on my page,

[PHP] include help please

2003-07-31 Thread LoonySalmon
i am looking to use includes on my page, this is the code that i want to use to call my files with: INDEX.PHP FILES.INC.PHP I try to load up index.php and this is what i get Warning: main($page) [function.main]: failed to create stream: No such file or directory in C:\swamp\www\site\index.p

Re: [PHP] Escaping nasty quotes

2003-07-31 Thread Matthew Vos
On Thu, 2003-07-31 at 14:31, Roy W wrote: > I have this: > > $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS > TERMINATED BY ',' ENCLOSED BY '" . '"' . "' "; > $result = MYSQL_QUERY($query); > PRINT "$query2"; > > The query doesn't take ... but if I cut and paste the

Re: [PHP] Re: Opinions on Micro$oft .NET

2003-07-31 Thread Chris Shiflett
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > .NET is more built to be together while PHP, MySQL and Apache > is more like picked the three best avaible... It's like a comp > where .NET is a complete comp from some company and the > OpenSource is more like you order all the parts separately to > get th

[PHP] Compiling with LDAP support

2003-07-31 Thread Patrick Hutchinson
I was trying to follow the directions to compile PHP with LDAP support. It looks like the Netscape Directory Server 4.0 SDK is no longer available, and points to the Sun One Directory Server 5.1. I don't need to install an entire Directory server, I just need to point --with-ldap= somewhere.

[PHP] Re: Opinions on Micro$oft .NET

2003-07-31 Thread DvDmanDT
I'd say try to get some C programmer continuing on php_dotnet.dll and make it support class constructors or maybe it was arguments that is the current limit... I know PHP and mono is about to start work together, but sometimes you need the MS stuff... ASP.NET is most likely faster as it's compiled

[PHP] Re: Opinions on Micro$oft .NET

2003-07-31 Thread Bret Conard
My 2 Cents I started in PHP/MySQL learned a bunch, became proficient. And personally believed that it was the best thing since sliced bread. Did everything faster cleaner and with less system resources. (Also there was that independent testing that showed PHP/MySQL outperformed MS by alot, sea

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jennifer Goodie
> I have this: > > $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE > mytable FIELDS > TERMINATED BY ',' ENCLOSED BY '" . '"' . "' "; > $result = MYSQL_QUERY($query); > PRINT "$query2"; > > The query doesn't take ... but if I cut and paste the printed > response into > the mysql server

RE: [PHP] Form Retain Info on Back?

2003-07-31 Thread Jay Blanchard
[snip] Is there a simple way of retaining this information so the user doesn't has to retype all the information in? [/snip] The answer is in the archives young Grasshopper. Are you saving the data to a database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Form Retain Info on Back?

2003-07-31 Thread Doug Coning
Hi All, I have a php form that I run a test to see if they have entered in all required fields before inserting into a MySQL db. The PHP script simply reports what is missing and exits the rest of the page. However, when you click the back button, all the information that was entered, is gone.

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Unfortunately, they are indeed enclosed by double quotes [/snip] Can you show us a snippet of data.txt? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Roy W
Unfortunately, they are indeed enclosed by double quotes Roy -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:58 PM To: Roy W; [EMAIL PROTECTED] Subject: RE: [PHP] Escaping nasty quotes [snip] Sorry...Because of the double quote near the

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Sorry...Because of the double quote near the ENCLOSED BY .. It delivers a PARSE ERROR $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' "; [/snip] Are the fields enclosed by a quote? If not... $query = "LOAD DATA LOCAL INFILE '/h

  1   2   3   >