Re: [PHP] is it safe to stripslashes() on all form variables?

2001-04-17 Thread Yasuo Ohgaki
Previous post does not address how to avoid making this kind of security hole. Anyway, if anyone want to avoid creating security hole like this. Do not stripslashes() added by magic_quote. If you use stripslashes(), use addslashes() again. If you do not use magic_quote, use addslashes() before fee

RE: [PHP] is it safe to stripslashes() on all form variables?

2001-04-17 Thread Jason Murray
> Disabling magic quote will reduce amount of code and increase > performance a little, unless application is very small. Without > magic_quote, script does not have to get rid of slashes to use > value from browser and add slashes again before feeding to > database. Code would be cleaner and easie

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Alexander Skwar
So sprach Shaun am Mon, Apr 16, 2001 at 06:53:40PM -0500: > this > while($row = mysql_fetch_object($rs)){ > echo ''; > echo $device; > echo '\n'; >} > > should be while($row = mysql_fetch_object($rs)){ echo ''; echo $row->device; echo '\n'; }

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Alexander Skwar
So sprach Jason Murray am Tue, Apr 17, 2001 at 11:55:44AM +1000: > Brief correction. > > > while($row = mysql_fetch_row($rs)) > > ^^^ should be "array". Why should it be array and not, let's say, object? Alexander Skwar -- How to quote: http://learn.to/quote (

RE: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Jason Murray
> > > while($row = mysql_fetch_row($rs)) > > > > ^^^ should be "array". > > Why should it be array and not, let's say, object? Because I went on to use it as if I'd used fetch_array in the rest of the example code, I'd wager. :) Jason -- PHP General Mailing L

Re: [PHP] baffled :<:

2001-04-17 Thread Plutarck
In the loop, try using print_r($myarray) in the loop to see if the data is in there at all. Other than that, switch the while loop to: while ($myrow = mysql_fetch_assoc($result)) { That should fix it... -- Plutarck Should be working on something... ...but forgot what it was. ""Peter Houchi

[PHP] How to unsubscribe

2001-04-17 Thread Joachim Fuchs
How to unsubscribe? In typical lists, there is a small info how to unsubscribe. In the php-general list, this is not the case. Several effords failed. Who can unsubscribe "manually"? Best regards, Joachim [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] ZOPE PHP

2001-04-17 Thread elias
what is ZOPE? can you give me a URL about it? -elias ""Romulo Roberto Pereira"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! > > Any comments in PHP for Zope? I don't know much thought... Some people told > me that Zope is good a while ago... And I sa

RE: [PHP] How to unsubscribe

2001-04-17 Thread Maxim Maletsky
See the footer below... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Joachim Fuchs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 5:40 PM To: [EMAIL PROTECTED] Subj

Re: [PHP] How to unsubscribe

2001-04-17 Thread Felix Kronlage
On Tue, Apr 17, 2001 at 10:40:07AM +0200, Joachim Fuchs wrote: > In typical lists, there is a small info how to unsubscribe. In the > php-general list, this is not the case. take a look at the signature: > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PRO

[PHP-CVS] cvs: CVSROOT / avail

2001-04-17 Thread Thies C. Arntzen
thies Tue Apr 17 00:31:36 2001 EDT Modified files: /CVSROOTavail Log: fix my own karma Index: CVSROOT/avail diff -u CVSROOT/avail:1.146 CVSROOT/avail:1.147 --- CVSROOT/avail:1.146 Sat Apr 14 01:26:21 2001 +++ CVSROOT/avail Tue Apr 17 00:31:35 200

RE: [PHP] Dynamic built web pages administration

2001-04-17 Thread Maxim Maletsky
We all are working on something like this. Search Source Forge to get some better ideas. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PR

RE: [PHP] How to unsubscribe

2001-04-17 Thread B. van Ouwerkerk
At 17:56 17-4-01 +0900, Maxim Maletsky wrote: >See the footer below... Yeah, or learn to read headers: list-help: list-unsubscribe: list-post: You see.. Bye, B. -- PHP General Mailing List (http://www.php.net/

[PHP] RE: A slightly amusing, though mostly dangerous, endless loop

2001-04-17 Thread Greig, Euan
Is the anti-recursion feature you mention automatically activated or do you need to configure it to take effect? This error with print_r is documented in the manual, but would still be (have been) an easy trap to fall into! -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] S

[PHP] 'Embedding' a PDF file

2001-04-17 Thread Alexis Antonakis
Hi, I've got a couple of questions relating to PDF files. Firstly, to display a PDF file in your browser, I presume that you must have a 'plug-in' installed? Secondly, is it possible to display a PDF file within a table, as I have only ever seen them fill up the entire browser? TIA Alexis --

RE: [PHP] 'Embedding' a PDF file

2001-04-17 Thread Henrik Johansson
Hi alexis. Yes, with Internet Explorer equipped with the shell-integration component in a Windows environment, this is possible with the Adobe Acrobat plugin. For Netscape, this is not currently (to my knowledge) an option. Further, to display a pdf-document in only a part of IE, the easiest way,

Re: [PHP] ZOPE PHP

2001-04-17 Thread Felix Kronlage
On Tue, Apr 17, 2001 at 11:51:52AM -0700, elias wrote: > what is ZOPE? Content Management System (CMS) written in python, I believe. > can you give me a URL about it? http://www.zope.org/ -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org

Re: [PHP] ZOPE PHP

2001-04-17 Thread Moody
Look at http://www.zope.org and http://weblogs.userland.com/zopeNewbies/ have fun :-) Moody - Original Message - From: "elias" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 7:51 PM Subject: Re: [PHP] ZOPE PHP > what is ZOPE? > can you give me a URL about it

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Dean Hall
Rom. ""Romulo Roberto Pereira"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I was wondering if anybody have developed something related to dynamic web > pages building and administration. I need to store the content of the site > in the database

Re: [PHP] array_push but with key, value pairs

2001-04-17 Thread Dean Hall
Joseph. "Joseph Blythe" <[EMAIL PROTECTED]> wrote: ... > Ok fine, I now have an associative array with a numeric index, but > hangon I wanted to push the key => value into the array. How would I do > this, I have tried a couple of things but am having some really crazy > results ;-) 'array_push'

