Re: [PHP] embedded media from DB

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Brad Wright wrote: > well i got the wav files from the mysql database and can get them to play in > a web page using the following code: > > > > IF ($row = mysql_fetch_array($result)) { > > > $data = $row["wavFile"]; > $name = $row["wav FileName"]; > $siz

Re: [PHP] Re: Email not getting

2002-06-13 Thread Miguel Cruz
It's trying to send a message to (somewhere)@aurica.com. But in any case, the output from the nslookup command suggests that your machine's DNS resolver is misconfigured. You'll have to get that sorted out before you can get much mail off the machine (not a PHP issue). miguel On Thu, 13 Jun 2

Re: [PHP] netscape wont show form result

2002-06-13 Thread Steve Fitzgerald
I know what you are both saying and it was a poor explanation from me as to what happened. let me explain it further because although the code is working now i would like to know what happened. We know the code should work the same regardless of browser since the server is interpreting the code no

[PHP] Re: how can i insert date

2002-06-13 Thread Cirstoiu Aurel Sorin
You make a variable $insert = $year."/".$month."/".$date(or whatever format you wish) and insert it in the database. -- Cirstoiu Aurel Sorin InterAKT Support http://www.interakt.ro "Suman" <[EMAIL PROTECTED]> wrote in message [EMA

RE: [PHP] Problem with postfield elements

2002-06-13 Thread Balaji Ankem
Hi Justin , Thankyou. They made this change in php 4.2.1 only?? But I never faced this problem previously with php3, php 4.0.1. Is it like that? Thanks and Regards Balaji -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:44 PM To: Balaj

[PHP] internationalization and gettext

2002-06-13 Thread a . h . s . boy
I developed a rather large and extensive PHP application for maintaining a news publishing site. All static text was, when I created it, written in English. Form field labels, long explanatory texts, navigational links, everything. The popularity of the application, however, has drifted outsid

RE: [PHP] beginner in PHP

2002-06-13 Thread Tim Ward
>From the symptoms it sounds like you're destroying the session okay but leaving the variables In the script. Are you sure you're unsetting them at the appropriate scope level. Tim Ward www.chessish.com -- From: Phillip Perry [SMTP:[EMAIL PROT

Re: [PHP] Problem with postfield elements

2002-06-13 Thread Jason Wong
On Thursday 13 June 2002 16:06, Balaji Ankem wrote: > Hi Justin , > Thankyou. They made this change in php 4.2.1 only?? > But I never faced this problem previously with php3, php 4.0.1. > Is it like that? Since 4.1.X. This issue comes with monotonous regularity (probably once a day). It is exp

Re: [PHP] netscape wont show form result

2002-06-13 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I know what you are both saying and it was a poor explanation from me as to what > happened. let me explain it further because although the code is working now i > would like to know what happened. > We know the code should work the same

Re: [PHP] Email - Php !

2002-06-13 Thread Chris Hewitt
If you can send mail to/from the server as an ordinary user, the the sendmail configuration is OK, but if this is a new linux installation (e.g. RH 7.2 or 7.3) then it might need updating. The firewall may also prevent smtp. HTH Chris Septic Flesh wrote: >I use the following php.ini config.

[PHP] POST/GET vars in apache

2002-06-13 Thread Webmaster do Aborla.net
Hello everybody, I used to use IIS and now I moved to apache. I use PHP, too. But now, in order to get a POST/GET var I need to use $HTTP_POST_VARS[var] and with IIS I simply call $var. Why this happens??? Do I need to modify all my scripts to $HTTP_POST_VARS??? Thanking in advance, Nuno Lopes

RE: [PHP] POST/GET vars in apache

2002-06-13 Thread Brian McGarvie
it;s todo with the ini file an option register_globals Off - you need to use the $HTTP_POST_VARS[var] method On - you dont Pro - more secure. Con - more to type! > -Original Message- > From: Webmaster do Aborla.net [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 11:32 AM > To: [EMAIL PR

[PHP] Controlling CVS with PHP...

2002-06-13 Thread d gibbs
hi, I was wondering if any one had managed to controll CVS with php. I'm wanting to add/update/remove/checkin/checkout files not just view. cheers dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: F5 problem...

2002-06-13 Thread blue
I'm currently having the same problem, but I've found a quick fix for it. maybe it will be appropriate for what your doing. First, I consider it to be bad code to have more than one page process form data, so this example will incorporate just one page called FORM.PHP. i'll use a small example t

[PHP] Table management insert/update/delete/search

2002-06-13 Thread José León Serna
Hello: I'm looking for a script like phpmyAdmin, but much more simple, targeted to a single database to offer management capabilities, insert/update/delete/search, etc. Do you know of any? Best regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Newbie problem with POST vars

2002-06-13 Thread Sear, Mick
Sorry if this is a bit simple: I'm trying to loop through $_POST vars in a function, which I understand to be an autoglobal associative array. Here's the code I'm using: foreach($_POST as $item => $value){ echo "$item, $value"; } However, I only get the first element of the array echoe

[PHP] passing name / value pairs in URL

2002-06-13 Thread blue
Until the recent version of PHP i've enjoyed being able to pass variables as name/value pairs within my URL. this has been essential for accessing my mysql database. here is an example of a url. getAd.php?id=1 of course that link tells the script to fetch all associated data from a particular

[PHP] php-speed

2002-06-13 Thread Philipp Melab
I have a simple newbie question... Whats better (faster?): - embedding PHP in HTML - or printing HTML via PHP ...? yours Philipp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] duplicate entries mystery

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone I have what I think is a very simple function, but I'm getting double entries in my database? I think my php is okay but I'll post how I call this function at the end. It's probably something stupid but I can't see it! /* update, insert

RE: [PHP] php-speed

2002-06-13 Thread Niklas Lampén
Embedding PHP in HTML, since I think HTML is ignored by php, just passed thru. Niklas -Original Message- From: Philipp Melab [mailto:[EMAIL PROTECTED]] Sent: 13. kesäkuuta 2002 14:55 To: [EMAIL PROTECTED] Subject: [PHP] php-speed I have a simple newbie question... Whats better (fast

[PHP] Re: Controlling CVS with PHP...

2002-06-13 Thread l0t3k
check out Chora by the folks at Horde.org . its the code that powers cvs.php.net "D Gibbs" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, I was wondering if any one had managed to controll CVS with php. > I'm wanting to add/update/remove/checkin/checkout

Re: [PHP] Table management insert/update/delete/search

2002-06-13 Thread José León Serna
José León Serna wrote: > Hello: > I'm looking for a script like phpmyAdmin, but much more simple, > targeted to a single database to offer management capabilities, > insert/update/delete/search, etc. Do you know of any? > > Best regards. > > Sorry, I meant a single 'table', instead a single '

RE: [PHP] php-speed

2002-06-13 Thread Niklas Lampén
On which part was I wrong? Printing HTML via PHP is slower than inserting PHP into HTML. Maybe we're just having communicational problems. :) English is not my native language, so I might have understood it wrong, but I understand embedding php opposite to echoing html. Am I understood now? ;)

[PHP] possible to add a "record number" to a query?

2002-06-13 Thread Jeff Field
I would like to have a column returned in a query that tells you which record I'm looking at? Sort of like an auto_increment? IOW, the query results would look like: record first last 1 johndoe 2 joe blow 3 carol fisher The table only has first and last, but

[PHP] goto

2002-06-13 Thread Stephen Brewster
I am wirting a code seperation engine for PHP, the idea of which is it will remove the need for me to have to build the majority of the websites at my company. The designers will be able to build the html in dreamweaver or similar and then insert custom tags into their code. The engine will parse

[PHP] Re: php-speed

2002-06-13 Thread Leon Mergen
"Philipp Melab" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > - embedding PHP in HTML > - or printing HTML via PHP With embedding PHP in HTML, do you mean using server side includes or do you mean by having a .php file and having a layout like this:

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Remy Dufour
Put reset($_POST) before foreach loop > I'm trying to loop through $_POST vars in a function, which I understand to > be an autoglobal associative array. Here's the code I'm using: > > foreach($_POST as $item => $value){ > echo "$item, $value"; > } > > However, I only get the first element of th

[PHP] Re: php-speed

2002-06-13 Thread Philipp Melab
Yes Leon Mergen wrote: > > "Philipp Melab" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> - embedding PHP in HTML >> - or printing HTML via PHP > > With embedding PHP in HTML, do you mean using server side includes or do > you mean by having a .php file

RE: [PHP] php-speed

2002-06-13 Thread Brian McGarvie
I believe it also depends on the quote types used... Place string/text/html code etc with in single quotes > ' < if the string contains no $var's to be parsed, and > " < if it does need to parse $var's. > -Original Message- > From: Niklas Lampén [mailto:[EMAIL PROTECTED]] > Sent: 13 Jun

RE: [PHP] php-speed

2002-06-13 Thread Niklas Lampén
I don't think so. The difference is (IMHO + the article linked below) if you use ...Foo... (faster) or Foo..."; ?> (slower) Niklas -Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED]] Sent: 13. kesäkuuta 2002 15:29 To: [EMAIL PROTECTED] Cc: Php-General Subject: RE: [PHP

[PHP] Re: php-speed

2002-06-13 Thread Philipp Melab
Yes, Ithought that embedding must be faster too. But I was confused because in nearly every PHP-Beginner Tutorial/Book I've seen the Hello-World Example looks like this: "; echo ""; echo "..."; echo ""; echo ""; echo "Hello World!"; echo ""; echo ""; ?> funny, isn't it?

[PHP] view source with opera

2002-06-13 Thread Angelo Marcos Rigo
Hi list I am using php on the company´s website that i work and now someone told me that you can view the php source with the opera browser he says he done it by himself . Anybody can tell me if it´s true or not ? or in wich conditions this can happen! ho

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Sear, Mick
I've tried this, but it's still doing the same thing. Is there something special about this particular variable that I need to know? I've tried it with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the function first. Put reset($_POST) before foreach loop > I'

Re: [PHP] view source with opera

2002-06-13 Thread Adam Voigt
Nope, he's lying. PHP is server side, a browser is well, browser side. So, no. The only possible way is if you had your PHP actually printing (by say an accidentally closed ?php>) which would cause it to be show, but since thats a programming mistake, thats not really a fault of the language. Ada

RE: [PHP] view source with opera

2002-06-13 Thread Christoph Starkmann
I'm quite sure that this won't work... The server isn't delivering the php source, so the client will not get the source code but only the resulting code the script generated. So IMHO this is a "hoax". > Hi list > I am using php on the company´s website that i work > and now someone

Re: [PHP] passing name / value pairs in URL

2002-06-13 Thread Stuart Dallas
Thursday, June 13, 2002, 1:37:03 AM, you wrote: > Until the recent version of PHP i've enjoyed being able to pass variables as > name/value pairs within my URL. this has been essential for accessing my > mysql database. here is an example of a url. Why can't you continue to enjoy it? > getAd.

Re: [PHP] view source with opera

2002-06-13 Thread Adam Voigt
Oh, one other possibility besides my previous statement, if PHP is not properly configured on the server hosting the .php pages, it probably would just pass the PHP right to the browser since it doesn't know it's supposed to execute the PHP block of code. Ofcourse, PHP wouldn't work anywhere if th

[PHP] Re: php-speed

2002-06-13 Thread Leon Mergen
"Philipp Melab" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes, Ithought that embedding must be faster too. But I was confused because > in nearly every PHP-Beginner Tutorial/Book I've seen the Hello-World > Example looks like this: > > echo ""; > echo ""

Re: [PHP] possible to add a "record number" to a query?

2002-06-13 Thread Jason Wong
On Thursday 13 June 2002 20:27, Jeff Field wrote: > I would like to have a column returned in a query that tells you which > record I'm looking at? Sort of like an auto_increment? IOW, the query > results would look like: > > record first last > > 1 johndoe > 2 joe blow

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Jason Wong
On Thursday 13 June 2002 21:16, Sear, Mick wrote: > I've tried this, but it's still doing the same thing. Is there something > special about this particular variable that I need to know? I've tried it > with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the > function first. >

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Remy Dufour
If you do this, it should work function foo() { global $_POST; reset($_POST); foreach($_POST as $item => $value){ echo "$item, $value"; } } Thats work for me. > I've tried this, but it's still doing the same thing. Is there something > special about this particular var

Re: [PHP] goto

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 1:22:07 PM, Stephen Brewster wrote: > HTML > > > > > > > > > > PHP > --- > if($type == 'LOOP') { >$sql = 'SELECT * FROM products'; >$result = mysql_query($sql, $db); >$record = $mysql_fetch_array($result, MYSQL_ASSOC);

Re: [PHP] php-speed

2002-06-13 Thread Stuart Dallas
Thursday, June 13, 2002, 2:09:23 PM, you wrote: > I don't think so. The difference is (IMHO + the article linked below) if > you use > ...Foo... (faster) > or > Foo..."; ?> (slower) Actually, Brian is right. PHP parses text contained within "s whereas it doesn't do so with text contained within

Re: [PHP] view source with opera

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 2:20:29 PM, you wrote: > I'm quite sure that this won't work... > The server isn't delivering the php source, so the client > will not get the source code but only the resulting code > the script generated. > So IMHO this is a "hoax". Unless your server has phps (sour

RE: [PHP] view source with opera

2002-06-13 Thread Christoph Starkmann
> > I'm quite sure that this won't work... > > The server isn't delivering the php source, so the client > > will not get the source code but only the resulting code > > the script generated. > > So IMHO this is a "hoax". > > Unless your server has phps (source view) enabled. If it has > then yo

Re: [PHP] view source with opera

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 2:49:56 PM, you wrote: >> > I'm quite sure that this won't work... >> > The server isn't delivering the php source, so the client >> > will not get the source code but only the resulting code >> > the script generated. >> > So IMHO this is a "hoax". >> >> Unless your

[PHP] Database Abstraction Suite

2002-06-13 Thread David Russell
Hi all I am busy developing a PHP DB application. I obviously want this to be as portable as possible - and then went to the Zend pages. I have looked at the DB abstraction Applications. There are five or so which have all been rated as a four dot (I presume out of 5). Does anyone have any ex

[PHP] next and previous buttons performing on a query

2002-06-13 Thread Wilbert Enserink
Hi all, I have this mySQL query giving me my result back. The info about the current db-record is showing. Now I want to display ' view next ' and ' view previous ' buttons on my website. which takes you to the same page but with the next record in the query result. Is there a clever way to d

RE: [PHP] possible to add a "record number" to a query?

2002-06-13 Thread Jeff Field
Yes, there is a particular reason. The actual query I do pulls information from two tables and has both ORDER BY and GROUP BY clauses. The "auto_increment" column (think of the query results as a table) will give me the "rank" of the results. I know how to manipulate the data in PHP to accompli

Re: [PHP] view source with opera

2002-06-13 Thread Dan Hardiker
In short I think what everyone is trying to say is: it depends on how your server is setup. If you host your own servers then you need to read up on how PHP works in the chain of command and how its configured. If not, then reading up on the whole request and deliver process of HTTP where a scrip

RE: [PHP] php-speed

2002-06-13 Thread Brian McGarvie
the best answer to this is that it's down to persona preferance as well... some people might find it easier to read/write code that is in a more 'traditional' layout which is where using " or ' would help. I personally use a mixture of all 3 'methods' of using php. While in-line is fastest i som

Re: [PHP] view source with opera

2002-06-13 Thread Dan Hardiker
>>> Unless your server has phps (source view) enabled. If it has >>> then you can see >>> the source of any file by using the extension .phps. > >> Awright! But then it would be possible with any browser... > > Unless I missed it, the OP never said it *only* happened in Opera. but unless we are a

Re: RES: [PHP] view source with opera

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 2:59:35 PM, you wrote: > yes the bad guy says it only happen in opera > i ask to show me how but give no response until now Let us know what he says. I think we'd all be interested. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] possible to add a "record number" to a query?

2002-06-13 Thread Chris Hewitt
Jeff, You don't tell us which database. If its Oracle then there is ROWID. Using some sort of record number is good for linking tables as it a primary/foreign key, but otherwise why would you want it? If you do not have such a field as this at present (and want one), you could always add one

RE: [PHP] Database Abstraction Suite

2002-06-13 Thread SP
Hi David I am using adodb for my database abstraction http://php.weblogs.com/adodb I got it up and running in no time. Just go through this manual http://php.weblogs.com/ADOdb_manual or this tutorial http://php.weblogs.com/adodb_tutorial. It has a RecordCount since some database don't return t

[PHP] Help! authorization question...

2002-06-13 Thread Robin Bouwhuis
Hello, I am new to PHP and trying to learn. I am trying a tutorial and this is the script. It is supposed to pop up a box requiring a username and pass. but all I get is 'Authorization Required' Any suggestions? I am running PHP3 and 4 and on an IIS server (it is just for testing, normally

[PHP] PCRE Problem

2002-06-13 Thread Erick Lee
$string = [b]Test[/b] I want to change it to $string = Test How?

Re: [PHP] next and previous buttons performing on a query

2002-06-13 Thread Chris Hewitt
Wilbert, Use the LIMIT tag in your select statement. You can also choose which matching record to start from. Another pure database question... HTH Chris Wilbert Enserink wrote: >Hi all, > > >I have this mySQL query giving me my result back. > >The info about the current db-record is showing

[PHP] Extracting Variables

2002-06-13 Thread Steve Buehler
I hope that someone will be kind enough to help me on this. I have some variables on a page that are dynamic. I can run this to view the variables (from a POST) for testing: Foreach($HTTP_POST_VARS as $key=>$value) echo("$key => $value"); and the results are: -results- team_number_1 =>

RE: [PHP] next and previous buttons performing on a query

2002-06-13 Thread Brian McGarvie
you need to keep track of the last record and number to display to work out the values for limit. > -Original Message- > From: Chris Hewitt [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 3:32 PM > To: Wilbert Enserink > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] next and previous button

RE: [PHP] PCRE Problem

2002-06-13 Thread Brian McGarvie
$string = '[b]Test[/b]'; $bbcode_string = str_replace("<", "[", str_replace(">", "]", $string)); or look into regular expressions... > -Original Message- > From: Erick Lee [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 3:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PCRE Problem > >

[PHP] security advice...

2002-06-13 Thread Jas
I am wondering if anyone out there knows of a good and quick way to test the security of a site for multiple vulnerabilities; cross site scripting, etc. Of course any examples of secure coding techniques might be a better question to ask, so if anyone knows of some good resources for this please l

RE: [PHP] Newbie problem with POST vars

2002-06-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Remy Dufour [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 14:34 > > If you do this, it should work > > function foo() > { > global $_POST; That's unnecessary -- the $_ arrays are automatically global ("superglobal"). > reset($_POST); That's unnec

Re: [PHP] Help! authorization question...

2002-06-13 Thread Julie Meloni
RB> I am new to PHP and trying to learn. I am trying a tutorial and this is the RB> script. It is supposed to pop up a box requiring a username and pass. but RB> all I get is If you are using the CGI version of PHP, HTTP-based authentication will not work. That is stated in the tutorial. -

[PHP] Instantiating Objects ?

2002-06-13 Thread Kevin Caporaso
Is it possible to instantiate an object from one of my c++ shared libraries (goo.so) and then call methods on that object? How efficient is PHP's way of doing it? (if possible) Also, can I pass things like the querystring and form data into that instantiated object? Thanks for any response! $Kev

[PHP] $HTTP_USER_AGENT

2002-06-13 Thread Webmaster do Aborla.net
Hello, Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the value appears. why this??? Thanking in advance, Nuno Lopes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Extracting Variables

2002-06-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 15:54 > > I hope that someone will be kind enough to help me on this. > I want to do something like the following, but it does not work: > testinput(); > function testinput(){ > GLOBAL $HTTP_POST

Re: [PHP] $HTTP_USER_AGENT

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 4:36:29 PM, you wrote: > Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the > value appears. why this??? Try $_SERVER['HTTP_USER_AGENT']. If that works, read http://www.php.net/manual/en/language.variables.predefined.php. -- Stuart -- PHP

[PHP] PHP with No Web Server?

2002-06-13 Thread Kevin Caporaso
In other words.. Can PHP serve as the Web Server or is another web server required to handle the socket connections, etc.? Thanks for any response. $Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IE 6 is Doing Something Weird

2002-06-13 Thread Liam Gibbs
It seems I can't set cookies in IE 6. Well, I haven't tried myself, as I'm a little bit wary of installing this over my current version of IE (and won't be able to downgrade afterward, thanks to Microsoft logic). Reported from a couple of the users on my site who use IE 6, they can't log in, pres

RE: [PHP] PHP with No Web Server?

2002-06-13 Thread Brian McGarvie
PHP is an application that generates HTML code similar to Perl. Which is what is served to the Client(Browser). Therefore no, you need to use IIS/Apache/other webserver in order to use PHP... Unless you are using it as a scripting language for shell scripts... or using GTK to create graphical

Re: [PHP] PHP with No Web Server?

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 5:00:23 PM, you wrote: > In other words.. Can PHP serve as the Web Server or is another web server > required to handle the socket connections, etc.? PHP can serve as a web server, but you would need to write (find) the code to do it - I'm sure there is plenty out ther

[PHP] Re: IE 6 is Doing Something Weird

2002-06-13 Thread Kevin Caporaso
My experience with cookies on IE 6.0 are that if there is no privacy policy cookies will not get installed. They need to specifically override cookie handling in their browser. Not sure if they have done that already or not but it's under Tools, Internet Options, Privacy(tab), Advanced button. Tha

[PHP] PCRE question

2002-06-13 Thread Batch
I am trying to write a small piece of code that looks for repeating digits or symbols...such as $$, %%, 99 Here is what I have come up with...although I dont think this is the complete Regex. $pass = "test99ing"; if (preg_match("/[^a-zA-Z]{2,}/",$pass, $match)){ echo("You cant have repeating sy

Re: [PHP] PHP with No Web Server?

2002-06-13 Thread Clay Loveless
Here's a cool little PHP app ... Requires PHP to be compiled as a standalone CGI with --enable-pcntl as a config option. http://nanoweb.si.kz/ Nanoweb is a modular http server written in PHP 4.2. Nanoweb's main features are : *Decent performance *HTTP/1.1 compliant *CGI support *

[PHP] Value of variable with name stored in another variable

2002-06-13 Thread Daniele Baroncelli
How can I access the value of a variable whose name is stored in another variable? Example: $field="artist"; How can I access the value of $artist ? Thanks Daniele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 17:27 > > How can I access the value of a variable whose name is stored > in another > variable? > > Example: > $field="artist"; > > How can I access the value of $artist ? $$field Cheers!

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread John Holmes
Echo $$field; --John Holmes... > -Original Message- > From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 12:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Value of variable with name stored in another variable > > How can I access the value of a variable

RE: [PHP] PHP with No Web Server?

2002-06-13 Thread John Holmes
> In other words.. Can PHP serve as the Web Server or is another web server > required to handle the socket connections, etc.? > > Thanks for any response. > $Kevin Warning: Undefined variable $Kevin You can run PHP on the command line without a web server, but it doesn't do much good. For anyo

RE: [PHP] Re: how can i insert date

2002-06-13 Thread John Holmes
INSERT INTO table (date_column) VALUES ('$insert'); If you're using a varchar() type column, then that'll work. If it's a DATE/DATETIME/etc... column in your DB, then you have to format it in the DB format... What DB are you using? ---John Holmes... > -Original Message- > From: Cirstoi

RE: [PHP] Varible Varibles

2002-06-13 Thread John Holmes
I think you're missing the point of variable variables. After the first use of $$a, you now have a variable called $foo with a value of 'bar'. So your echo would be echo "$a $foo"; I kind of consider variable variables the poor mans array. Most any solution you think of with variable variable

RE: [PHP] possible to add a "record number" to a query?

2002-06-13 Thread John Holmes
You can do it with two queries. SELECT @a:=0; SELECT @a:=@a+1, * FROM table; This would be better taken to a MySQL list, though. Actually, you never said what DB you were using. This works in MySQL. ---John Holmes... > -Original Message- > From: Jeff Field [mailto:[EMAIL PROTECTED]] >

[PHP] Printer friendly version script

2002-06-13 Thread Angelo Marcos Rigo
Hi Anybody knows a good printer friendly version php script thank´s in advance Ângelo Marcos Rigo Webmaster Colégio Anchieta http://www.colegioanchieta.g12.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible to add a "record number" to a query?

2002-06-13 Thread John Holmes
You can use SET @a=0; Instead of the first SELECT, too. ---John Holmes... > -Original Message- > From: John Holmes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 12:44 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] possible to add a "record number" to a

RE: [PHP] Newbie problem with POST vars

2002-06-13 Thread Sear, Mick
print_r($_POST); shows all the elements in the array as I expect them to be. That foreach loop is only picking the first element, though. At least it's reassured me that I'm not going mad, though, so thanks for that. Mick > I've tried this, but it's still doing the same thing. Is there somethi

RE: [PHP] PHP with No Web Server?

2002-06-13 Thread Brian McGarvie
Would that work? Surley it'd not be a particularly efficiant webserver if written in PHP? Would be interesting to try.. I had a quick look for such code but could'nt see any... perhaps a PHP-GTK app could work I suppose... if you were that way inclined! :) > -Original Message- > From:

RE: [PHP] Varible Varibles

2002-06-13 Thread Pushkar Pradhan
I'm trying to use variable variables to work on arrays: $forest = array("a", "b", "c", ...); $layer[$l]= "forest"; Now I want to access all array members of $forest using $$layer: e.g. for($c = 0; $c < $$layer[$l]; $l++) { echo $$layer[$l][$c]; } But this doesn't work, gives syntax error, So

[PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Jason Soza
Just curious... If I have a site that stores information about people in a database, including e-mail addresses, and that information is only viewable when called via a user-specific variable, i.e. their alias, can spambots still harvest those e-mail addresses? So for instance I have a page c

Re[2]: [PHP] PHP with No Web Server?

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 5:18:31 PM, you wrote: > Would that work? > Surley it'd not be a particularly efficiant webserver if written in PHP? > Would be interesting to try.. I had a quick look for such code but could'nt see >any... perhaps a PHP-GTK app could work I suppose... if you were

[PHP] string to array?

2002-06-13 Thread Leston Drake
Hi all, I have a string something like "10.2.3" I want to be able to use the "." as a delimiter to reference the elements (10, 2, and 3). My thought was to create an array, using "." as the delimiter. Is there a function that will create an array out of a string, using a delimiter you specify?

Re: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Analysis & Solutions
On Thu, Jun 13, 2002 at 09:10:35AM -0800, Jason Soza wrote: > > users.php?alias=johnsmith - I guess my main question is, can spambots > follow those types of links, get the resulting page, and harvest the > address off that? No reason why not. > Is there any way to combat this? Any PHP scri

Re: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 6:10:35 PM, you wrote: > If I have a site that stores information about people in a database, > including e-mail addresses, and that information is only viewable when > called via a user-specific variable, i.e. their alias, can spambots > still harvest those e-mail

Re: [PHP] string to array?

2002-06-13 Thread Analysis & Solutions
On Thu, Jun 13, 2002 at 11:17:50AM -0600, Leston Drake wrote: > > I have a string something like "10.2.3" > I want to be able to use the "." as a delimiter to reference the elements > (10, 2, and 3). http://www.php.net/manual/en/function.explode.php Enjoy, --Dan -- PHP classe

Re: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Ashley M. Kirchner
Analysis & Solutions wrote: > If you don't need the address to be hyperlinkable, you can put the user, @ > and domain in different table cells. Or even put each letter in a > separate cell. Could even set the border, cellspacing and cellpadding to > 0 to make it not look like a table. Assu

Re: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Jason Soza
So basically, to keep the address away from bots, keep it away from normal users. Okay, so something like this would be more effective: Have a form with a hidden input of the user's alias, and an input of "E- mail me!", that form posts to an email.php script that uses the user's alias to pull t

Re[2]: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 6:24:17 PM, you wrote: > Analysis & Solutions wrote: >> If you don't need the address to be hyperlinkable, you can put the user, @ >> and domain in different table cells. Or even put each letter in a >> separate cell. Could even set the border, cellspacing and cellp

Re: [PHP] Varible Varibles

2002-06-13 Thread Jason Wong
On Friday 14 June 2002 00:38, John Holmes wrote: > I think you're missing the point of variable variables. Quite :-) > I kind of consider variable variables the poor mans array. Most any > solution you think of with variable variables could be better solved by > using arrays. Actually variable

Re[2]: [PHP] Spam Bots/E-mail Addys

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 6:30:11 PM, you wrote: > So basically, to keep the address away from bots, keep it away from > normal users. Okay, so something like this would be more effective: > Have a form with a hidden input of the user's alias, and an input of "E- > mail me!", that form posts

[PHP] [arrays] reading from a form.

2002-06-13 Thread Àlex Camps
I have a example.html --- function add() { var res=0; for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); example.result.value=res; } --- and show.php --- PHP return the error: Notic

Re: [PHP] [arrays] reading from a form.

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 6:38:10 PM, you wrote: > I have a example.html > --- > > function add() > { > var res=0; > for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); > example.result.value=res; > } > > > > > > > > > > > > -

  1   2   3   >