Re: [PHP] so nobody knows how do get rid of everything outside orcertain tags?

2002-08-15 Thread Justin French
Trust me ereg_* or preg_* IS what you want, aside from rolling your own HTML parser from scratch!! I've got some code at the office -- i'll try and remember to post it tomorrow, but otherwise email me direct to remind me. Justin French on 16/08/02 2:33 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED])

Re: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread Joseph W. Goff
preg_match('!]+>(.*)!Uis',$info,$regs); $everything_between_divs=$regs[1]; - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 11:44 AM Subject: RE: [PHP] so nobody knows how do get rid of everything o

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. HTH! Jay I’m

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] [snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. [/snip]

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread David Buerer
Try this, it should work great. $starttag='' $endtag='' $pos_starttag=strpos(strtoupper($origstring),$starttag); $pos_endtag=strrpos(strtoupper($origstring),$endtag)+strlen($endtag); if($pos_starttag===False OR $pos_endtag===False) return 0; $newstring = substr(origstring,$pos_starttag,$pos_endt

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Are you wanting to place the file into the variable so that you can echo it out later? That is an extra step that you do not need. Just place the include() function where you want it to appear. But what do if i want echo it out later -> That's exactly what i want do [/snip] You mean more

Re: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Sascha Braun
What happens to a javascript, which only is able to hold code snippets in one lined vars (if u understand what i mean); But my Content, comming from my Database (HTML) is longer than a javascript line. And I put it there for in an php variable? It will be the same, or? Schura (O;? - Origi

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something else echo $var; [/snip] Since the included file outputs headers you cannot do what it is you wish to do AFAIK. When I do includes, and having looked at other's code I can say that I am

[PHP] Re: Sending via stand alone SMTP on win98

2002-08-15 Thread FoxRings / Michael
I want to send mail under win98, and I know that this is the proper solution... ---snip Hope this work: --> edit your php.ini and type your SMTP server [mail function] ; For Win32 only. SMTP = yoursmtpserver.com Regards. Jhon R. Putra ---snip But my problem

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Matt Schroebel
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 1:19 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] include opens source, but it shouldn't > > > [snip] > Only on demand. > I'd like to define the variable without showing the file > > > $var=include(); > > d

[PHP] Full service SMTP on win98

2002-08-15 Thread Michael Hendsbee
I want to send mail under win98, and I know that this is the proper solution... ---snip Hope this work: --> edit your php.ini and type your SMTP server [mail function] ; For Win32 only. SMTP = yoursmtpserver.com Regards. Jhon R. Putra ---snip But my problem is how to g

[PHP] Sessions...

2002-08-15 Thread Kondwani Spike Mkandawire
Am I mistaken to assume that a Session is automatically destroyed if a Window Browser is closed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread victor
Thanks, I tried this code first, and I wrote my script like this: // Original last tag // preg_match('!]+>(.*)!Uis',$str,$regs); $everything_between_divs=$regs[1]; $good = implode(' ', $everything_between_divs) or die ('Error 5'); $clean = ereg_replace("", " ", $regs[1]); echo $clean; ?>

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread vic
Thanks, I tried this code first, and I wrote my script like this: // Original last tag // preg_match('!]+>(.*)!Uis',$str,$regs); $everything_between_divs=$regs[1]; $good = implode(' ', $everything_between_divs) or die ('Error 5'); $clean = ereg_replace("", " ", $regs[1]); echo $clean; ?>

[PHP] Problem with Testing if the user has an account in my database

2002-08-15 Thread Sebastian Marcu
Hi All, Please help me, I'm new to PHP and MySQL programming and am really stuck on the attached code. I have a Flash front-end and am trying to query my database for the 'registration' process to see if the user already has an account. It's a very simple registration string which compares the

[PHP] Tell me how I can...

2002-08-15 Thread Øystein Håland
How can I control the number of users? I want to create a DB driven website where users create their own user accounts. But with a limitation of the number of accounts, and when the maximum is reached, no one can create a new account. I even want to limit the lifetime of an account. It may be expl

[PHP] Why don't my PHP variables get posted?

2002-08-15 Thread DonPro
Hi, I have a small form with checkbox objects. Below is the code: Export Declaration (B13) Commercial Invoice In the past, I could access the two fields in "doc_complete.html" by using PHP as in: $b13 and $cinvoice However, when I added the code: to the top of "doc_complete.html", I c

RE: [PHP] Problem with Testing if the user has an account in my database

2002-08-15 Thread Matt Schroebel
> From: Sebastian Marcu [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 2:32 PM > Subject: [PHP] Problem with Testing if the user has an > account in my database > > > For some reason though it isn't working right and > keeps telling me that the 'Email' address is already > taken

[PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Mike
Hello all, I am very confused. This script that I have been working on for a while is giving me a hard time... $string = "Current song: 01. DJ Nightflight - The first flight (original \ mix) (D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-\ NRG... we can't define it!)"; if(sub

RE: [PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Matt Schroebel
> -Original Message- > From: Mike [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 2:46 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Can anyone help me out? I am really getting frustrated! > > > Hello all, > I am very confused. This script that I have been working on > for

RE: [PHP] Tell me how I can...

2002-08-15 Thread Jay Blanchard
[snip] How can I control the number of users? I want to create a DB driven website where users create their own user accounts. But with a limitation of the number of accounts, and when the maximum is reached, no one can create a new account. I even want to limit the lifetime of an account. It may

[PHP] Re: Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Bogdan Stancescu
Hi Mike! Mike wrote: > Hello all, > I am very confused. This script that I have been working on for a while > is giving me a hard time... > > $string = "Current song: 01. DJ Nightflight - The first flight (original > \ > mix) (D I G I T A L L Y - I M P O R T E D - European Trance, Techno, > Hi-\

Re: [PHP] Tell me how I can...

2002-08-15 Thread Gijs Herpers
It is better to check how much entries you have in your database with mysql_num_rows in my opinion. It looks a lot easier thean whats described below. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Øystein Håland'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Th

RE: [PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Mike
There were 2 equal signs, when I sent It outlook must have made them into one. Mike -Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:48 PM To: 'Mike'; [EMAIL PROTECTED] Subject: RE: [PHP] Can anyone help me out? I am really getting frus

Re: [PHP] Tell me how I can...

2002-08-15 Thread Øystein Håland
Thank you guys. I think I can solve one of my problems now. What about the time limit? "Gijs Herpers" <[EMAIL PROTECTED]> skrev i meddelandet 002e01c2448d$1a9d7740$[EMAIL PROTECTED]">news:002e01c2448d$1a9d7740$[EMAIL PROTECTED]... > It is better to check how much entries you have in your database

RE: [PHP] Tell me how I can...

2002-08-15 Thread Jay Blanchard
[snip] Thank you guys. I think I can solve one of my problems now. What about the time limit? [/snip] You can set a date/time column in the user table which is checked at log in. In the login form have a calculation based on the date/time; (over simplification) if ($date_created > $many_days){

[PHP] Getting PHP to submit a form to google

2002-08-15 Thread Henry
Hi all I would like to be able to get the result of a search from google. Namely I would like to write a PHP script that will generate and submit a form (internally i.e. on the server) using the GET method to http://www.google.com/search setting the field "q" to the search words. It should then p

[PHP] undefined offset && bad argument

2002-08-15 Thread victor
I get this error: Notice: Undefined offset: 1 in /home/victor/argilent-www/sites/malibu_place_2/index.php on line 104 Warning: Bad arguments to implode() in /home/victor/argilent-www/sites/malibu_place_2/index.php on line 106 Error 5 For this code: // Original last tag // preg_match('!]+>(.*

[PHP] Re: Sessions...

2002-08-15 Thread Carsten Mohr
As far as I know, you're right, that the session is destroyed Kondwani Spike Mkandawire wrote: > Am I mistaken to assume that a Session is automatically > destroyed if a Window Browser is closed? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Invoking sendmail with PHP

2002-08-15 Thread Daren Cotter
To recap, my problem is: I need some mailings sent immediately (confirmation emails, welcome emails, password lookup emails, etc), while others simply get thrown into the queue, and get sent the next time the queue processes. I contacted a sendmail guru, and he told me that if Sendmail is run wi

Re: [PHP] Invoking sendmail with PHP

2002-08-15 Thread Adam Williams
Why don't you just run sendmail 24/7 with -bd -q15 I'll check the queue continously and send out the emails as it receives them instantaneously. Adam On Thu, 15 Aug 2002, Daren Cotter wrote: > To recap, my problem is: > > I need some mailings sent immediately (confirmat

Re: [PHP] Invoking sendmail with PHP

2002-08-15 Thread Daren Cotter
Because when I send a mailing to all members, I need to be using "queueonly" as the delivery method, as it's 10 times faster that "background". --- Adam Williams <[EMAIL PROTECTED]> wrote: > Why don't you just run sendmail 24/7 with -bd -q15 > I'll check the queue > continously and send out the

[PHP] Error

2002-08-15 Thread Christian Ista
Hello, Could you tell me the signification of this error : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in d:\inetpub\wwwroot\TEST\test3\act_language_fr.php on line 20 Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] removing myself off the mailing list?

2002-08-15 Thread paulson
I seem too have lost my e-mail regarding removing myself off the list. I use the newsgroups now. If anyone can send me the e-mail on how too remove my self off the mailing list. That would be greatly appreciated. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] removing myself off the mailing list?

2002-08-15 Thread Jay Blanchard
[snip] I seem too have lost my e-mail regarding removing myself off the list. I use the newsgroups now. If anyone can send me the e-mail on how too remove my self off the mailing list. That would be greatly appreciated. Paul [/snip] Look at the footer of this message, there is a link. Jay **

Re: [PHP] Error

2002-08-15 Thread Gijs Herpers
What is the code on that line? Gr Gijs - Original Message - From: "Christian Ista" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 9:54 PM Subject: [PHP] Error > Hello, > > Could you tell me the signification of this error : > > Parse error: parse error, u

Re: [PHP] Error

2002-08-15 Thread Miles Thompson
Havn't the foggiest idea what it means, but what has usually happened is that I missed a ";" on an earlier line. MT At 09:54 PM 8/15/2002 +0200, Christian Ista wrote: >Hello, > >Could you tell me the signification of this error : > >Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING

Re: [PHP] removing myself off the mailing list?

2002-08-15 Thread Gijs Herpers
To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: <[EMAIL PROTECTED]> - Original Message - From: <[EMAIL PROTECTED]> To:

RE: [PHP] Getting PHP to submit a form to google

2002-08-15 Thread David Piasecki
Use the google API... http://www.google.com/apis/ - David -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting PHP to submit a form to google Hi all I would like to be able to get the result o

RE: [PHP] Error

2002-08-15 Thread Christian Ista
> Havn't the foggiest idea what it means, but what has usually happened is > that I missed a ";" on an earlier line. That's happen when I include a page. But the strange this, I include the same page earlier and without any problem. The content of this page is a lot of variable (string), like t

RE: [PHP] Error

2002-08-15 Thread Jay Blanchard
[snip] That's happen when I include a page. But the strange this, I include the same page earlier and without any problem. The content of this page is a lot of variable (string), like that (a small part) : [/snip] How large is the page, can you send more? If not, can ou put line numbers on the l

Re: [PHP] Error

2002-08-15 Thread Gijs Herpers
And send your original code beacuse this is hard to understand, at least I don't get it :) - Original Message - From: "Christian Ista" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 10:08 PM Subject: RE: [PHP] Error > > Havn't the foggiest idea what it means,

FW: [PHP] Error

2002-08-15 Thread Jay Blanchard
-Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 3:17 PM To: 'Jay Blanchard' Subject: RE: [PHP] Error > How large is the page, can you send more? If not, can ou put line numbers > on the lines? Not a of lines 20 for the moment but more

[PHP] phpMyadmin with global variables off

2002-08-15 Thread Manuel Ochoa
I just installed phpMyadmin and I'm getting a message that I have an undefined variable. Is this because I have global variables off? Or in other words, should this program work the same regardless of whether global variables are on or off?

[PHP] Frames and PHP

2002-08-15 Thread Sascha Braun
I have some links wich open a new window, wich contains some frames. Each frame selects something from a database, based on an id i put an the window open link. But the ID never enters one of my frames, it terribly stays outside, maybe in the frame set, what can I da about that? Schura

[PHP] good read on regular expressions

2002-08-15 Thread victor
What is a good read on general expressions that a php programmer should check out? I am trying to familiarize myself with them so that I can pars the silly ms word html pages. - Vic __ Post your ad for free now! http://pers

RE: [PHP] Error

2002-08-15 Thread Miles Thompson
Have you tried saving the pages with a .phps extension and looking at them in a browser? That usually uncovers syntactical errors quite quickly. Miles At 10:08 PM 8/15/2002 +0200, Christian Ista wrote: > > Havn't the foggiest idea what it means, but what has usually happened >is > > that I misse

Re: [PHP] Frames and PHP

2002-08-15 Thread Sascha Braun
Yo, i found out how it is working. I just have to make some adds to the url, as i did to the window.open() too. Was easy, but if you never made it before ;OP Thanx Schura - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Sascha Braun" <[EMAIL PROTECTED]>; "PHP Mail

Re: [PHP] Frames and PHP

2002-08-15 Thread Sascha Braun
Now my frameset looks like this: works fine! - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Sascha Braun" <[EMAIL PROTECTED]>; "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 11:09 PM Subject: RE: [PHP] Frames and PHP >

[PHP] assoc array question

2002-08-15 Thread Alexander Ross
I have this: (note that $info is an Assoc Array while (list ($key, $val) = each ($info)) { do stuff } I would like to do slightly different stuff if I'm at the very first, or very last item in the array. How do I do this. Below is the pseudo code which would be ideal: while (list ($key

[PHP] Re: Invoking sendmail with PHP

2002-08-15 Thread Manuel Lemos
Hello, On 08/15/2002 04:35 PM, Daren Cotter wrote: > To recap, my problem is: > > I need some mailings sent immediately (confirmation > emails, welcome emails, password lookup emails, etc), > while others simply get thrown into the queue, and get > sent the next time the queue processes. > > I

[PHP] Re: Invoking sendmail with PHP

2002-08-15 Thread Manuel Lemos
Hello, Correction, the URL is just: http://www.phpclasses.org/smtpclass BTW, there is also another class that wraps around this that makes it easier to compose and send MIME formatted messages. I use both for urgent deliveries. http://www.phpclasses.org/mimemessage Manuel Lemos On 08/15/20

RE: [PHP] assoc array question

2002-08-15 Thread Brian V Bonini
Off teeh top of my novice head I think count() or sizeof() is what your looking for. > -Original Message- > From: Alexander Ross [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 5:23 PM > To: [EMAIL PROTECTED] > Subject: [PHP] assoc array question > > > I have this: (note that

[PHP] Re: xml and php

2002-08-15 Thread Pafo
this is a simple scipt witch i worked out,, but it Dosent work due to: i cant get information from a deeper node... like this: 100 nisse i want to get: and the dataelement after it,, but the thing i wrote dosent do that :/ any ideas? the program code is below as it is now

RE: [PHP] Frames and PHP

2002-08-15 Thread Brian V Bonini
Are you saying $id is not passed some of your frames content but not others or it does nto get passed at all? > -Original Message- > From: Sascha Braun [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 4:34 PM > To: PHP Mailingliste > Subject: [PHP] Frames and PHP > > > I have

RE: [PHP] assoc array question

2002-08-15 Thread Alexander Ross
But what about the first position?? -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 5:37 PM To: Alexander Ross; [EMAIL PROTECTED] Subject: RE: [PHP] assoc array question Off teeh top of my novice head I think count() or sizeof() is what

Re: [PHP] assoc array question

2002-08-15 Thread Alexander Ross
aha!! array_keys !!! "Brian V Bonini" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Off teeh top of my novice head I think count() or sizeof() is what your > looking for. > > > -Original Message- > > From: Alexander Ross [mailto:[EMAIL PROTECTED]] >

[PHP] Re: good read on regular expressions

2002-08-15 Thread J Smith
"Mastering Regular Expressions", by Jeffery E.F. Friedl, published by O'Reilly. It's the regex bible, and although doesn't do much in the way of PHP specifically, the idea is the same. (And the Perl examples can be used without too much modification with PHP's preg_*() functions.) J [EMAIL

[PHP] what am I missing here?

2002-08-15 Thread Alexander Ross
what am i missing here?? I have a simple if statement that wont do whats inside it even when true. this works: echo $key==$info_keys[0]; // returns 1 or 0 correctly if($key==$info_keys[0]) $query = $query; else $query = $query." and "; $query = $query.$key."='".$va

[PHP] Re: assoc array question

2002-08-15 Thread J Smith
Perhaps something like... $i = 1; while (list($key, $val) = each($info)) { if ($i == 1 || $i == count($info)) doThis; else doThat; ++$i; } ? J Alexander Ross wrote: > I have this: (note that $info is an Assoc Array > > while (list ($key, $val) = each ($info)) >

Re: [PHP] what am I missing here?

2002-08-15 Thread Rasmus Lerdorf
You are missing operator precedence. ! is higher precedence than == so your statement effectively becomes: if ( (!$key) == $info_keys[0]) which makes no sense. Normally you would write that code as: if ( $key != $info_keys[0] ) -Rasmus On Thu, 15 Aug 2002, Alexander Ross wrote: > what

RE: [PHP] assoc array question

2002-08-15 Thread David Freeman
> while (list ($key, $val) = each ($info)) > { >do stuff > } $count = 0; $last = sizeof($info); While (list($key, $val) = each($info)) { if ($count == 0) { // first time through } if ($count == $last) { // last time through } // do stuff $count++; } -- P

Re: [PHP] assoc array question

2002-08-15 Thread Rasmus Lerdorf
last($info); $last_key=key($info); reset($info); $first_key=key($info); foreach($info as $key=>$val) { switch($key) { case $first_key: ... stuff for first element ... break; case $last_key: ... stuff for last

[PHP] How retrieve database data from email?

2002-08-15 Thread M
Hello People: I have my pages built in PHP / Mysql, all working ok, but now I need solve a problem I don't know how to solve or even how search about. Case this problem was already discussed in this list, I would be grateful if someone pass to me correct date so I can search about. My problem is

[PHP] Search Engine

2002-08-15 Thread Sascha Braun
Whats wrong with this code? 0) { // Überhaupt einschränken? $Query .= " WHERE ("; $Query .= " referenzen_tbl.kat LIKE '%" . $arrSearch[0] . "%'"; $Query .= " OR referenzen_tbl.head LIKE '%" . $arrSearch[0] . "%'"; $Query .= " OR referenzen_tbl.text LIKE '%" . $arrSearch[0] . "%'"; $Que

[PHP] Search Engine

2002-08-15 Thread Sascha Braun
Excuse me, this is line 40 in the script... if (mysql_fetch_row($Result)<0) { ... and this is line 44... while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC)) {

Re: [PHP] Re: xml and php

2002-08-15 Thread Analysis & Solutions
On Thu, Aug 15, 2002 at 11:28:51PM +0200, Pafo wrote: > > i cant get information from a deeper node... > > > 100 > > nisse > > Carefully examine the code at http://www.analysisandsolutions.com/code/phpxml.htm It provides you the basic concepts needed to parse any XML do

RE: [PHP] Re: Sessions...

2002-08-15 Thread Johnson, Kirk
> Kondwani Spike Mkandawire wrote: > > Am I mistaken to assume that a Session is automatically > > destroyed if a Window Browser is closed? *Eventually* it is destroyed, but not at the instant the browser is closed. See the session.gc_maxlifetime and session.gc_probability settings in php.ini. If

[PHP] Can someone explain this please...

2002-08-15 Thread Gandalf
Hello! I am doing this $newpath = "./uploads/newdir/"; if (!is_dir($newpath)) mkdir($newpath, 0666); $decperms = fileperms($newpath); $octalperms = sprintf("%o",$decperms); $perms=(substr($octalperms,2)); echo $perms; if ($perms != 777) { rmdir ($newpath); } This will not delete the dir crea

[PHP] Undefined variable: PHP_SELF

2002-08-15 Thread Manuel Ochoa
I keep getting "Undefined variable: PHP_SELF" when using the following: Global variables are off... What am I doing wrong?

RE: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread David Freeman
> I keep getting "Undefined variable: PHP_SELF" when using the > following: > > > > Global variables are off... What am I doing wrong? In current versions of PHP, $PHP_SELF is available if globals are on. You'll need $_SERVER['PHP_SELF'] instead if you're keeping globals off. CYA, Dav

Re: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread Jadiel Flores
Try $_SERVER['PHP_SELF'] instead of $PHP_SELF At 04:19 PM 8/15/2002 -0700, you wrote: >I keep getting "Undefined variable: PHP_SELF" when using the following: > > > >Global variables are off... What am I doing wrong? Jadiel Flores - http://www.abargon.com [EMAIL PROTECTE

[PHP] Re: Search Engine

2002-08-15 Thread Dan Koken
Sascha, From just looking at it, the code looks fine. It could be that someone entered a special character in the array like a '%' or something else illegal. Check the code I wrote. I entered a debug statement to see what was generated. This should give you some clue what is wrong with it. Yo

[PHP] Help Please

2002-08-15 Thread paul
Hello Again Everyone, Thank you to those of you who sent me suggestions. Unfortunately none so far have solved the problem. I think I need to give you more information. I am running a Mandrake 8.3 linux box. Apache 1.3.23. PHP 4.2.1-8mdk. Installed from RPM's. PHP shows in my active list of

RE: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread vic
How about this: - Vic -Original Message- From: Manuel Ochoa [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:20 PM To: PHP General Subject: [PHP] Undefined variable: PHP_SELF I keep getting "Undefined variable: PHP_SELF" when using the following: Global variables are

Re: [PHP] Help Please

2002-08-15 Thread Rasmus Lerdorf
This means that you do not have the PHP module loaded properly. Do you have a LoadModule line for PHP in your httpd.conf file? -Rasmus On 15 Aug 2002, paul wrote: > > > Hello Again Everyone, > > Thank you to those of you who sent me suggestions. Unfortunately none so > far have solved the prob

RE: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread Bob Lockie
$_SERVER['PHP_SELF'] when globals are off. >How about this: > > > >- Vic > > >-Original Message- >From: Manuel Ochoa [mailto:[EMAIL PROTECTED]] >Sent: Thursday, August 15, 2002 7:20 PM >To: PHP General >Subject: [PHP] Undefined variable: PHP_SELF > > >I keep getting "Undefined variable:

Re: [PHP] Can I perform a PHP script from a form but stay on the same page afterwards?

2002-08-15 Thread Charles Fowler
Check out Liz Fulgham article on PHP and Forms ->> http://softwaredev.earthweb.com/script/article/0,,12063_996351,00.html It show how the _SERVER fuction/varible is used. Cheers CJ Jim Dam wrote: > http://www.faqts.com/knowledge_base/view.phtml/aid/235/fid/17 > - Original Message - > F

[PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-15 Thread Randall Perry
Php.ini is in correct location according to phpinfo() at /usr/local/lib, but it's not being read. Changed several options and saw no change with phpinfo(). Anybody got any ideas? TIA > > Thanks. I put it in /usr/local/lib and turned register_globals On (I plan on > setting it off after I rewr

Re: [PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-15 Thread Bob Lockie
Permissions. >Php.ini is in correct location according to phpinfo() at /usr/local/lib, but >it's not being read. Changed several options and saw no change with >phpinfo(). > >Anybody got any ideas? > >TIA > > >> >> Thanks. I put it in /usr/local/lib and turned register_globals On (I plan on >>

[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hi! I don't know why it doesn't because it really should ALWAYS evaluate true with your code, regardless of absolutely anything. The reason is that the quoteless 777 you're comparing to is in decimal and it would defy math if you were ever able to get $perms==777. Anyway, it does evaluate tru

[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hummm, sorry, you're right, you're converting it do a "fake" octal via strings, I was wrong in my first paragraph. In any case, if it helps, on my comp it really does evaluate true. Bogdan Gandalf wrote: > > > Hello! > > I am doing this > > $newpath = "./uploads/newdir/"; > if (!is_dir($ne

[PHP] Re: How retrieve database data from email?

2002-08-15 Thread Bogdan Stancescu
You can set up php to run from console if it doesn't already, and add an alias to your mail server ("stocks") which would parse the incoming mail and do the appropriate deeds. Bogdan M wrote: > Hello People: > > I have my pages built in PHP / Mysql, all working ok, but now I need > solve a pr

[PHP] Crypt(), want to implement blowfish, how?

2002-08-15 Thread Jean-Christian Imbeault
How can I make crypt() use blowfish encryption? It seems that my system (RH7.2 Linux) doesn't support Blowfish according to CRYPT_BLOWFISH: CRYPT_BLOWFISH = 0 How can I add blowfish support to my system if crypt() requires it? Jc PS I don't want to use mcrypt(). I just want to install whatev

[PHP] php and classes

2002-08-15 Thread Pafo
i reed thru my code and i noticed that it wasent readable, like Dan said in one of my other post "xml and php". so i thought, why not create afew classes to make everything look good :) i managed to make this class, but it just dosent work,, anyone got any idea why it wont work..? RelicName :

[PHP] i some more help on the whole ereg thingy please

2002-08-15 Thread victor
Hi, I hope you can help me a bit more, this is is my current script: (look after for more messages) // Original last tag // preg_match('!]+>(.*)!Uis',$str,$regs[1]); $everything_between_divs = $regs[1]; //echo $everything_between_divs; $good = implode(' ', $regs) or die ('Error 5'); // This

[PHP] Code for db connection errors

2002-08-15 Thread Andre Dubuc
Suppose, during an attempted connection to a database, an error condition occurs, where the connection cannot be made. Is it advisable for such a message to be displayed to the User, or should such reporting be sent to a log of some sort. (I'm unclear of what use the message would be to the

Re: [PHP] Code for db connection errors

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 10:15, Andre Dubuc wrote: > Suppose, during an attempted connection to a database, an error condition > occurs, where the connection cannot be made. > > . . . > $db = pg_connect("dbname=rap user=postgres") die ("Connection failed - > please try again."); > . . . . > ?> >

[PHP] Re: Code for db connection errors

2002-08-15 Thread Pafo
why not: i think ive would have done something like that... but im not the greatest expert on php :) regards patrick "Andre Dubuc" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suppose, during an attempted connection to a database, an error condition >

Re: [PHP] phpMyadmin with global variables off

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 04:35, Manuel Ochoa wrote: > I just installed phpMyadmin and I'm getting a message that I have an > undefined variable. Is this because I have global variables off? > > Or in other words, should this program work the same regardless of whether > global variables are on or

Re: [PHP] php and classes

2002-08-15 Thread Gurhan Ozen
Where does it fail?? By the way seems like you have forgotten the parenthesises.. Try: $temp = new Relic(); $temp->SetName("test"); $temp->DebugPrint(); Hope this helps.. Gurhan "Pafo" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... i reed thru my code and i noticed that it w

Re: [PHP] undefined offset && bad argument

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 03:14, [EMAIL PROTECTED] wrote: > I get this error: > > Notice: Undefined offset: 1 in > /home/victor/argilent-www/sites/malibu_place_2/index.php on line 104 Which is line 104? > Warning: Bad arguments to implode() in > /home/victor/argilent-www/sites/malibu_place_2/ind

[PHP] Re: php and classes

2002-08-15 Thread Bogdan Stancescu
So what happens exactly? Pafo wrote: > i reed thru my code and i noticed that it wasent readable, like Dan said in > one of my other post "xml and php". > so i thought, why not create afew classes to make everything look good :) > i managed to make this class, but it just dosent work,, anyone g

Re: [PHP] Code for db connection errors

2002-08-15 Thread Andre Dubuc
On Thursday 15 August 2002 10:20 pm, Jason Wong wrote: > It's probably not very user friendly to display the raw error. You could > redirect the user to a generic error page saying something like "The site > is down for maintenance" or whatever. That's what I thought. So with your other idea of

Re: [PHP] Re: Code for db connection errors

2002-08-15 Thread Andre Dubuc
Thanks Patrick, This looks good -- just what I needed to do the job! Regards, Andre On Thursday 15 August 2002 10:22 pm, Pafo wrote: > why not: > $error[] = "Connection to the database failed"; > > > $db = pg_connect("dbname=rap user=postgres") die (error(0)); > > > function error ($code

Re: [PHP] so nobody knows how do get rid of everything outside orcertain tags?

2002-08-15 Thread Justin French
Here si some code that I used YEARS ago, and I think it was posted to this list for me in the first place. It was designed to grab some pseudo mark language from a text file like: An article about PHP This is my article text This is my footer Copyright me 2002 AI have NO IDEA how is works wi

[PHP] Re: php and classes

2002-08-15 Thread Pafo
dosent printout anything, here have a look: http://www.ant.nu/phpclass.php regards patrick "Bogdan Stancescu" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > So what happens exactly? > > > Pafo wrote: > > i reed thru my code and i noticed that it wasent read

[PHP] Re: php and classes

2002-08-15 Thread Pafo
nm, now it works,, forgot the silly () thx, Gurhan :) regards patrick "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > dosent printout anything, here have a look: > http://www.ant.nu/phpclass.php > > regards > patrick > "Bogdan Stancescu" <[EMAIL PRO

Re: [PHP] Removing session id from url when using session_set_save_handler

2002-08-15 Thread Analysis & Solutions
On Tue, Aug 13, 2002 at 10:47:13AM +0200, Per wrote: > > Does anybody know how to get rid of the session id in the url when using > session_set_save_handler. Perhaps session.use_trans_sid is the ticket you're looking for... --Dan -- PHP classes that make web design easier

Re: [PHP] Re: php and classes

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 11:40, Pafo wrote: > nm, now it works,, forgot the silly () Always set error reporting to FULL, and always error log to a file (see settings in php.ini). That way you probably could have figured out what the problem was by examining the logs. -- Jason Wong -> Gremlins

<    1   2   3   >