Re: [PHP] set_error_handler()

2001-04-17 Thread Dean Hall
""Boget, Chris"" <[EMAIL PROTECTED]> wrote: > Can you use the above function to set the error > handler to a custom class? If so, how? I've been > having no luck no matter what I do... > > Chris Chris. I tried doing something like: set_error_handler("Error::handleError"); myself, and to no a

[PHP] Time needed for a SQL-statement

2001-04-17 Thread B. Tenhumberg
Hi! Is there a way to get the time the database needed for execution a statement? I use MySQL and PHP... -- Berthold Tenhumberg (live long and prosper...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: [PHP] Time needed for a SQL-statement

2001-04-17 Thread Maxim Maletsky
Have you tried EXPLAIN ? EXPLAIN SELECT * FROM tables WHERE this='this' AND that='that' ORDER BY this, that ; A query like this would return you some of the stats. Catch the time

[PHP] highlighting search results (revisited)

2001-04-17 Thread Matt Williams
I am trying to write a little search script to search a mysql db. I would like to highlight the search words for the displayed results, like sourceforge etc... After a little help, I have got it to hightlight when searching for one word. The problem is if I do a search for more than one word it

[PHP] Is this kind of code safe?

2001-04-17 Thread Greig, Euan
I was playing around with various ways of doing conditional output of text, and I tried the following. value is a value is not a It seems to work, ie it outputs different text depending on the value of $test. But is it safe, can I rely on this behaviour? Maybe I just missed something

RE: [PHP] Is this kind of code safe?

2001-04-17 Thread Jason Murray
> $test="b"; > if ($test=="a"): > ?> >value is a > else: > ?> >value is not a > endif; > ?> > > It seems to work, ie it outputs different text depending on > the value of $test. But is it safe, can I rely on this > behaviour? Yes can rely on it, but I just think it's somewhat ugly.

RE: [PHP] Is this kind of code safe?

2001-04-17 Thread Greig, Euan
Thanks for that Jason (and so quick!). I agree it's ugly, but I can see it being useful occasionally. Euan -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: 17 April 2001 12:38 To: 'Greig, Euan'; [EMAIL PROTECTED] Subject: RE: [PHP] Is this kind of code safe? > $

Re: [PHP] RFC: Storing User Info

2001-04-17 Thread Christian Reiniger
On Monday 16 April 2001 20:41, you wrote: > I'm looking for comments on this one. I'm developing a site that > will have user logins on it. What's the best way to do this? What to > store, and how? > > - Are people more inclined to use a username when they need to log > in to some

[PHP] variables empty

2001-04-17 Thread Dennis Haller
Hi all, I've got this problem with variables. In the code below I've got the variables: $jaar and $vak, if I echo them they r displayed correctly, but if the function unlink is called it doesnt seem to know what $jaar and $vak are. If I do $the_path = "/home/H0RNET/ftp/jaar1/PRO/"; then the funct

Re: [PHP] php like cgi

2001-04-17 Thread Christian Reiniger
On Monday 16 April 2001 22:40, you wrote: > Hi.. > > I'm tring to use a php-script like cgi, but the only thing i got is > "Internal Server Error..." > > That's my test-script.. > --- > #!/bin/php -q Are you 100% sure that it's /bin/php ?

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Christian Reiniger
On Tuesday 17 April 2001 02:10, you wrote: > So sprach Brian Clark am Mon, Apr 16, 2001 at 08:01:04PM -0400: > > Ahhh, yes, I see that was stupid. Sorry, Alexander. :) > > Ah, thanks Joe for clearing up this confusion :)) > > Now that this is sorted out: What might be the best way to do some > be

