[PHP] PHP/MySQL difficulties on WindowsXP

2004-04-08 Thread bronto
Hello; We are having a miserable time with MySQL on a Windows/IIS server with PHP. Here's the version numbers: MySQL 3.23.58-nt PHP 4.35 Windows XP (although we previously experienced the same problems w/ Server 2000), 1gb RAM The site is for academics to submit scientific "papers" (data) for t

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-08 Thread Jason Giangrande
Jason Giangrande wrote: I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing. On first page: $auth = ne

[PHP] Beginner Question

2004-04-08 Thread rob
I am a newcomer to PHP and I am looking for an intsallation package similar to to FoxPro for MAC OSX 10.2.(Ie intsall appache, MY SQL and Latest version of PHP) Does anyone know where I may find one? Thanks RB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] smarty

2004-04-08 Thread Pablo Gosse
"Who the fuck you tink you're talkin' to, huh! Whatta you think I am? Your fuckin' slave! You dont tell me what to do, Sosa. Youre shit! You want a war, you got it. I'll take you to war!" Shame on you for misquoting Scarface. G'nite, "Tony". Next time you're going to quote a classic please get

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
electroteque wrote: May i ask what the advantage of storing objects in session is ? Does it cause overhead ? Like should i store the most common classes like the db and auth class in a session ? The advantage of storing an object is to keep it's properties. This way you can use values that have a

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread John W. Holmes
electroteque wrote: May i ask what the advantage of storing objects in session is ? Does it cause overhead ? Like should i store the most common classes like the db and auth class in a session ? No. A good time for storing an _object_ in the session is when the object contains mostly data. Restori

