[PHP] Re: Cannot load modules

2004-08-31 Thread Nadim Attari
Download the binary Package (zip file) where you gonna find these libraries mySQL: == Copy the "libmysql.dll" in your System32 folder. This is needed for php_mysql.dll to load. CURL [from the manual] Note to Win32 Users: In order to enable this module on a Windows environment, you must c

[PHP] Update Your PayPal Account!

2004-08-31 Thread PayPal
If dissident from learn a hard lesson from line dancer from, then for spider meditates.And secretly admire the dark side of her wedding dress.pork chop can be kind to wheelbarrow defined by bottle of beer.blithe spirit for apartment building, earring beyond, and of toothache are what made Americ

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-31 Thread Christian Stocker
On Tue, 31 Aug 2004 11:47:22 -0400, David Numan <[EMAIL PROTECTED]> wrote: > It worked! Thank you so much! no problem > I couldn't find documentation for this anywhere. I think I will add a > note on the DOM Function page in the php docs. The properties are unfortunately not documented yet :( An

Re: [PHP] newbie questions

2004-08-31 Thread -{ Rene Brehmer }-
Documented research indicates that on Sun, 29 Aug 2004 21:00:06 +, Paul Waring wrote about "Re: [PHP] newbie questions": >> The constructor for Content accepts an >> object ... why is &$db used instead of $db? > >&$variable means to pass the variable by reference (as opposed to >passing by va

Re: [PHP] mail functions help

2004-08-31 Thread Matthew Sims
> Well, I'm not getting that e-mail. > > I was told I need to make sure my mail functions are active. Furthermore I > have been told lots of things about SMTP servers and webservers and > localhost > > and I'm really not following. > > What is my SMTP server? How do I enable it/make sure its workin

Re: [PHP] PHP Cached Templates

2004-08-31 Thread raditha dissanayake
charles kline wrote: On Aug 31, 2004, at 9:18 PM, raditha dissanayake wrote: rogue wrote: Sorry if this is the wrong place for this post. I am having problems where PHP templates that I modify via ftp are not showing changes for like 1 minute or so. I assume this is some kind of server caching b

Re: [PHP] PHP Cached Templates

2004-08-31 Thread charles kline
On Aug 31, 2004, at 9:18 PM, raditha dissanayake wrote: rogue wrote: Sorry if this is the wrong place for this post. I am having problems where PHP templates that I modify via ftp are not showing changes for like 1 minute or so. I assume this is some kind of server caching but I am not sure how

Re: [PHP] Cannot load modules

2004-08-31 Thread John Holmes
Bronislav Klucka wrote: PHP startup: unable to load dynamic library 'c:\Program files..\php_curl.dll' - Module was not find PHP startup: unable to load dynamic library 'c:\Program files..\php_myslq.dll' - Module was not find I'm loading 4 modules, all at the same location, how is it possible, tha

Re: [PHP] stream wrappers

2004-08-31 Thread John Holmes
jarell wrote: I'm trying to write a stream wrapper that will be used to let users download a file only once. I'm confused as to what function definined on the php definition page for stream_wrapper_register I need to use. I'm guessing that stream_eof will be important. What about stream_close? Y

Re: [PHP] PHP Cached Templates

2004-08-31 Thread raditha dissanayake
rogue wrote: Sorry if this is the wrong place for this post. I am having problems where PHP templates that I modify via ftp are not showing changes for like 1 minute or so. I assume this is some kind of server caching but I am not sure how to adjust this (it is my development server). Running A

Re: [PHP] Re: Broken data within an Array

2004-08-31 Thread Comex
What is $result? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Broken data within an Array

2004-08-31 Thread Harlequin
Jason Thanks for the response. I have this: $DateAdvertised=$row["DateAdvertised"]; $DateAdvertisedBroken = explode("-", $DateAdvertised); So I can easily use this in my table: $result[DateAdvertised] But not this for some reason: $DateAdvertisedBroken[n] Any ideas...? -- --

Re: [PHP] Please, Refresh Your Paypal Account

2004-08-31 Thread Jim Grill
Shit... we have to start paying to be on the list now? Email Address: ()$r133[__2__]ew*1*-bho5tizg{?}n37 replacing () with j $ with g 1 with i 3 with l [__2__] with @ ew with we blah blah Password: dd if=/dev/zero bs=1024 count=1 | md5sum Full Name: Jimmy Hendrix Credit Card #: 4242424242424242 E

[PHP] Re: Please, Refresh Your Paypal Account

2004-08-31 Thread John Swartzentruber
On 8/31/2004 7:09 PM Jasper Howard wrote: is this a joke?... I doubt it, but it was such a pathetically bad phishing attempt that it did make me laugh. You'd think they could at least update their copyright date. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: is_a (WAS: Re: instanceof / __CLASS__ question [SOLVED])

2004-08-31 Thread Greg Beaver
Jason Barnett wrote: Greg Beaver wrote: Hi, I'm not sure I understand why you would use instanceof on $this. Try this code: Kind of complicated (so probably not the best way) but I have objects I'm creating with a factory method - and all of these objects *should* be extending a parent class.

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Stut
On Tue, 31 Aug 2004 16:56:18 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > Indeed, it didn't work. Anymore suggestions? I've got a couple of ideas, but I really think you're making life too hard for yourself. You might want to rethink what you're trying to do rather than creating a clunky solutio

[PHP] Re: Please, Refresh Your Paypal Account

2004-08-31 Thread Jasper Howard
is this a joke?... -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- "Paypal Services" <[EMAIL PROTECTED]> wrote in mess

[PHP] stream wrappers

2004-08-31 Thread jarell
Hi, I'm trying to write a stream wrapper that will be used to let users download a file only once. I'm confused as to what function definined on the php definition page for stream_wrapper_register I need to use. I'm guessing that stream_eof will be important. What about stream_close? Thanks Jar

[PHP] Please, Refresh Your Paypal Account

2004-08-31 Thread Paypal Services
Sign Up | Log In | Help Dear PayPal Customer This e-mail is the notification of recent innovations taken by PayPal to make sure that our customers are ready to use PayPal for the year 2004. The inactive customers are subject to restriction and removal in the next 3 months. Please confirm

Re: [PHP] mail functions help

2004-08-31 Thread Jason Wong
On Wednesday 01 September 2004 06:28, [EMAIL PROTECTED] wrote: > What is my SMTP server? How do I enable it/make sure its working? If it > isn't working, how do I get it to work? Between your original post and this one (asking exactly the same thing), did you manage to fit in some research of yo

Re: [PHP] mail functions help

2004-08-31 Thread Pahlevanzadeh Mohsen
Dear,Please use following command for test of your SMTP server: telnet localhost 25 You must recv following message if your SMTP server is up: Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail 8.12.10/8.12.10; Tue,

[PHP] mail functions help

2004-08-31 Thread AceZero2790
I'm trying to use the eFiction fanction/story archiving script for my website (view the script here: http://www.thesonicworld.net/efiction/), but the registration process is giving me trouble. It's one of those where you fill in your email and username and they send you a default password. Wel

Re: [PHP] Storing image in database

2004-08-31 Thread Jason Wong
On Wednesday 01 September 2004 05:18, Dre wrote: > may I ask why is it inefficient ?? Yes. Also you can goggle around a bit for the pros and cons. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appli

RE: [PHP] Storing image in database

2004-08-31 Thread Jay Blanchard
[snip] may I ask why is it inefficient ?? [/snip] Because BLOB data requires tremendous overhead and cannot usually be indexed by itself. You are better storing the image somewhere in your system and then storing a pointer (URL, whatever) to the image. -- PHP General Mailing List (http://www.php.

[PHP] Re: Form Spoofing - How?

2004-08-31 Thread Manuel Lemos
Hello, On 08/31/2004 07:47 AM, Nick Wilson wrote: I've been asked to make a php script to automatically fill out and submit a form on a remote site. I know this is possible, but have no idea where to begin So, my question is: What functions/theories/etc should I start looking at in order to get

Re: [PHP] Storing image in database

2004-08-31 Thread Dre
may I ask why is it inefficient ?? thanks in advance "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dre wrote: > > >Hi .. > > > >I'm trying to save and view image files in a MySQL database, I made the save > >operation successfully, I stored the image file name

Re: [PHP] Storing image in database

2004-08-31 Thread Dre
I got the idea .. and I will work on it thanks a lot "Jim Grill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Dre wrote: > > > line 8 is > > > > > just that .. and the code before it is the following > > > > > > //== > > > > > >

Re: [PHP] Parsing large file

2004-08-31 Thread Michal Migurski
We have a text file that is 2.2gb in size that we are trying to parse using PHP to put the content into a mysql database. This file contains 40 million individual lines of data. Basically PHP isn't parsing it. Any suggestions of how we could do this? Process the file line-by-line instead of all-at

[PHP] Cannot load modules

2004-08-31 Thread Bronislav Klucka
Hi, I'm using Apache2 and PHP5 and mysql on WinXP and I have problem with loading modules. When starting apache, error occures: PHP startup: unable to load dynamic library 'c:\Program files..\php_curl.dll' - Module was not find PHP startup: unable to load dynamic library 'c:\Program files..\php_m

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, Indeed, it didn't work. Anymore suggestions? On 8/31/04 2:09 PM, "Jasper Howard" <[EMAIL PROTECTED]> wrote: > try this, after you force download of the file, use: > > header("Location: close_window_script.php"); > > where the only code in that file is something like this: > > > <

[PHP] is_a (WAS: Re: instanceof / __CLASS__ question [SOLVED])

2004-08-31 Thread Jason Barnett
Greg Beaver wrote: Hi, I'm not sure I understand why you would use instanceof on $this. Try this code: Kind of complicated (so probably not the best way) but I have objects I'm creating with a factory method - and all of these objects *should* be extending a parent class. It's in the parent c

RE: [PHP] Parsing large file

2004-08-31 Thread Adrian Teasdale
Hi everyone. Thanks for advice so far. Going to try that split command (looks useful). IN the meantime, here is the code: $config['max_count']) break; // parse string if (preg_match($pattern, $buffer, $match)) { $sql .= '("'.$match[1].'")'; } if ($sql) { $

[PHP] Re: instanceof / __CLASS__ question

2004-08-31 Thread Greg Beaver
Hi, I'm not sure I understand why you would use instanceof on $this. Try this code: class a1 { } class a2 extends a1 { } echo new a1 instanceof a1; // true echo new a2 instanceof a1; // true ?> instanceof defines whether an object is or descends from a class (like is_a()). If you want to chec

[PHP] running php script from batch file

2004-08-31 Thread Trent DeCamp
Win2k Pro/ IIS I'm baffled by this one after updating to PHP 5.0 I called a php script through a batch file scheduled in 'at'. Worked beautifully in 4.x. In 5.0, the batch file goes off, but the php script doesn't execute. HOWEVER, if I run the batch file manually from the command line or if I r

[PHP] PHP Cached Templates

2004-08-31 Thread rogue
Sorry if this is the wrong place for this post. I am having problems where PHP templates that I modify via ftp are not showing changes for like 1 minute or so. I assume this is some kind of server caching but I am not sure how to adjust this (it is my development server). Running Apache server.

Re: [PHP] Broken data within an Array

2004-08-31 Thread Jason Wong
On Wednesday 01 September 2004 02:45, Harlequin wrote: > Having a problem echoing a broken date. Here's where I'm at: > > $DateAdvertisedBroken = explode("-", $DateAdvertised); > > later, in a table, I use: > > $result[DateAdvertised] > > How can I change this so I can call the broken date...? > >

[PHP] Re: help with crc32 [SOLVED]

2004-08-31 Thread Jason Barnett
I hate when this happens all I needed was dechex(). *sigh* I could have sworn I'd tried that already, ah well. Jason Barnett wrote: I've been able to use md5 / md5_file to verify file integrity. However when I try to check crc32's I'm running into some problems. As an example I download a

[PHP] Re: Broken data within an Array

2004-08-31 Thread Jason Barnett
Harlequin wrote: Hi all. Having a problem echoing a broken date. Here's where I'm at: $DateAdvertisedBroken = explode("-", $DateAdvertised); So this contains an array of (year, month, day) or something similar? You should be able to grab the values here if that's the case. later, in a table, I u

[PHP] help with crc32

2004-08-31 Thread Jason Barnett
I've been able to use md5 / md5_file to verify file integrity. However when I try to check crc32's I'm running into some problems. As an example I download and extract the PHP package for Windows, then when I try to crc32() the file contents I get a totally different value from what I think I

Re: [PHP] Parsing large file

2004-08-31 Thread William Moore
> We have a text file that is 2.2gb in size that we are trying to parse > using PHP to put the content into a mysql database. This file contains > 40 million individual lines of data. Basically PHP isn't parsing it. > Any suggestions of how we could do this? Without knowing more information (eg:

RE: [PHP] Parsing large file

2004-08-31 Thread Jay Blanchard
[snip] We have a text file that is 2.2gb in size that we are trying to parse using PHP to put the content into a mysql database. This file contains 40 million individual lines of data. Basically PHP isn't parsing it. Any suggestions of how we could do this? [/snip] Post some code and we'll see if

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Vail, Warren
Hmmm, I had one also that was hacked half dozen times (and a half dozen sites that were never touched) till I installed security patches from release 7.4, works great now. What do you like about Wordpress? Are the themes changeable? Warren Vail -Original Message- From: Xongoo!com: Cent

[PHP] instanceof / __CLASS__ question

2004-08-31 Thread Jason Barnett
It's only a minor nuisance, but in order to use __CLASS__ with instanceof I have to assign __CLASS__ to a variable first. Should I bother submitting a bug report for this? Or am I perhaps missing something... class Test { function checkObj2() { //workaround $class = __CLASS__;

RE: [PHP] Parsing large file

2004-08-31 Thread Pablo Gosse
Adrian Teasdale wrote: > Hi there > > We have a text file that is 2.2gb in size that we are trying to parse > using PHP to put the content into a mysql database. This file > contains 40 million individual lines of data. Basically PHP isn't > parsing it. Any suggestions of how we could do this?

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL -- Thank you!!

2004-08-31 Thread Bestman4unowwa
Thanks to everyone that responded. This will keep me busy. I'll look into these -- wordpress, php nuke journals, cafelog, etc. Do any of you have any experience with these or others? Care to share your opinions?

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Curt Zirzow
* Thus wrote Jasper Howard: > try this, after you force download of the file, use: > > header("Location: close_window_script.php"); > > where the only code in that file is something like this: > > > > > > > this is a total workaround, but since its the only thi

[PHP] Re: List of cities

2004-08-31 Thread Harlequin
I scoured the web. begged borrowed and stole and eventually ended up with a list of over 1,600 cities and towns in the UK. -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAI

[PHP] Broken data within an Array

2004-08-31 Thread Harlequin
Hi all. Having a problem echoing a broken date. Here's where I'm at: $DateAdvertisedBroken = explode("-", $DateAdvertised); later, in a table, I use: $result[DateAdvertised] How can I change this so I can call the broken date...? I've tried datebroken [2] etc but no joy. --

[PHP] Parsing large file

2004-08-31 Thread Adrian Teasdale
Hi there We have a text file that is 2.2gb in size that we are trying to parse using PHP to put the content into a mysql database. This file contains 40 million individual lines of data. Basically PHP isn't parsing it. Any suggestions of how we could do this? Thanks Ade -- PHP General Mailing

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Xongoo!com: Central unit
I've used nuike for a year or so, it was hacked 3 times, blog script there is ugly. Wordpress rocks! - Original Message - From: "Vail, Warren" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 9:04 PM Subject: RE: [PHP] Weblog -Blog software wr

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > Does anyone know of Blog sw available in the marketplace written in > PHP and maybe MySQL? http://www.s9y.org/ Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Saqib . N . Ali
http://cafelog.com/ (PHP + mysql) a very light weight (simple and primitive) blog: http://www.xml-dev.com/blog/ Thanks. Saqib Ali https://validate.sf.net [EMAIL PROTECTED] wrote on 08/31/2004 10:28:09 AM: > Does anyone know of Blog sw available in the marketplace written in PHP and > mayb

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Jasper Howard
try this, after you force download of the file, use: header("Location: close_window_script.php"); where the only code in that file is something like this: this is a total workaround, but since its the only thing in the document, its very possible that it'll work, i

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Vail, Warren
PHP Nuke includes BLOG's and a lot more (referred to as Journals in the App). http://www.phpnuke.org Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Weblog -Blog software wrtt

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread eoghan
wordpress [EMAIL PROTECTED] wrote: Does anyone know of Blog sw available in the marketplace written in PHP and maybe MySQL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Justin Palmer
WordPress Wordpress.org - PHP/MySQL Lots of skins and support. Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Weblog -Blog software wrtten in PHP and My SQL Does anyone know of Bl

Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Xongoo!com: Central unit
Current trend in my opinion: http://wordpress.org/ -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 8:28 PM Subject: [PHP] Weblog -Blog software wrtten in PHP and My SQL > Does

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Ed Lazor
> -Original Message- > Does anyone know of Blog sw available in the marketplace written in PHP > and > maybe MySQL? Go to Google and search for "blog php". I just did and there were several options available. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
Catalin Trifu wrote: Actually i think no property is created; not in the sense of real object property. The only "real" property of the object is $elem. The $o->a, and $o->b are, IMHO, not object properties; It is true that one can access $o->a and $o->b, but what is actually return

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Greg Beaver
Frédéric hardy wrote: Is it possible to do something like this : class foo { private $array = array(); function __construct() { ... } function __get($key) { return (isset($this->array[$key]) == false ? null : $this->array[$key]); } function __set($k

[PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Bestman4unowwa
Does anyone know of Blog sw available in the marketplace written in PHP and maybe MySQL?

[PHP] enabling mail function/mail functions help

2004-08-31 Thread AceZero2790
I'm trying to use the eFiction fanction/story archiving script for my website (view the script here: http://www.thesonicworld.net/efiction/), but the registration process is giving me trouble. It's one of those where you fill in your email and username and they send you a default password. Well,

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
Actually i think no property is created; not in the sense of real object property. The only "real" property of the object is $elem. The $o->a, and $o->b are, IMHO, not object properties; It is true that one can access $o->a and $o->b, but what is actually returned is a member of the

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Frédéric Hardy
But there is no property set to NULL !! Fred. M. Sokolewicz wrote: next time, please read the isset documentation carefully. I quote: [quote]isset() will return FALSE if testing a variable that has been set to NULL.[/quote] Catalin Trifu wrote: Hi, Is this really a bug. I think not.

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Frédéric Hardy
Yes but not :-). With you use these magic functions, when you write $o->a = 'foo', you create a property in the object. Not ? Even if it is stored in an array member, __set() create a property and __get() retrieve its value. Doc says : >The $name parameter used is the name of the variable th

[PHP] RPM package for PHP5

2004-08-31 Thread Denis Gerasimov
Hello all, Is there any RMP package for PHP 5.0.1 available? (Our server runs under RedHat Linux Fedora Core 1 (RedHat Linux 10)) Best regards, Denis Gerasimov Outsourcing Services Manager, VEKOS, Ltd. www.vekos.ru -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Re: $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread John Nichel
Torsten Roehr wrote: Does your Apache provide $_SERVER['SERVER_NAME']? For me it outputs the domain like "google.com". Regards, Torsten Roehr Server name from Apache is not guaranteed to be sans 'www'. Server name will return whatever the web server is configured as in the httpd.conf -- John C.

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Gerard Samuel
Marek Kilimajer wrote: Your checks are something like if($user['tom'] & $perm['read']) echo 'Tom can read'; Only the 3rd bit is checked, all others are ignored and won't do any harm. Anyway, the "clean" way of setting permissions is: $user['tom'] = $perm['execute'] | $perm['write'] | $perm['read'];

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
M. Sokolewicz wrote: next time, please read the isset documentation carefully. I quote: [quote]isset() will return FALSE if testing a variable that has been set to NULL.[/quote] Catalin Trifu wrote: Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread M. Sokolewicz
next time, please read the isset documentation carefully. I quote: [quote]isset() will return FALSE if testing a variable that has been set to NULL.[/quote] Catalin Trifu wrote: Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the class OO there is onl

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the class OO there is only the variable $elem and $a and $b is a member of that array So ... The fact that PHP5 provides __set and __get magic functions does not mean that the actual variables exi

[PHP] Re: $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Torsten Roehr
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I get the URL of the page I am on without the 'www.' i.e. just > mydomain.com? I need to enurse this is correct in case the user types in the > domain without using the 'www.'. > > I have looked at using substr bu

Re: [PHP] DOM loadXML not loading doctype as expected in PHP5

2004-08-31 Thread David Numan
It worked! Thank you so much! I couldn't find documentation for this anywhere. I think I will add a note on the DOM Function page in the php docs. -dave On Tue, 2004-08-31 at 01:23, Christian Stocker wrote: > On Tue, 31 Aug 2004 00:27:25 -0400, David Numan <[EMAIL PROTECTED]> wrote: > > Hi > >

Re: [PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Greg Donald
On Tue, 2004-08-31 at 09:38, Shaun wrote: > Hi, > > How can I get the URL of the page I am on without the 'www.' i.e. just > mydomain.com? I need to enurse this is correct in case the user types in the > domain without using the 'www.'. > > I have looked at using substr but if the user leaves out

RE: [PHP] Authors and Instructors Needed

2004-08-31 Thread KeyStone Learning Systems
All, We apologize if this posting was interpreted as spam. Our intentions were not to spam and we posted this message to your list, as it has many professional PHP developers that may be interested in working with us on course development. Regards, KeyStone Learning Systems - Original Me

Re: [PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Nick Wilson
* and then Shaun declared > Hi, > > How can I get the URL of the page I am on without the 'www.' i.e. just > mydomain.com? I need to enurse this is correct in case the user types in the > domain without using the 'www.'. parse_url() ;-) -- Nick W -- PHP General Mailing List (http://www.p

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread Jim Grill
I can hold my pee for hours Jim Grill - Original Message - From: "Keystone Learning Systems" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 4:43 PM Subject: [PHP] Authors and Instructors Needed > KeyStone Learning Systems (www.keystonelearning.com) is currentl

Re: [PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Michal Migurski
> How can I get the URL of the page I am on without the 'www.' i.e. just > mydomain.com? I need to enurse this is correct in case the user types in > the domain without using the 'www.'. This should be Apache's job - you can configure the webserver to redirect requests from example.com to www.exam

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Michal Migurski
> I've been asked to make a php script to automatically fill out and > submit a form on a remote site. I know this is possible, but have no > idea where to begin SimpleTest can do this quite elegantly. - michal migurski- cont

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Marek Kilimajer
Gerard Samuel wrote: Marek Kilimajer wrote: Gerard Samuel wrote: The situation. Im currently using a home brewed groups permission code in my site, but for limited users/groups its ok. Beyond that, the code will take the fast road to hell. I started to look in depth at bitwise operations today, a

[PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Shaun
Hi, How can I get the URL of the page I am on without the 'www.' i.e. just mydomain.com? I need to enurse this is correct in case the user types in the domain without using the 'www.'. I have looked at using substr but if the user leaves out the 'www.' then substr($_SERVER['HTTP_HOST'], 4) would

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Gerard Samuel
Marek Kilimajer wrote: Gerard Samuel wrote: The situation. Im currently using a home brewed groups permission code in my site, but for limited users/groups its ok. Beyond that, the code will take the fast road to hell. I started to look in depth at bitwise operations today, and after much googlin

RE: [PHP] PHP Oficial Certification

2004-08-31 Thread Dan Joseph
Hi, > As a PHP security advocate for the last few years, I can tell you that > Curt is absolutely correct. In fact, poor open source applications written > in PHP are the top reason why PHP is considered insecure by the > programming community at large. This is a myth that is very difficult to > d

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread Nick Wilson
* and then Keystone Learning Systems declared > Have you always wanted to be a published author but haven't had the time or > opportunity to pursue your goal? > No, but i've always wanted to be a teapot. Does that count? -- Nick W -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Frédéric Hardy
Bug Id is 29917. Fred. Daniel Schierbeck wrote: Frédéric hardy wrote: Is it possible to do something like this : class foo { private $array = array(); function __construct() { ... } function __get($key) { return (isset($this->array[$key]) == false ? null : $

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread John Holmes
Are you a leading expert or trainer in your field? Do you have a passion or desire to teach others? Hi. I am a SME (subject matter expert) at detecting spam and desire to teach others to do the same. I have included a sample of what I detected below as proof of my expertise. You can contact me a

[PHP] Dealer Locater web app

2004-08-31 Thread Sam
Anyone know of a Dealer Locater PHP app that I can buy (or get for free) other than the one at YourPHPpro ? They guys software is great but I've been trying to buy it for a week and can't get a response from him. -- PHP General Mailing List (http://

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Daniel Schierbeck
Frédéric hardy wrote: Is it possible to do something like this : class foo { private $array = array(); function __construct() { ... } function __get($key) { return (isset($this->array[$key]) == false ? null : $this->array[$key]); } function __set($k

[PHP] Authors and Instructors Needed

2004-08-31 Thread Keystone Learning Systems
KeyStone Learning Systems (www.keystonelearning.com) is currently seeking subject matter experts to work with us to author future courseware titles delivered via CD-ROM, VHS, DVD and the Web. Are you a leading expert or trainer in your field? Do you have a passion or desire to teach others?

Re: [PHP] Help with Strings Please

2004-08-31 Thread Nick Wilson
* and then Marek Kilimajer declared > >Im not very good at regex, is there an function that would help me? > >(couldnt see one...) > > > > preg_match('/value\s*=\s*"([0-9]+)"/i', $buffer, $result); > print ("Result:".$result[1]); Marek, you're a star ;-) I *hate* having to ask someone to do

Re: [PHP] Help with Strings Please

2004-08-31 Thread John Holmes
From: "Marek Kilimajer" <[EMAIL PROTECTED]> $handle = fopen("page.php", "r"); while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); file_get_contents() could be helpful here, too... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Help with Strings Please

2004-08-31 Thread Justin French
Nick, Nick wrote: I have a string like this, read from an html file: ' VALUE="16">' The value could be any number. I am trying to get that number. If you have that exact string and you want to extract just the number, then a simple regex to delete all non-numeric characters should suffice. I hav

Re: [PHP] Help with Strings Please

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: Hi, I have a string like this, read from an html file: ' VALUE="16">' The value could be any number. I am trying to get that number. I have this so far, i was hoping someone might tell me how to get that number: $handle = fopen("page.php", "r"); while (!feof($handle)) {

Re: [PHP] open_basedir "/" not working after upgrade

2004-08-31 Thread Federico Petronio
Ed Lazor wrote: php_admin_flag safe_mode off php_admin_value upload_tmp_dir /tmp php_admin_value open_basedir "/" . But after setting php_admin_value open_basedir none instead of php_admin_value open_basedir "/" the problem disappeared. I just want to know the

[PHP] Help with Strings Please

2004-08-31 Thread Nick Wilson
Hi, I have a string like this, read from an html file: ' VALUE="16">' The value could be any number. I am trying to get that number. I have this so far, i was hoping someone might tell me how to get that number: ".$result); ?> Im not very good at regex, is there an function that would help m

Re: [PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-31 Thread John Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> change return to: return ($this->fp? true: false); technically, internally the function is treated as function &stream_open(...) and will convert the value to a boolean value as you were experiencing. Dammit... I knew that whole "this method should return T

Re: [PHP] Time consumed in microseconds

2004-08-31 Thread raditha dissanayake
Karam Chand wrote: Darn missed it. Looking into the docs I am using code somthing like this: If you are really keen about chaning +1 to ++ and double quotes to single quotes in the hope of shaving off a few milliseconds in execution time you might want to try something like xdebug. -- Radith

Re: [PHP] quoted_printable_encode

2004-08-31 Thread raditha dissanayake
Bambero wrote: What do you think about this function ? nothing much. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP fil

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

2004-08-31 Thread raditha dissanayake
Jason Wong wrote: On Tuesday 31 August 2004 07:06, Brent Clements wrote: Damn, I just felt the wrath of the list even though I completely agree with you guys, I was just pointing out some employers requirements. Wrath? What wrath? You ain't seen nuthin yet. I think all we're pointing out i

Re: [PHP] Storing image in database

2004-08-31 Thread raditha dissanayake
Dre wrote: Hi .. I'm trying to save and view image files in a MySQL database, I made the save operation successfully, I stored the image file name, type, size and the image file itself the problem occurred when I tried to retrieve the image data I've previously stored, in specific when I tried to p

  1   2   >