RE: [PHP] set_error_handler()

2001-04-17 Thread Boget, Chris
> ""Boget, Chris"" <[EMAIL PROTECTED]> wrote: > > Can you use the above function to set the error > > handler to a custom class? If so, how? I've been > > having no luck no matter what I do... > I tried doing something like: > set_error_handler("Error::handleError"); > myself, and to no avail. I

[PHP] php equivalent for `command`

2001-04-17 Thread Greig, Euan
Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997 ***

Re: [PHP] cgi vs. module

2001-04-17 Thread Christian Reiniger
On Tuesday 17 April 2001 07:10, you wrote: > RE: PHP as a CGI or Module > > This has been discussed some but I am interested to see if one is more > popular then the other. My experience has been most people run PHP as > a apache module but is there a specific benefit to run it as a cgi > program

Re: [PHP] baffled :<:

2001-04-17 Thread Christian Reiniger
On Tuesday 17 April 2001 07:59, you wrote: > can any one see a problem with this loop? > while ( ($myrow = mysql_fetch_array($result) ) ) { > > $id = $myrow["id"]; > $card = $myrow["card"]; > $serial = $myrow["serial"]; > $avail = $myrow["avail"]; > $pn = $myrow["pn"]; > $cat = $myrow["c

[PHP] Running php as a CGI

2001-04-17 Thread Boget, Chris
We compiled PHP to be used as a CGI and it's working great. However, whenever we run a php script, the following message gets outputted at the start of the output: "X-Powered-By: PHP/4.0.3pl1 Content-type: text/html" Is there any way we can suppress that message? I looked all over the docs and

[PHP] Mail help!!!!!

2001-04-17 Thread Bruno Freire
Hi! My name is Bruno. Somebody can tell me how to send the same message to more than one recipient without repeat de code?? something like $corpo.="\n"; $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n"; $corpo.="\tClique no link abaixo para visualização da Folha de Cotação:\n\n";

Re: [PHP] Mail help!!!!!

2001-04-17 Thread Johannes Janson
Hi, I think you can put more than one recipient into the mail-function by seperating them with a ",". Look in the manual for detailed info. Johannes "Bruno Freire" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D9035

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Pierre-Yves Lemaire
Last time I worked there I had to sleep in my car for a month! No housing... Skied like hell tho :) At 09:33 PM 4/16/01 -0700, you wrote: > You'll probably won't get to see the now :-<. > > >__John Monfort_ >_+---+_ > P E P I E D

RE: [PHP] cookies

2001-04-17 Thread Grimes, Dean
Are you using IE 5.01 by chance? I was having very strange problems with cookies and headers. 5.00 and 5.5 both worked without problems, however 5.01 has some real bugs. Some of the problems I was having included: cookies not deleting, executing headers caused PHP to behave abnormally and other un

RE: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-17 Thread Grimes, Dean
I had the exact same problem Haven't had time to work it though. -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 3:26 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO Pdflib 3.03 compiles OK and builds a static library - /

Re: [PHP] Running php as a CGI

2001-04-17 Thread Knut H. Hassel Nielsen
On Tue, 17 Apr 2001, Boget, Chris wrote: > We compiled PHP to be used as a CGI and it's > working great. However, whenever we run a > php script, the following message gets outputted > at the start of the output: > > "X-Powered-By: PHP/4.0.3pl1 > Content-type: text/html" > > Is there any way we

Re: [PHP] baffled :<:

2001-04-17 Thread John Lim
""Peter Houchin"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > can any one see a problem with this loop? > >$db = include"connect.inc"; > $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > $result = mysql_query($foo,$db); > > > while ( ($

[PHP] Reauthenticate

2001-04-17 Thread Marcelo Pereira
Hi All, I'm in trouble to authenticate each user (using a database). When the user sucesfully login on your area the php script send a cookie, and every php script reads this cookie. So when the user log ou the php script expires the cookie and then the user cannot bookmark the page and turn back

Re: [PHP] How do i include ASP script into PHP...??!

2001-04-17 Thread John Lim
Easy. Just use fopen('http://localhost/file.asp') then fread the data you want. I do this technique to read Access tables from a Linux box. ""Joe Truong"" <[EMAIL PROTECTED]> wrote in message 9bfd8q$gum$[EMAIL PROTECTED]">news:9bfd8q$gum$[EMAIL PROTECTED]... > How can i include ASP scripts int

[PHP] Form Field

2001-04-17 Thread Mike
Im trying to pass a form variable to anouther page with the following: name="R1"> Everything works fine if there are no spaces(Buffalo) but if there are spaces ( San Francisco) I only get the first word.I've never had this problem before and I dont know what I did.Any suggestions? Thanks Mike P

Re: [PHP] Installing PHP Extentions for IIS - W2K - Is it possible?

2001-04-17 Thread John Lim
The PHP developers are a diverse and perverse group. You can get them from http://php4win.de ""SED"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I was downloading the latest version of PHP (Win32 Binaries) for IIS server, > but no external extensi

Re: [PHP] Form Field

2001-04-17 Thread Marcelo Pereira
Hi, How about enclose the parameters with quotes ??? See ya, Marcelo Pereira Programmer - Original Message - From: Mike <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 10:17 AM Subject: [PHP] Form Field > Im trying to pass a form variable to anouther page wi

RE: [PHP] Form Field

2001-04-17 Thread Picard, Cyril
Try this : $urlrow = htmlentities (urlencode($row[0][0])); name="R1"> (I'm not sure you need urlencode, but htmlentities should help you) > -Message d'origine- > De: Marcelo Pereira [SMTP:[EMAIL PROTECTED]] > Date: mardi 17 avril 2001 15:35 > À:Mike > C

[PHP] Returning part of a string, ereg..

2001-04-17 Thread Chad Day
I'm horrible at regex's, maybe someone can help me out. What I'm trying to do is parse a string in the format: number-number-number (ex. 1-23123-312039128) I need to pull that second number, regardless of length This code returns nothing: $part = ereg("([0-9]{1})-([0-9])-", $f, $regs); but

[PHP] Persistent connection & many scripts ?

2001-04-17 Thread Picard, Cyril
Hi all I use PHP to query a PostgreSQL database. Today I know how to query the database with a PHP script, but I have to establish a connection to the database in each script. Is there a way to get the following : connect.php : a script where the user enters its login and password, and connect t

Re: [PHP] Returning part of a string, ereg..

2001-04-17 Thread Morgan Curley
try $part = ereg("([0-9]{1})-([0-9]*)-", $f, $regs); your original exp was looking for 1 digit followed by a dash follwed by 1 digit followed by a dash the * should match 0 or more occurences of the previous match ( in this case 0 or more numbers ) you shouldn't need the {1} in there either.

RE: [PHP] How do i include ASP script into PHP...??!

2001-04-17 Thread Jason Murray
> Easy. Just use fopen('http://localhost/file.asp') then fread > the data you want. I do this technique to read Access tables > from a Linux box. But that gives you the RESULTS of the ASP script, not the script itself. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Reauthenticate

2001-04-17 Thread Plutarck
When using sessions, which you might want to do, PHP automatically sends header's that tell the user's browser not to bookmark the page. The reason they can click the back button and see the page is because their browser is caching the page. If they press the Refresh key they won't be able to see

Re: [PHP] Persistent connection & many scripts ?

2001-04-17 Thread Plutarck
Ideally you could use pconnect, then save the connection ID into a session. Then just try and use the connection like that. That _should_ work. But you may just want to use pconnect and not bother with the rest...that might be just as good as what you are trying to do. -- Plutarck Should be wor

[PHP] Dynamic Pages and Google ???

2001-04-17 Thread Jon Shoberg
So I was having a conversation with a manager/educator in the IT Industry :) In a discussion concerning search engines he stated how he dislikes dynamic web pages (PHP/ASP/JSP/CFM) because search engine spiders 'choke' on dynamic content or gives those pages a lower ranking. I can't see this as

Re: [PHP] php equivalent for `command`

2001-04-17 Thread Plutarck
The backtick operator " ` " is used like an exec() or passthru() function. But I know what you mean. For instance, try running this in a script: $n = 1; echo "The number is: $n++"; echo "The number is: $n++"; echo "The number is: $n++"; PHP will not increment a variable inside of a string. How

Re: [PHP] Is this kind of code safe?

2001-04-17 Thread Plutarck
Don't use that on such small outputs, simply for the reason that it's really hard to read and follow. It also screws up Syntax highlighting. However, it works just like you would hope it would. When you call an ending tag, PHP just outputs whatever is there without parsing it. But it doesn't forg

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-17 Thread Sterling Hughes
On Tue, 17 Apr 2001, Jani Taskinen wrote: > On Mon, 16 Apr 2001, Sterling Hughes wrote: > > >> > >> -#ifndef HAVE_DBMAKER > >> - if ((*pv_onoff)) { > >> -#else > >>if (pv_onoff && (*pv_onoff)) { > >> -#endif > >>convert_to_long_ex(pv_onoff); > >>rc = SQLSetConnectOpti

Re: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-17 Thread Paul Gardiner
Hello again Dean, Chris, Snap I'm afraid. I didn't spend too much time on it but it's on the list of things to do. If I manage to get any further I'll let you know. If this is urgent though Chris, let me know your exact configure/build procedure and which versions you're using of the tiff, jpeg

[PHP] working with SSL

2001-04-17 Thread phpman
How do I establish an SSL socket connection with PHP? I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP with some sort of open_ssl option? I have --enable-sockets in the command line. Please help!!! -dave -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] Persistent connection & many scripts ?

