[PHP] Bitwise operations criticism needed

2004-08-31 Thread Gerard Samuel
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 googling, and looking at other code, came up with t

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Marek Kilimajer
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 googling, and looking at other

Re: [PHP] Re: Problem sending mail

2004-08-31 Thread Zoran Lorkovic
> Zoran Lorkovic wrote: > > > $file = file_get_contents("text.inc"); > > $start = "[start]"; > > $end = "[/end]"; > > $pos_start = strpos ($file, $start); > > $pos_end = strpos ($file, $end); > > $data = substr ($file, $pos_start, $pos_end); > > mail ("[EMAIL PROTECTED]", "M

Re: [PHP] Re: Instantiating class, classname in constant

2004-08-31 Thread Wouter van Vliet
Quoting Catalin Trifu <[EMAIL PROTECTED]>: > > > class Foo { > > const Bar = 'Foo_Bar'; > > const Chocolate = 'Foo_Chocolate'; > > const Target= 'Foo Target'; > > } > > > > $bar = new Foo::Bar(); > > ?> > > Foo::Bar() is taken by php as a function call and then it tries to > insta

[PHP] Creating a zip and pumping it through the headers - ERROR

2004-08-31 Thread Thomas Hochstetter
Hi again, After a clever question follows a dumb one: :-( I am trying to pack a few resources from off the server, zip them together (at this stage still storing in a tmp folder and afterwards deleting it again) and make the freshly created zip file available to the user via a 'Save File' promp

[PHP] CMS, Seperation of concerns - the Cocoon style

2004-08-31 Thread Thomas Hochstetter
Hi there, I was thinking about this a lot today and was wondering if there are any people here on this list that have experimented with this: I hope you know what Cocoon does. If I can just sum up what I am concerned about: * Separation of concerns (i.e. Design, Content and Logic are CO

Re: [PHP] Creating a zip and pumping it through the headers - ERROR

2004-08-31 Thread Marek Kilimajer
Thomas Hochstetter wrote: Hi again, After a clever question follows a dumb one: :-( I am trying to pack a few resources from off the server, zip them together (at this stage still storing in a tmp folder and afterwards deleting it again) and make the freshly created zip file available to the us

Re: [PHP] CMS, Seperation of concerns - the Cocoon style

2004-08-31 Thread Christian Stocker
You maybe want to have a look at Popoon - Cocoon for PHP ... Documentation is sparse, but see: http://www.bitflux.ch/developer/cms/popoon.html It's for PHP 5 only in the meantime. If you have any questions, just ask chregu On Tue, 31 Aug 2004 11:37:39 +0200, Thomas Hochstetter <[EMAIL PROTECT

[PHP] Form Spoofing - How?

2004-08-31 Thread Nick Wilson
Hi everyone 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 started on this? Much thanks for y

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: Hi everyone 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 started on this? M

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Nick Wilson
* and then Marek Kilimajer declared > >So, my question is: What functions/theories/etc should I start looking > >at in order to get started on this? > Check out the various HTTP classes, they have features for submiting forms. Great, where do I find them? thanks! -- Nick W -- PHP Gene

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared So, my question is: What functions/theories/etc should I start looking at in order to get started on this? Check out the various HTTP classes, they have features for submiting forms. Great, where do I find them? thanks! google ... pear,

[PHP] writing a pdf file to the filesystem

2004-08-31 Thread Merlin
Hi there, I am trying to write a pdf file which is created by a php script to the filesystem. Here is the end of the php file which creates the pdf document: . . . $pdf_close($pdf); $data = pdf_get_buffer($pdf); Can anybody tell me how to save the file instead of printing it out directly? Thank

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Nick Wilson
* and then Marek Kilimajer declared > >>>So, my question is: What functions/theories/etc should I start looking > >>>at in order to get started on this? > > > >>Check out the various HTTP classes, they have features for submiting > >>forms. > > > >Great, where do I find them? > > google ...

Re: [PHP] writing a pdf file to the filesystem

2004-08-31 Thread Stut
On Tue, 31 Aug 2004 12:58:49 +0200, Merlin <[EMAIL PROTECTED]> wrote: > I am trying to write a pdf file which is created by a php script to the > filesystem. > > Here is the end of the php file which creates the pdf document: > > $pdf_close($pdf); > $data = pdf_get_buffer($pdf); $fp = fopen('fil

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

2004-08-31 Thread Frédéric Hardy
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]); }

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, I hear you... Even I feel it's a different problem but I don't know what. My first thought was that HTML or anything doesn't work after the Force-Download script in general But since you seem to use it, I guess it does. Now I don't know what to do, how to make it work. I can't understand

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, I didn't quite understand what you meant. The kind of files being saved by this script range from ZIP files to DBF files to JPG files etcetera. Where will the HTML be in those saved files? Any suggestions on what I need to do to make this work? On 8/30/04 8:31 PM, "Curt Zirzow" <[EMAIL PR

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

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] 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] 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] 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

[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] 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

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] 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 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 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

[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?

[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] 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://

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

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 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] 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] 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

[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 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

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] $_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] 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 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 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 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] 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 > >

[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

[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: [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 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

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'];

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.

[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: [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

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 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

[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,

[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] 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

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

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] 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 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 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 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] 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 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] 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 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

[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

[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] 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

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

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] 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?

[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] 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

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] 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:

[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

[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] 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

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] 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.

[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] 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

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] 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] 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] 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] 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

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] 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

[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 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.

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

[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] 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,

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

[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

  1   2   >