RE: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread electroteque
May i ask what the advantage of storing objects in session is ? Does it cause overhead ? Like should i store the most common classes like the db and auth class in a session ? -Original Message- From: Jason Giangrande [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:21 PM To: [EMAIL

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
Jason Wong wrote: On Friday 09 April 2004 11:07, Jason Giangrande wrote: Jason Wong wrote: What does the php error have to say about it? php error? I'm sorry but I don't know what you are talking about. Sorry, I meant to say "php error log". You should ALWAYS enable full error reporting. And

[PHP] [Newbie Guide] For the benefit of new members

2004-04-08 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
JWH> That's what $_FILES['whatever']['size'] is for. Although if the JWH> file is too large, like over the php.ini max file size setting, JWH> I don't think you get to control what happens. That's what I JWH> thought was being discussed. That's exactly what I was asking about. So, there's no way t

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Wong
On Friday 09 April 2004 11:07, Jason Giangrande wrote: > Jason Wong wrote: > > What does the php error have to say about it? > > php error? I'm sorry but I don't know what you are talking about. Sorry, I meant to say "php error log". You should ALWAYS enable full error reporting. And whenever y

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread John W. Holmes
Richard Davey wrote: BR> That's what I was asking about, actually. How do I capture the filesize BR> without PHP throwing an error about the file being too big? Do a filesize() on the tmp file after upload? If it exceeds whatever limit you think is fair, error nicely. Your limit and the one impos

Re: [PHP] smarty

2004-04-08 Thread Curt Zirzow
* Thus wrote Richard Davey ([EMAIL PROTECTED]): > Hello Antonio, > > Friday, April 9, 2004, 12:21:15 AM, you wrote: > > AM> "Who the you tink you're talkin' to, huh! Whatta you > (etc) > > Dear God, who unlocked the monkey cage? Monkey's can type better than that. Curt -- "I used to thi

[PHP] self referencing links?

2004-04-08 Thread Andy B
hi... i have a page called ViewEvents.php. at the top of the page and at the bottom of the page there is a bar with links on them jan-dec and view all. all 13 links are supposed to call the same page(ViewEvents.php) each link with a different query string. for example: jan=ViewEvents.php?request_m

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
Jason Wong wrote: What does the php error have to say about it? php error? I'm sorry but I don't know what you are talking about. The only error I get is that a call to a member function on a non-object. Here's the error (path has been changed): Fatal error: Call to a member function on a non-

Re[2]: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Richard Davey
Hello Ben, Friday, April 9, 2004, 3:54:44 AM, you wrote: BR> That's what I was asking about, actually. How do I capture the filesize BR> without PHP throwing an error about the file being too big? Do a filesize() on the tmp file after upload? If it exceeds whatever limit you think is fair, erro

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
RD> Just let them upload the file, check the size when it's arrived and RD> say "sorry, you just wasted X minutes of your life uploading that, RD> try again". That's what I was asking about, actually. How do I capture the filesize without PHP throwing an error about the file being too big? -- Re

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Wong
On Friday 09 April 2004 02:10, Jason Giangrande wrote: > When I var_dump() $_SESSION it appears to be a string representation of > the object. However, when I try to unserialize() it and store it in > $auth the value is bool(false) and not an object. What does the php error have to say about it?

Re[2]: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Richard Davey
Hello Ben, Friday, April 9, 2004, 3:36:04 AM, you wrote: BR> Well, is there actually a way to do this or a way to check the filesize BR> and send a nice message to the user that the file is over the BR> limit--other than just some error being thrown? Not until it gets to the server, no. JavaScr

Re: [PHP] upgrade questions?

2004-04-08 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 09 Apr 2004 02:15, Wikie wrote: > How to upgrade php form version 4.2.2 to 4.3.5?? > Thanks Why, that depends. ;) If your using a distro-based OS (say Red Hat Linux) fetch the RPM's using up2date (or download them from ftp.redhat.com). It

Re[2]: [PHP] smarty

2004-04-08 Thread Richard Davey
Hello Antonio, Friday, April 9, 2004, 12:21:15 AM, you wrote: AM> "Who the you tink you're talkin' to, huh! Whatta you (etc) Dear God, who unlocked the monkey cage? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
JWH> I think the intent is that the browser would catch files that are JWH> too large before they actually have to be uploaded. I don't know JWH> that any browsers actually support this, though. Well, is there actually a way to do this or a way to check the filesize and send a nice message to the

RE: [PHP] smarty

2004-04-08 Thread PHP Email List
> From: Antonio Montana [mailto:[EMAIL PROTECTED] > Subject: Re: [PHP] smarty > "Who the fuck you tink you're talkin' to, huh! Tink? DRINKS ARE ON THE HOUSE!! LOL > You dont tell me what to do, Sosa. Sammy Sosa? > You want a war, you got it. Untraceable IP address - $145.00 Unbreakable Firewa

[PHP] upgrade questions?

2004-04-08 Thread Wikie
How to upgrade php form version 4.2.2 to 4.3.5?? Thanks

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-08 Thread Jochem Maas
Chris de Vidal wrote: Jochem Maas said: 1. 'Template Engine' - you can justifyably call PHP a template engine Correct. Seems that Smarty is, for the most part, redundant (see my last post called "PHP makes a great templating engine (Was: smarty)"). I was not intending to pronounce Smarty redun

Re: [PHP] Form params not read

2004-04-08 Thread John W. Holmes
Ash.. wrote: Hello, What I am doing is very simple. I have a form in register.php with several textboxes and stuff. On submit, the doRegister.php file is invoked. Now, in that file, I am not able to successfully retrieve the parameters filled in the forms (which I need to use to run a db query.) R

[PHP] Form params not read

2004-04-08 Thread Ash..
Hello, What I am doing is very simple. I have a form in register.php with several textboxes and stuff. On submit, the doRegister.php file is invoked. Now, in that file, I am not able to successfully retrieve the parameters filled in the forms (which I need to use to run a db query.) I checked all

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread John W. Holmes
Ben Ramsey wrote: I was reading about this here: http://us3.php.net/manual/en/features.file-upload.php It says: But you should add MAX_FILE_SIZE anyway as it saves users the trouble to wait for a big file being transferred only to find out that it was too big afterwards. So, I decided to ad

Re: [PHP] smarty

2004-04-08 Thread Antonio Montana
"Who the fuck you tink you're talkin' to, huh! Whatta you think I am? Your fuckin' slave! You dont tell me what to do, Sosa. Youre shit! You want a war, you got it. I'll take you to war!" http://www.youdontknowwhoiam.org/lol.html "John W. Holmes" <[EMAIL PROTECTED]> wrote: Antonio M wrote:

[PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
I was reading about this here: http://us3.php.net/manual/en/features.file-upload.php It says: But you should add MAX_FILE_SIZE anyway as it saves users the trouble to wait for a big file being transferred only to find out that it was too big afterwards. So, I decided to add to my form. It

Re: [PHP] PHP - Basic Auth - Cpanel

2004-04-08 Thread Ryan A
> > My questions: > > How do I know where to send the data? (eg: which is the authenticating > > file?) > > Do I pass it as a GET or a POST or what? URL encode? > > You need to tell the browser to use the log in credentials, this is done > by redirecting the browser to http://username:[EMAIL PROTEC

Re: [PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Ryan A
I use two ways of doing this. 1. ( As already pointed out ) don't display your email address at all but have an online form. 2. Use an image with a little "noise" in the background (idea from CAPTCHA), its just not worth it to write a program that "sees" an email address to harvest it. This soluti

Re: [PHP] (new question on this) http referer

2004-04-08 Thread John W. Holmes
Richard Davey wrote: Hello Robert, Thursday, April 8, 2004, 7:13:27 PM, you wrote: RC> Aaah ok. That makes more sense to me :) Sorry was confused by the use of RC> the word redirect. Thought you were redirecting the user to an alternate RC> script with the reposted data. I'm not sure I understan

Re: [PHP] smarty

2004-04-08 Thread John W. Holmes
Antonio M wrote: So say good night to the bad guy...cause it's the last time youre gonna see a bad guy like me. Good night. You're drank too much tonight, anyhow. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – ww

[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-08 Thread Ben Ramsey
So, I found a solution to my problem. I still do not know what was causing the PHP Access Violation errors, but I have an idea, which I will relate in this message. As many suggested, I have pared down my mail sending class by rewriting it down to about 250 lines of code. Previously, the PEAR

Re: [PHP] PHP - Basic Auth - Cpanel

2004-04-08 Thread Marek Kilimajer
Ryan A wrote: Hi, A client is selling hosting from his site, and _his_ clients get their own control panel from CPanel, for the sake of understanding I will name my client A and his client(s) B. When B needs to log into his cpanel he basicially goes to his a url like this: http://hisSite.com/cpanel

Re: [PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

2004-04-08 Thread Curt Zirzow
* Thus wrote Galkov Vladimir ([EMAIL PROTECTED]): > Two tables have diferent standarts to hold IP adresses: > > first: > 045.012.001.002 > 003.000.123.231 > 123.230.101.080 > > second: > 45.12.1.2 > 3.0.123.231 > 123.230.101.80 > > I have to compare the data and stack there .. my fantasy can't h

Re: [PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Ben Ramsey
CZ> It all depends on the persons dedication on finding them. I usually just convert them to HTML entities with a function like this: function spamProtect ($address) { $address = str_replace("@", "@", $address); $address = str_replace(".", ".", $address); $address = str_replace(":", "

Re: [PHP] http referrer

2004-04-08 Thread Matthew Vos
$HTTP_REFERER Although not all browsers send it properly (if at all). Don't rely on it. Matt On Thu, 2004-04-08 at 12:22, Chris Bruce wrote: > I apologize for my ignorance, but I am trying to find a way to grab the > referring url. I can't seem to find the environment variable to do > this. Do

Re: [PHP] php + lynx + grep

2004-04-08 Thread Matthew Vos
Why not try cURL? Not the cURL functions included in PHP, but the actual binary installed with most linux distributions. Even better would be to actually use the cURL functions in PHP, but whatever you find easier. Matt On Tue, 2004-04-06 at 08:41, Brian L. Ollom wrote: > lynx --source http://wea

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread gohaku
On Apr 8, 2004, at 2:40 PM, Shaun wrote: Thanks for your reply Michal, but the regular expression still seems to reject the number... Just out of curiosity, Have you tried " if(stripslashes(htmlentities($_POST[mobile_number]) ) != ") ? -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Curt Zirzow
* Thus wrote Gabe ([EMAIL PROTECTED]): > If you're using ADOdb, what is the name, purpose, and function of this > operator? > > -> > > e.g. $conn->Connect(false, 'scott', 'tiger', $oraname); The $conn variable is a adodb object that has methods and properties associated with it. The -> tells ph

[PHP] Re: PHP vs. Outlook problem

2004-04-08 Thread Justin Patrin
R? wrote: Dear all , I got a problem to send a confirmation mail from my Website to auto reply every new registrator . Due to the ISP mail server resist any Web Mail function but personal mailing permitted only through Outlook . Since I used floating IP and asked another dynamic DNS server to po

Re: [PHP] PHP vs. Outlook problem

2004-04-08 Thread Mark
--- ¹A©°®E¤ô²£¸ê°Tºô <[EMAIL PROTECTED]> wrote: > Dear all , > > I got a problem to send a confirmation mail from my Website to auto > reply > every new registrator . Due to the ISP mail server resist any Web > Mail > function but personal mailing permitted only through Outlook . > > Since I use

Re: [PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Curt Zirzow
* Thus wrote Gerben ([EMAIL PROTECTED]): > just google for it. there are several PHP classes that do that for you. > try something like: > onclick="location.href='mai'+'lto:'+'mail'+unescape('%40')+'domain.com'; > return false;">mail@domain.com Only problem is anything obscured can pretty much be

Re: [PHP] Regular Expression Help

2004-04-08 Thread Michal Migurski
>I want to extract from a large number of html files everything between >the following specified comments, including the comments themselves: > >... >And the regular expression I've got is > >'/[(.+)/Uis' ...which gets you this (I added the parentheses in the middle so you could also get the stuf

[PHP] Regular Expressions with symmetrical contents

2004-04-08 Thread Michal Migurski
Hi, I'm trying to figure out an appropriate strategy for handling regexps where I need to parse input like the following: "{ {...} {...} (part I want to match) } more..." ...The catch being that thepart I want to match can contain escaped curly braces, like so: "\{" and "\}" It's not eno

[PHP] Regular Expression Help

2004-04-08 Thread Pablo Gosse
Hi folks. I'm having a little trouble with a regular expression and I'm hoping someone can point out what I'm doing wrong. I want to extract from a large number of html files everything between the following specified comments, including the comments themselves: ... The string I'm testing the e

[PHP] test

2004-04-08 Thread dpgirago
test post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Michal Migurski
>but the regular expression still seems to reject the number... Can you provide an example of numbers it rejects? My answer was based on the simple fact that you were testing for numbers that matched, and returning a rejection based on that. The regexp is simple enough -- some examples of input w

[PHP] webcam redirection/tunnel question

2004-04-08 Thread Jeremy Davis
I have a webcam that travels through various wireless links. It runs a webserver and can be viewed from anywhere. A lot of people watch this webcam, its out in a woods monitoring wildlife. The problem is that eats up a lot of our available bandwidth on the wireless network. Is there a way you c

Re: [PHP] smarty

2004-04-08 Thread Justin Patrin
Robert Cummings wrote: On Wed, 2004-04-07 at 21:35, Kelly Hallman wrote: Apr 8 at 10:26am, Justin French wrote: PHP itself is a great templating language :) '> Uhhh, yeah--that's not a templating, that's called spaghetti code :) You get the concept. Smarty, as you know, basically takes a

RE: [PHP] smarty

2004-04-08 Thread Chris W. Parker
Antonio M on Thursday, April 08, 2004 12:57 PM said: > You need people like me so you can point your fingers and say "hey > theres the bad guy!" So what does that make you? Good guys? Don't kid > yourselves. You're no better than me. You just know how to hide -- > an

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Shaun
Thanks for your reply, but the number cannot be out side the UK or contain spaces, leading zeros, brackets or dashes "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you should also be considering spaces, leading zeros, brackets, dashes & > international notation. > >

RE: [PHP] smarty

2004-04-08 Thread Antonio M
You need people like me so you can point your fingers and say "hey theres the bad guy!" So what does that make you? Good guys? Don't kid yourselves. You're no better than me. You just know how to hide -- and how to lie. Me I don't have that problem..Me I always tell the truth--even when I lie.

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-08 Thread Chris de Vidal
Jochem Maas said: > 1. 'Template Engine' - you can justifyably call PHP a template engine Correct. Seems that Smarty is, for the most part, redundant (see my last post called "PHP makes a great templating engine (Was: smarty)"). > but I think calling Smarty a template engine confuses the issue -

Re: [PHP] smarty - php as template

2004-04-08 Thread Amanda Hemmerich
Can anyone direct me to a good resource for learning to use PHP as a templating language along with plenty of examples? I prefer books, but web is fine, too. Thanks so much! Amanda On Thu, 8 Apr 2004, Justin French wrote: > On 07/04/2004, at 1:33 AM, Angelo Zanetti wrote: > > > hi all has anyo

RE: [PHP] PHP - Basic Auth - Cpanel

2004-04-08 Thread Aaron Wolski
Hi Ryan, This question would likely be best served at the following sites: http://forums.cpanel.net http://forums.servermatrix.com www.webhostingtalk.com Happy hunting :) HTH Aaron > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: April 8, 2004 3:26 PM > To: [EMA

[PHP] unicode and php

2004-04-08 Thread Kathleen Ballard
I am trying to translate a site to Simplified Chinese. I was told the pages needed to be saved as unicode files. However, the unicode files do not process as php on my host server. ie. if you view source on a page saved as unicode, all the php code is there. My hosting company says that unicode

[PHP] PHP - Basic Auth - Cpanel

2004-04-08 Thread Ryan A
Hi, A client is selling hosting from his site, and _his_ clients get their own control panel from CPanel, for the sake of understanding I will name my client A and his client(s) B. When B needs to log into his cpanel he basicially goes to his a url like this: http://hisSite.com/cpanel/ then the Ba

[PHP] PHP makes a great templating engine (Was: smarty)

2004-04-08 Thread Chris de Vidal
Justin French said: > PHP itself is a great templating language :) I've been studying on this myself. For some reason I didn't see this (is it not explained well enough in books/websites/articles? Dunno.) I used to code like so (shorthand), mixing business logic with presentation: Name: Add

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Gabe
Yeah, I looked at that page, but didn't see any specifications for it. I guess I'll probably just have to use the tried and true method of "trial and error". Thanks Matt. "Matt Matijevich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > e.g. $conn->Connect(false, 'scott',

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Jochem Maas
you should also be considering spaces, leading zeros, brackets, dashes & international notation. /^(((\+|00)[- ]?[0-9]{2,3}[- ]?(\(0\))?[- ]?[1-9]{1}[0-9]{1,})|(0[1-9]{1}[0-9]{1,}))[- ]?(([0-9]{7,})|([0-9]{3}[ -]{1}[0-9]{4}))$/ line-wrapping is unintentional, no garantees as to how good it is.

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Gabe
I tried the URL you supplied but I didn't see any reference to the operator in question. I hope I'm not blind "Alex Hogan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > If you're using ADOdb, what is the name, purpose, and function of this > > operator? > > > > -> > > > > e

Re: [PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

2004-04-08 Thread Roger B.A. Klorese
Galkov Vladimir wrote: Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80 Are you aware that these don't mean the same thing? Leading zeroes mean an IP address quad is in octal. If you

[PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Gerben
just google for it. there are several PHP classes that do that for you. try something like: mail@domain.com (I didn't check it) I hope you can read it. "News" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looking for opinions before I start using this to hide the email address on

RE: [PHP] ADOdb Operator question

2004-04-08 Thread Alex Hogan
> If you're using ADOdb, what is the name, purpose, and function of this > operator? > > -> > > e.g. $conn->Connect(false, 'scott', 'tiger', $oraname); > > I can follow some tutorials, but I'm just not sure when I need to use it > and > when I don't. This is an explanation that's in the manual.

[PHP] [Fwd: Re: [PHP-DEV] null / unset / isset ?]

2004-04-08 Thread Jochem Maas
reposted on this list as requested, an initial reply is include: Original Message Delivered-To: [EMAIL PROTECTED] To make matters worse, "$x[5] = NULL;" causes array_key_exists to return true for 5 even though isset($x[5]) is false and even worse, "unset" is the function you use

[PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?

2004-04-08 Thread Galkov Vladimir
Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80 I have to compare the data and stack there .. my fantasy can't help me write regular expresion to parse first format into second or second i

Re: [PHP] ADOdb Operator question

2004-04-08 Thread Matt Matijevich
[snip] e.g. $conn->Connect(false, 'scott', 'tiger', $oraname); [/snip] http://www.php.net/oop will give you some help. I am not even sure if I can explain it correctly. I believe you would say use -> to call object methods and -> to get/set the class variables. I am sure someone can give a bett

[PHP] Smarty Summary was Re: [PHP] smarty

2004-04-08 Thread Jochem Maas
I have been following this thread closely and thought I'd summarize a few points: 1. 'Template Engine' - you can justifyably call PHP a template engine, but I think calling Smarty a template engine confuses the issue - it would be clearer call it something like 'Presentation Component' which e

[PHP] &^%$! Download "accelerators"

2004-04-08 Thread Brian Dunning
I've been using the following code for some time to deliver electronic downloads of purchased software products - header('Content-Type: '.$file_row['content_type']); header('Content-Disposition: filename="'.$file_row["filename"].'"'); $size = filesize('../../store/files/'.$file_row['filenam

[PHP] ADOdb Operator question

2004-04-08 Thread Gabe
If you're using ADOdb, what is the name, purpose, and function of this operator? -> e.g. $conn->Connect(false, 'scott', 'tiger', $oraname); I can follow some tutorials, but I'm just not sure when I need to use it and when I don't. Thanks -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Shaun
"Michal Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >I am trying to create a regular expression for a mobile phone number. The > >number must be 12 digits long(0-9) and begin with 447 and have no spaces. > >So far I have come up with this but it keeps telling me the num

Re: Re[6]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 14:19, Richard Davey wrote: > Hello Robert, > > Thursday, April 8, 2004, 7:13:27 PM, you wrote: > > RC> Aaah ok. That makes more sense to me :) Sorry was confused by the use of > RC> the word redirect. Thought you were redirecting the user to an alternate > RC> script with t

Re[6]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 7:13:27 PM, you wrote: RC> Aaah ok. That makes more sense to me :) Sorry was confused by the use of RC> the word redirect. Thought you were redirecting the user to an alternate RC> script with the reposted data. I'm not sure I understand how this is RC> more

Re: Re[4]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 14:07, Richard Davey wrote: > Hello Robert, > > Thursday, April 8, 2004, 7:04:24 PM, you wrote: > > RC> I don't think this works in general. For instance some ISPs can have the > RC> user's IP change between page requests (incuding redirects). AOL is an > RC> example of such

[PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing. On first page: $auth = new Class(); session_start

Re[4]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 7:04:24 PM, you wrote: RC> I don't think this works in general. For instance some ISPs can have the RC> user's IP change between page requests (incuding redirects). AOL is an RC> example of such and ISP. That doesn't make any difference in this instance. s

Re: Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 13:54, Richard Davey wrote: > Hello Pablo, > > Thursday, April 8, 2004, 6:32:06 PM, you wrote: > > PG> At any rate, if you're relying on HTTP_REFERER to make sure a script is > PG> being called from a certain location, I don't think it's very reliable. > > PG> Does anyone h

[PHP] Pinging an IP without using exec or system

2004-04-08 Thread Micheal Isaacson
I am running scripts on a host that does not allow arbatrary commands to run via exec() or system(). However, I need to be able to test and see if an IP is active, basically ping it. I have only been able to find example scripts that use exec ot system to do the ping. Is there a way I can do a pi

[PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Micheal Isaacson
Actually, a robot will read the html it generates, so this won't really help. However, if you store your adresses as character codes ( ie a space is %20) and not just text, most robots have a hard time reading them. "News" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looking for

Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Pablo, Thursday, April 8, 2004, 6:32:06 PM, you wrote: PG> At any rate, if you're relying on HTTP_REFERER to make sure a script is PG> being called from a certain location, I don't think it's very reliable. PG> Does anyone have any ideas as to a workaround for this? There are probably bet

Re: [PHP] Hiding email address from Robots ??

2004-04-08 Thread Jason Giangrande
news wrote: Looking for opinions before I start using this to hide the email address on a page $nx = "username"; $sx = "domain"; $mx = "[EMAIL PROTECTED]"; Then mailto: Hopefully a Robot would read the address as the result of $mx, which is totally useless - but it seems too easy. Perhaps I'm miss

Re: [PHP] PHP based Voice Chat Module

2004-04-08 Thread Pushpinder Singh
There are versions out there but they r for windoze only /// I was looking for Mac / Open Source implementations. thanks On Wednesday, April 7, 2004, at 07:15 PM, DvDmanDT wrote: Hmm.. I'm pretty sure you can get Flash for Mac.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.c

[PHP] Hiding email address from Robots ??

2004-04-08 Thread news
Looking for opinions before I start using this to hide the email address on a page $nx = "username"; $sx = "domain"; $mx = "[EMAIL PROTECTED]"; Then mailto: Hopefully a Robot would read the address as the result of $mx, which is totally useless - but it seems too easy. -- PHP General Mailing L

RE: [PHP] (new question on this) http referer

2004-04-08 Thread Pablo Gosse
The referrer is sent by the referring machine. If that machine isn't setting it, you can't get it. If memory serves, I think I remember someone claiming that this could also be blocked at a firewall...don't know if that's true or not though. Yup, certain firewalls either mangle the HTTP_REF

Re[2]: [PHP] (new question on this) http referer

2004-04-08 Thread Richard Davey
Hello Robert, Thursday, April 8, 2004, 5:55:05 PM, you wrote: RC> Opera let's you choose whether to send the referrer or not. it also lets RC> you specify the browser to send so that you can trick some sites that RC> are poorly implemented (or restrictively) to think you are using IE. and Norton

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Michal Migurski
>I am trying to create a regular expression for a mobile phone number. The >number must be 12 digits long(0-9) and begin with 447 and have no spaces. >So far I have come up with this but it keeps telling me the number is >invalid even when its correct! Try this: $regexp = "/447[0-9]{9}/";

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Robert Cummings
On Thu, 2004-04-08 at 12:36, Duncan Hill wrote: > On Thursday 08 April 2004 17:31, Joe Szilagyi wrote: > > Just a follow up on this one--I've seen where consistently that > > $HTTP_REFERER will only show local referers, but not stuff from other > > sites/hostnames. This is on mod_php... any workaro

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread Duncan Hill
On Thursday 08 April 2004 17:35, Arthur Radulescu wrote: > Yes I get the same emails here Ho hum, then into the bit bucket they go. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread John Nichel
Duncan Hill wrote: Anyone else getting auto-acks from "<[EMAIL PROTECTED]>" and "<[EMAIL PROTECTED]>", originating on host76.ipowerweb.com when they post here? Yeah. An admin needs to remove those from the list. For the time being, I just have anything coming from those addresses going to /de

[PHP] Use PHP to copy MySQL tables

2004-04-08 Thread Robb Kerr
Is there an easy way to create an HTML page that uses PHP to copy selected MySQL tables to backup copies on the same MySQL server? I want to create an administration page for my client to be able to "backup" their database whenever they see fit. But, I can't give them direct access to the MySQL ser

Re: [PHP] Auto-acks on posting.

2004-04-08 Thread Arthur Radulescu
Yes I get the same emails here -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread Shaun
Hi, I am trying to create a regular expression for a mobile phone number. The number must be 12 digits long(0-9) and begin with 447 and have no spaces. So far I have come up with this but it keeps telling me the number is invalid even when its correct! $regexp = "/447[0-9]{9}/"; if($_POST[mobil

[PHP] Auto-acks on posting.

2004-04-08 Thread Duncan Hill
Anyone else getting auto-acks from "<[EMAIL PROTECTED]>" and "<[EMAIL PROTECTED]>", originating on host76.ipowerweb.com when they post here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (new question on this) http referer

2004-04-08 Thread John Nichel
Joe Szilagyi wrote: Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Regards, Joe The referrer is sent by the referring machine. If that machine isn'

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Curt Zirzow
* Thus wrote Joe Szilagyi ([EMAIL PROTECTED]): > Just a follow up on this one--I've seen where consistently that > $HTTP_REFERER will only show local referers, but not stuff from other > sites/hostnames. This is on mod_php... any workaround for that? Its up to the web browser to decide if it is go

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Duncan Hill
On Thursday 08 April 2004 17:31, Joe Szilagyi wrote: > Just a follow up on this one--I've seen where consistently that > $HTTP_REFERER will only show local referers, but not stuff from other > sites/hostnames. This is on mod_php... any workaround for that? Referrer is a function of the browser. I

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Joe Szilagyi
Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Regards, Joe - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "php"

  1   2   >