2001-04-17 Thread Picard, Cyril
Yes... I'm not familiar with sessions. This should be like this ? : In connect.php : clique ici ?> In query.php > -Message d'origine- > De: Plutarck [SMTP:[EMAIL PROTECTED]] > Date: mardi 17 avril 2001 16:03 > À:[EMAIL PROTECTED] > Objet:Re: [PHP] Persistent connection

Re: [PHP] variables empty

2001-04-17 Thread phpman
hey, try this... $the_path = "/home/H0RNET/ftp/" . $jaar . "/" . $vak . "/"; unlink ($the_path . $d); ""Dennis Haller"" <[EMAIL PROTECTED]> wrote in message 9bharm$1td$[EMAIL PROTECTED]">news:9bharm$1td$[EMAIL PROTECTED]... > Hi all, > I've got this problem with variables. In the code below

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Plutarck
If you are storing the content in a database, your job is a ton easier. Just add an edit link on the page you want people to be able to edit. It will link over to an edit page with the value of the current page sent in the URL via get. Get the content from the database pointed to by the url, and

[PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
Hi. Considering PHP takes " 's " into consideration as part of the script, and adds a slash infront of them I need a way to overcome this. And second of all, I need a way to prevent HTML code from being seen, none the less used on the output. $subject : mailto:$email\">$name $submition "

Re: [PHP] Form Field

2001-04-17 Thread Mike
What I need to do is append parenthesis to the front and back of ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm getting now is: Value=1San Francisco What I need is: Value="1San Francisco" Thanks Mike P [EMAIL PROTECTED] ""Mike"" <[EMAIL PROTECTED]> wrote in message 9b

Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson
Hi, there is NO way of hiding the html from the user. the browser can't output otherwise. You can only try to make it difficult to get the source. Where does the " 's " problem come in? More detail plz. Is it a part of a text? Then try htmlspecialchars() or htmlentities(). Johannes ""Dddogbru

Re: [PHP] Form Field

2001-04-17 Thread Jack Dempsey
Why don't you just put the quotes outside the php? That will give you foo -jack Mike wrote: > > What I need to do is append parenthesis to the front and back of > ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm > getting now is: > Value=1San Francisco > What I need is

RE: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Jeff Holzfaster
I too would be interested in learning what others on this list might have to say about this. Knowing how a search engine such as Google indexes a site or a page might be a good starting point in answering this debate: dynamic vs. static. Jeff So I was having a conversation with a manager/edu

Re: [PHP] Returning part of a string, ereg..

2001-04-17 Thread Plutarck
This: ereg("([0-9]{1})-([0-9])-", $f, $regs); What that means is "Capture a single occurance of 0-9, then a hyphen, then capture a single occurance of 0-9 if it is imediately folowing by a hyphen." Try this instead: ([0-9]{1})-([0-9]+)- The "+" means "one or more". So "[0-9]+" is the same as

Re: [PHP] cgi vs. module

2001-04-17 Thread Plutarck
The only reason I am aware of to use PHP as a CGI is on Windows. Both apache and the php module for windows apache is considered "beta quality", so most people don't want to install beta software on their production machine. But just on my local system I've never had a problem with PHP as CGI. I

Re: [PHP-CVS] cvs: php4 /main SAPI.h fopen_wrappers.c /sapi/cgi cgi_main.c

2001-04-17 Thread Stig Sæther Bakken
[Jon Parise <[EMAIL PROTECTED]>] > On Mon, Apr 16, 2001 at 11:20:47PM -, Stig Bakken wrote: > > There's a lot of whitespace pollution in this commit (bad tab > spacing). I'd fix it, but I don't want to commit over anything you > might be in the middle of. Ah, thanks for the heads-up. - St

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Plutarck
I had that same problem. Use the "distinct" keyword in your SQL query. -- Plutarck Should be working on something... ...but forgot what it was. ""Peter Houchin"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > One thing I've come across and forgot to mentio

Re: [PHP] cgi vs. module

2001-04-17 Thread Jack Dempsey
If someone wants to run PHP scripts for other purposes then dynamic web content, say to act like shell scripts, then you'll want to have it be compiled as a CGI...so, its more than just the windows thing... -jack Plutarck wrote: > > The only reason I am aware of to use PHP as a CGI is on Window

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Philip Hallstrom
I'm not an expert in this, but I suspect that some search engines will probably ignore URL's that look like this: /path/to/dynamic.php?arg=1&foo=bar because it sees the ? and knows that it's a dynamic result and perhaps very likely to change. I had always assumed that's why many sites (such as

Re: [PHP] Job in Whistler, BC

2001-04-17 Thread Plutarck
It should be noted that programming facilities are entirely outdoor. But they do provide those little hand-held vacuums to suck the snow out from between your keyboard keys. Nah, I'm just kidding. But it is in Canada, so you will be forced to type "a\'boot" hundreds of times a day ;) (a

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Michael Kimsal
Jon Shoberg wrote: > So I was having a conversation with a manager/educator in the IT Industry :) > > In a discussion concerning search engines he stated how he dislikes dynamic > web pages (PHP/ASP/JSP/CFM) because search engine spiders 'choke' on dynamic > content or gives those pages a lower

Re: [PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
> there is NO way of hiding the html from the user. > the browser can't output otherwise. You can only > try to make it difficult to get the source. I want to hide the HTML from the browser. If someone adds some malicious code, or even I don't want it to underline. > Where does the " 's " prob

Re: [PHP] RFC: Storing User Info

2001-04-17 Thread Plutarck
As others suggested, use md5 or one of the mhash functions. You can't retrieve the password, but you shouldn't need to anyway. When someone looses their password, get rid of their old one and mail them their randomly created new one. Then just allow them to change it to whatever they want. Make

Re: [PHP] HTML and slashes.

2001-04-17 Thread Jack Dempsey
I want to hide the HTML from the browser. If someone adds some malicious code, or even I don't want it to underline. Could you rephrase this? You want to "hide" the HTML from the browser? If the browser doesn't see any HTML, good luck getting a web page. If you're trying to hide the HTML from

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Plutarck
Getting listed in search engines really is important. But in the vein of what you were talking about, people shouldn't really "worry" about it. Note: Getting listed in directories like Yahoo is way more important than having any search engine list you. You always receive a far more targeted user

Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson
use srtipslashes() before writing it to the file. Johannes ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > there is NO way of hiding the html from the user. > > the browser can't output otherwise. You can only > > try to make

RE: [PHP] Dynamic built web pages administration

2001-04-17 Thread Romulo Roberto Pereira
dear Plutark, Thank you for your input. But, let's say that I have the following: some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text

Re: [PHP] HTML and slashes.

2001-04-17 Thread Plutarck
Check magic_quotes_runtime in your ini. If it's on, turn it off. Use the htmlspecialchars() family of functions. They will "hide" HTML in that the browser will not attempt to parse. so "" will be displayed as "", and not make all the text turn to bold. -- Plutarck Should be working on something

[PHP] Javascript mailing list

2001-04-17 Thread Boget, Chris
A bit OT, yes, but I don't want to ask an inappropriate question here (not that this isn't an inappropriate question :p). Can someone recommend a good Javascript mailing list? Chris

Re: [PHP] RE: A slightly amusing, though mostly dangerous, endless loop

2001-04-17 Thread Plutarck
It's automatically enabled, and I don't think it's available for disabling. I recall hearing something about a feature being added to PHP to help prevent infinate loops, and it apparently works with print_r. It should probably be listed more prominately and in any place where $GLOBALS is mentione

Re: [PHP] Javascript mailing list

2001-04-17 Thread Plutarck
I know of only the one on marc.aimsgroup.com. They list quite a few mailing lists of all types. But I still don't know any newsgroups :( -- Plutarck Should be working on something... ...but forgot what it was. ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] Javascript mailing list

2001-04-17 Thread Seung-woo Nam
How about newsgroups instead? comp.lang.javascript seems to be pretty active. Seung-woo Nam "Boget, Chris" wrote: > > A bit OT, yes, but I don't want to ask an > inappropriate question here (not that this > isn't an inappropriate question :p). > Can someone recommend a good Javascript > mailing

Re: [PHP] Javascript mailing list

2001-04-17 Thread Andy Woolley
The JavaScript Weenie is about the best I know of at: http://webdevelopersjournal.com/subform.html See you there. Andy. - Original Message - From: "Boget, Chris" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 4:56 PM Subject: [PHP] Javascript

[PHP] OT - cyber squatting?

2001-04-17 Thread Kurth Bemis
this is totally OT - however I don't where else to ask. i need information on cyber squatting. as in what laws there are against it, etc.i believe that there was a law passed making cyber squatting illegal...but i can't find it at the library of congressany help? ~kurth -- PHP Gener

[PHP] Session Variables & Cookies

2001-04-17 Thread Bob Clingan
I've tried to follow the example in the online manual, but and I believe my session/cookie variables are being stored. Is there some specific way I need to call them? Can anyone provide a brief example? Thanks. --Bob -- +---+ | Bo

Re: [PHP] PHP3 and PHP_SELF

2001-04-17 Thread Dan Lowe
Tried this on a host running 3.0.16: Worked just fine. -dan Previously, Alan Ward said: > Does the variable $php_self work in PHP3? I am helping a friend with some > forms, and their host still uses PHP3. -- If man evolved from monkeys and apes, why do we still have monkeys and apes?

[PHP] get_class()

2001-04-17 Thread Boget, Chris
Given the following code: - class myClass { function myClass() { $classVar = get_class( $this ); } } $thisInstance = new myClass(); - What value should $classVar contain? "myClass" or "thisInstance" ? The documentation leads me to believe that it is the latter value, but

Re: [PHP] OT - cyber squatting?

2001-04-17 Thread Plutarck
I assume you mean registering a web address of a company, just to keep them from registering it or to try and make them pay you for it? Check NetworkSolutions "domain name dispute" policies. InterNIC has a pretty good policy, actually. If someone registers a name with is copyrighted, trademarked

Re: [PHP] OT - cyber squatting?

2001-04-17 Thread Kurth Bemis
At 12:21 PM 4/17/2001, Plutarck wrote: thats is exactly what i'm looking for. :-) thanks ~kurth >I assume you mean registering a web address of a company, just to keep them >from registering it or to try and make them pay you for it? > >Check NetworkSolutions "domain name dispute" policies. >

Re: [PHP] cgi vs. module

2001-04-17 Thread Dan Lowe
Previously, Franklin Hays said: > > RE: PHP as a CGI or Module Generally people will almost always use the module because it's faster and simpler, and gives you some IPC kind of advantages that the CGI doesn't have ("internal" cross-talk with Apache). Reasons to use the CGI: 1. Windows servers

[PHP] PHP and a C++ application

2001-04-17 Thread Xinkun Wang
I am doing a project with PHP to a text database. Basically the text database is created in C++. But I only can use exec() function to transfer query commands as an array parameter to its interface, and get result from a temp file. Not like php directly call mysql function, and I want to (if pos

Re: [PHP] Time needed for a SQL-statement

2001-04-17 Thread Ulf Wendel
"B. Tenhumberg" schrieb: > Is there a way to get the time the database needed for execution a statement? > I use MySQL and PHP... Hmm, how about metering the overall time required by mysql_query() using microtime(), http://www.php.net/manual/en/function.microtime.php. As long as there's no netw

Re: [PHP] variables empty

2001-04-17 Thread Ulf Wendel
Dennis Haller schrieb: > I've got this problem with variables. In the code below I've got the > variables: $jaar and $vak, if I echo them they r displayed correctly, but if > the function unlink is called it doesnt seem to know what $jaar and $vak > are. If I do $the_path = "/home/H0RNET/ftp/jaa

Re: [PHP] get_class()

2001-04-17 Thread Plutarck
"This function returns the name of the class of which the object obj is an instance." The name of the class is "myClass", therefore the behavior is as it should be. "thisInstance" is an object, not a class. If you are trying to do something imparticular you'll have to be more specific. As for g

  1   2   3   >