[PHP] srand questions

2012-01-12 Thread Matthew D. Pagel
Hi all, I have a few questions about the srand (or mt_) function for directed seeding. I'm assuming if I do a targeting seeding with a particular value, I'll get the same sequence of values no matter how many times I run the page (assuming it's on the same OS and php version). Of course, if

Re: [PHP] Where Are Security Updates Announced?

2011-10-20 Thread Matthew Pounsett
On 2011/10/20, at 12:54, Daniel Brown wrote: >There are third-party sites that send out security alerts for > software such as PHP, and you can likely find them easily enough via > Google. Off the top of my head, none are coming to mind by name, but > I have subscribed to their mailings myse

Re: [PHP] Decoding Barcode Images

2011-10-10 Thread Matthew Pounsett
On 2011-10-10, at 14:42, Floyd Resler wrote: > I've been trying to find a solution for decoding barcode images in PHP but > haven't had much luck so far. Does anyone have any suggestions? I'm not familiar with a way to do it directly in PHP, but you could shell out to something like zbar to d

Re: [PHP] XML enabled but not working

2011-09-16 Thread Matthew Pounsett
On 2011/09/16, at 10:27, Richard Quadling wrote: > On 15 September 2011 21:20, Matthew Pounsett wrote: >> Anyone have any thoughts on what to look at? > > php -m > php --rf xml_parser_create Thanks. This seems to reinforce that there's something wrong, but I don'

[PHP] XML enabled but not working

2011-09-15 Thread Matthew Pounsett
I seems to behaving issues with php5 on one particular server, and I haven't been able to find the issue. Basically, php says XML is enabled, but xml functions are missing. > php -i | grep "XML support" libXML support => active > echo "" | php Fatal error: Call to undefined function xml_parse

[PHP] Upload using FTP commands

2010-08-26 Thread Matthew Croud
Hi, I want to give my client the ability to upload large files ( around 20MB ) to a webspace. I reckon that using the FTP commands of PHP would be the best bet, but is it possible to allow them to do this through an online form. This is my vision: the client logs in to a form that has an u

[PHP] image upload keeps file name ?

2010-04-01 Thread Matthew Croud
Hi Guys, Can someone confirm for me that the code below will move an uploaded file and give it the same name as the original image file name ? $file_dir = "/home/uploads"; foreach($_FILES as $file_name => $file_array) { echo "path: ".$file_array["tmp_name"]."\n"; echo "name:

[PHP] DOM append to the top

2009-11-20 Thread Matthew Croud
Yo! I have a working form that adds user input to an XML file, it adds the new "item" element to the bottom of the list of previously created "item" elements. I would now like the new elements to be added to the top of the list. So far i've tried using: insertBefore() but i'm still getting

[PHP] Multiple file upload

2009-11-11 Thread Matthew Croud
Dear lords of PHP, I have a working image upload script that meets all my needs, My question is I need to upload multiple images using the same form, This is the PHP part I have so far, largely taken from a book: _ $file_dir = "/public_htm

Re: [PHP] Need unrounded precision

2009-11-04 Thread Matthew McKay
Kim Madsen wrote: Hello Andre Dubuc wrote on 2010-01-02 02:20: Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. Since no one came up with the simple solution: $num = "28.56018"; ereg("^[0-9]+\.([0-9]){1}", trim($num), $regs)

[PHP] opposite of quotemeta ?

2009-10-29 Thread Matthew Croud
Hi, In my script I want the user to enter some html which is saved to a file, I've noticed that php rather cleverly escapes the speech marks, so: Google becomes: Google Is there some function which prevents or reverts this ? something similar to html_entities maybe? Many thanks! Matt

Re: [PHP] Re: Fun with XSLT

2009-10-22 Thread Matthew Croud
On 22 Oct 2009, at 16:39, Peter Ford wrote: Matthew Croud wrote: Hi Guys, Well i;ve been slaving on with my PHP XML endeavors and i'm loving it, just finishing the meaty parts of my XSLT for dummies book too. I have a question which asks "is it possible?". Using XSL

[PHP] Fun with XSLT

2009-10-22 Thread Matthew Croud
Hi Guys, Well i;ve been slaving on with my PHP XML endeavors and i'm loving it, just finishing the meaty parts of my XSLT for dummies book too. I have a question which asks "is it possible?". Using XSLT I can collect specific parts of my XML using something sexy like . Lets say however, t

[PHP] Display HTML in XSL Style Sheet

2009-10-06 Thread Matthew Croud
Hi, Is there a way to store HTML in an XML file, Access that node using XLST, and have it display as rendered html ? So far my attempts either return the text equivalent of the html, with nothing rendered. Cheers, Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Matthew Croud
Okey Doke, I'll try and be brief, Well, my client agreed to a small online store that would hold the same stock items where only the quantities would differ, we agreed that, due to infrequent changes, I would make pages for any new items, and she would control stock etc using an e-shopping

[PHP] Spry, XML, PHP and XSLT Hell

2009-10-05 Thread Matthew Croud
Hello, Is there anyone here who uses Spry with XML and PHP and understands XSLT, At the moment i'm in development hell and have a rather bloated question to ask someone who is knowledgeable in the above areas. My head is about to explode and I can't find any answers, If there are Spry/XML f

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 16:37, Ashley Sheridan wrote: On Wed, 2009-09-09 at 15:14 +0100, Matthew Croud wrote: On 9 Sep 2009, at 15:09, Ashley Sheridan wrote: On Wed, 2009-09-09 at 14:46 +0100, Matthew Croud wrote: On 9 Sep 2009, at 14:36, Bob McConnell wrote: From: Bastien Koert On Wed, Sep 9

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 14:36, Bob McConnell wrote: From: Bastien Koert On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croud wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the element below: e1022

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 14:26, Bastien Koert wrote: On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croud wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the element below: e1022 Blue Ski Trouse

[PHP] XML. Prevent < from turning into <

2009-09-09 Thread Matthew Croud
Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the element below: e1022 Blue Ski Trousers 8.99 Now, whenever PHP writes this to the XML files, it turns the < and > into < and > . which means it

Re: [PHP] Return XML attribute in DOM

2009-09-08 Thread Matthew Croud
Cheers Guys, Your the greatest ! On 8 Sep 2009, at 09:08, Peter Ford wrote: Matthew Croud wrote: Doesn't the DOM have the getAttribute() method? Thanks, Ash http://www.ashleysheridan.co.uk It's not in my reference, though I see it in the PHP manual now. This is w

Re: [PHP] Return XML attribute in DOM

2009-09-07 Thread Matthew Croud
Doesn't the DOM have the getAttribute() method? Thanks, Ash http://www.ashleysheridan.co.uk It's not in my reference, though I see it in the PHP manual now. This is what I have: _ $dom = new DomDocument(); $dom -> load("items.xml"); $topics = $dom -> getElementsB

[PHP] Return XML attribute in DOM

2009-09-07 Thread Matthew Croud
I'm at my wits end here, so close to the finishing line! Is there a method to return an attribute value of an XML node using DOM, I can check to see if an attribute exists using hasAttributes() But I can't retrieve the value. I'm so desperate i've started to eat dirt. Many thanks, Matt

Re: [PHP] Some help with SimpleXML :`(

2009-09-04 Thread Matthew Croud
Well, you guys are awesome. So the script below doesn't cause any errors (nice), however it doesn't save the newly added child to the xml file (items.xml): $xml = simplexml_load_file("items.xml"); $item = $xml->addChild('item'); $item->addChild('name', $name); $item->addChild('desc', $des

[PHP] Some help with SimpleXML :`(

2009-09-03 Thread Matthew Croud
Hi foks, Could someone lend me a little hand with simpleXML ? I've been looking at examples in the PHP manual and W3C, i'm at the pinnacle of figuring it out but alas i need a hand from the mailing list dudes. My aim is to add another "item" node, so i'll start with my XML file called "it

[PHP] Host that allows edit of php.ini

2009-07-08 Thread Matthew Croud
Apologies if this type of question is frowned upon in the mailing list, however I would like to pop the question to those in the know. Can anyone recommend a UK host that allows you to edit ( or a copy of ) the php.ini file, allowing me to increase the file upload size to 100mb for clients PDF

[PHP] Advise on starting a web store site

2009-07-06 Thread Matthew Croud
Hi, I'm going to start my first e commerce website for a small web shoe store. I think I know enough PHP to keep my head above water, I'm using an add on shopping cart package to deal with the transactions. My question is, what's the best way to design a site where each product appears to

Re: [PHP] Form Process Question

2009-06-16 Thread Matthew Giddings
Have you thought about using JavaScript? Matt Giddings Web Programmer Information Technology Services Saginaw Valley State University http://www.svsu.edu - Original Message - From: "Gary" To: php-general@lists.php.net Sent: Tuesday, June 16, 2009 11:03:38 AM GMT -05:00 US/Canad

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
Wonderful, thanks Ian for your function, and also thank you Tom for having a head scratch on my behalf ;) On 16 Jun 2009, at 16:20, Ian wrote: On 16 Jun 2009 at 14:05, Matthew Croud wrote: Hi Dajve and Tom, Thanks again, I totally didn't realise that this function is yet to

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
n talking to my friend who does ASP.net and he said he was sure there is for PHP. On 16 Jun 2009, at 13:11, Dajve Green wrote: Hi Matthew, A quick note on the DateTime::diff() method - it's only available as from PHP 5.3, which is currently in release candidate stage, meaning unle

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
27;d try and help out. You'll learn a lot from reading this list as well. Cheers and good luck, Tom 2009/6/16 Matthew Croud Hello, My journey of learning PHP is going well, so i've decided to make a small program which works out the difference between two times and records the data

[PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
Hello, My journey of learning PHP is going well, so i've decided to make a small program which works out the difference between two times and records the data in a text file. I've searched the PHP manual for functions which can help me out, and I discovered the function Date_diff ( http:

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
On Mon, Jun 1, 2009 at 2:43 PM, James Ausmus wrote: > On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: > > It would be much simpler and cleaner to use Javascript to modify the > form's > > action attribute onClick. > > > > Not really. What about clients

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
It would be much simpler and cleaner to use Javascript to modify the form's action attribute onClick. On Mon, Jun 1, 2009 at 2:28 PM, Shawn McKenzie wrote: > Jason Pruim wrote: > > > > On May 31, 2009, at 10:53 PM, Angus Mann wrote: > > > >> Hi all. I realize this is more an HTML question than P

Re: [PHP] Question about template systems

2009-03-03 Thread Matthew Croud
Excellent, thanks for your help guys, you've been really helpful :) On 3 Mar 2009, at 10:20, Marcus Gnaß wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy web

[PHP] Question about template systems

2009-03-03 Thread Matthew Croud
Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a static navigation sy

RE: [PHP] Grouping records

2008-11-04 Thread Matthew Halpin
Audit records from a financial application. flx_l_rgb.JPG Matthew Halpin Systems Administrator Felix Resources Limited Level 6, 316 Adelaide Street, Brisbane, Qld 4000 P: 07 3248 7903 F: 07 3211 7328 M: 0417 604 103 E: [EMAIL PROTECTED] -Original Message- From: Yeti [mailto

[PHP] Grouping records

2008-11-03 Thread Matthew Halpin
Hi, I have transactional records with the following structure Rowid TimePerson TimediffGroupid 1 20:22:49Bob 2 20:22:49Bob 0 3 20:22:50Bob 1 4 2

Re: [PHP] Count the Number of Elements Using Explode

2008-10-31 Thread Matthew Powell
Diogo Neves wrote: Hi Alice, U can simple do: $nr = ( strlen( $message ) / 2 ) + 1 ); $nr = count( explode( '|', $message ); Or... $num = (substr_count($message, "|") + 1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-11 Thread Matthew Powell
Dan wrote: > I need to retrieve a huge amount of data form a database and do so many > times. To eliminate the overhead of connecting to the database and > pulling down all that info over and over, I'm trying to pull it down > only once and stick it into a session. The problem is I get the first

[PHP] Re: mail() takes too much time

2007-09-03 Thread Matthew Lasar
I run pretty simple mail group distribution program that uses php/mysql and the mail() function. I adapted it from an open source script. Most of the time it runs well. But it does take a while to run through all 150 members of the list. So I'm half glad that I don't have a list of 1000 people

Re: [PHP] regular expression question

2007-08-31 Thread Matthew Lasar
At 11:32 AM 8/31/2007, Per Jessen wrote: Matthew Lasar wrote: > But I don't understand why the second half of the regular expression > works. I'm talking about this part: > > @([-a-z0-9]+\.)+[a-z]{2,}/"; > > why is it able to detect repeated sections of the e

[PHP] regular expression question

2007-08-31 Thread Matthew Lasar
.)+[a-z]{2,}/"; why is it able to detect repeated sections of the email address after "@" that are separated by periods? like "@email.alaska.com" . It looks to me like it's only looking for one example of that pattern. Does the "()" allow an unlimited number

[PHP] Senior PHP Role

2007-07-31 Thread Matthew Yates
Hi All, Apologies for cross posting. I'm recruiting on behalf of a superb e-commerce set up who is investing heavily in the next stage of their tech development. We are looking for an ambitious individual to join the senior management team who has a good PHP background who will be comi

Re: [PHP] Need a new shared host with php

2007-05-10 Thread Matthew Powell
Al wrote: > I'm looking for a shared host with an up-to-date php5, and one who at > least tries to keep it relatively current. > > Needs are modest. Just need good ftp access, cgi-bin, shell, etc. > > Any suggestions. I'm looking at Host Monster, anyone have experience > with them? > > Thanks..

Re: [PHP] Session with microtime

2007-04-20 Thread Matthew Powell
Panquekas wrote: > On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: > I'm sorry, my mistake. What I tried to say is that the session_start() was > on the top of the page, and the if( ) block was after that and the login > script was even after the if( ), so the first thing to ran was the > sess

[PHP] spl DirectoryIterator

2007-04-07 Thread Matthew Dellar
I have a problem, I need to turn an iterator into an array, but when I do, some methods I need to use stop working. Take a look at the following example: $dir = 'c:/'; $files = new DirectoryIterator($dir); //$files = iterator_to_array($files); foreach ($files as $file) { echo "{$file->get

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Matthew Vickery
Robert Cummings wrote: On Wed, 2007-03-14 at 14:50 +, Matthew Vickery wrote: The situation is as follows: I wish to protect the entire Website http://www.example.com from direct URL access. i.e. if someone enters http://www.example.com into their browser they get a message stating that they

[PHP] Referring URL Authentication

2007-03-14 Thread Matthew Vickery
is is basically the same as above and still seems insecure! Is there a better/standard way to do this kind of thing? Any help will be most appreciated, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: (SOLVED) Varying session behavior between 2 nearly identical Apache/PHP setups

2006-12-13 Thread Matthew North
bug! (otoh, doesn't that situation normally result in a PHP warning? where'd that go? oh well...). - Matt On 12/12/06, Matthew North <[EMAIL PROTECTED]> wrote: Hello All, I have an odd situation that I wonder if someone might have some insight on. The scenario is this: - T

[PHP] Varying session behavior between 2 nearly identical Apache/PHP setups

2006-12-12 Thread Matthew North
/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--enable-spl' '--program-prefix=' '--disable-path-info-check' '--with-apxs2=/usr/local/sbin/apxs' '--with-reg

[PHP] Object-Oriented PHP Courses in the UK

2006-10-18 Thread Matthew Vickery
any thanks, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] move_uploaded_file locks?

2006-09-20 Thread Matthew H. North
But if it does a copy instead, or if it has to rename across filesystems, any process that tries to read or write the file before move_uploaded_file completes could be munging things. -- Matthew H. North mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Odd PHP memory issue

2006-09-16 Thread Matthew H. North
On 9/15/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, September 15, 2006 10:42 am, Matthew H. North wrote: > > We're developing a web application that involves traversal of a > > hierarchical database structure (MySQL, PEAR::DB, and > > PEAR::DB::DataObjec

[PHP] Odd PHP memory issue

2006-09-15 Thread Matthew H. North
ode nor in any PEAR module code Are there any other ways that user code can result in this apparent memory leak situation? If so, what are they? Or, are any of my first 6 assumptions incorrect? Thanks for any help, -- Matthew H. North mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unset globals and memory_get_usage

2006-09-08 Thread Matthew North
ode nor in any PEAR module code Are there any other ways that user code can result in this apparent memory leak situation? If so, what are they? Or, are any of my first 6 assumptions incorrect? Thanks, - Matthew H. North -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] helping people...

2006-06-21 Thread Matthew Pegg
Subject: Re: [PHP] helping people... No that wasnt a ddos threat you idiot, i dont play them games. And when you keep sending spam is when it starts to piss people off. Rob W: Seriously mate, you are way... way outa line here. I've only used this list once and all I can say is...thank god p

[PHP] PHP/Mysql: Making binary field available for download - extra browser window ?

2006-06-01 Thread Matthew Pegg
Hi all, Working on a PHP script at the moment where I want to be able to extract a file (PDF file) from a mysql database and force the popup of the File Download dialog, to allow the user to either save or open the document (ie. and bypass loading the file using the browser's plugin) I've found

Re: [PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
Ok, I've 'fixed' this. The OnUpdateLong isn't on my version of php so I've replaced it in the php_expect.c in the expect-1.0 tarball with OnUpdateReal, compiled, installed and it seems to work. Cheers Matthew -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
r/local/lib/php/extensions/expect.so: undefined symbol: OnUpdateLong Any offers? Cheers Matthew On Wed, November 2, 2005 15:31, Jochem Maas wrote: > Matthew Robinson wrote: >> Hi all, >> I'm sure that this is down to me not reading/following/understanding >> the >> i

[PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
se the function I'm told it doesn't exist. Now do I need to re-compile php? Kind regards Matthew -- Matthew Robinson - mailto:[EMAIL PROTECTED] 07050 606288 - http://www.amberinth.org.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos <[EMAIL PROTECTED]> : > on 09/12/2005 05:18 PM Matthew Weier O'Phinney said the following: > > > > > Mails are then queued to an MTA -- in our case, Postfix. > > > > This is the part I don't know how to do. Can you explain/show > >

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos <[EMAIL PROTECTED]> : > Hello, > > on 09/12/2005 02:56 PM Chris W. Parker said the following: > > Matthew Weier O'Phinney <mailto:[EMAIL PROTECTED]> > > on Monday, September 12, 2005 6:55 AM said: > > > > > Mails are then qu

[PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
ou click 'Send', it actually simply places the information in a database queue, and the cronjob does the actual sending. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Error Handling

2005-09-09 Thread Matthew Weier O'Phinney
\\\.php on line 7) > > // error handling test > > try{ > $test = 1; > echo $test1 You're missing a semicolon at the end of the above line. > } > catch (Exception $e) { > print "Exception caught\n"; > } > ?> -- Matthew Weier

[PHP] Re: php equivalent for cut

2005-09-06 Thread Matthew Weier O'Phinney
php4 and php5, it is not easy to > find the right stuff. explode() works the same in both PHP4 and PHP5. Additionally, the manual is very good at detailing in what versions of PHP a function is valid. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -

Re: [PHP] preg_match

2005-08-19 Thread Matthew Weier O'Phinney
scape, and could be interpreted differently. Probably the better way to do this would be: $pattern = '/Charges\s+' . $total . ' x ([^\s]*)/si'; preg_match_all($pattern, $single, $from_invoice); -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is it worth using apache2 with php 4.3.4

2005-08-19 Thread Matthew Weier O'Phinney
* bala chandar <[EMAIL PROTECTED]>: > i am now using apache 1.3.x with php 4.3.4 > > is it worth upgrading to apache 2.x Currently, no: http://ilia.ws/archives/32-Apache-1-vs-Apache-2-Performance.html -- Matthew Weier O'Phinney Zend Certified Engineer http://weier

Re: [PHP] How to suppress HTTP headers?

2005-08-18 Thread Matthew Weier O'Phinney
is not a valid header, for starters. > > You MIGHT be able to "wipe out" the headers PHP sends by doing > something like: > > header("Content-type:"); //Wipe out Content-type: > > but I wouldn't cound on it. > > Sounds to me like the remote

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Matthew Weier O'Phinney
n order to: * generate an SSH key * send the key to the remote server Then, on the remote server, add the SSH key to the appropriate user on that system. Good luck! > Quoting Matthew Weier O'Phinney <[EMAIL PROTECTED]> : > > > * Roger Thomas <[EMAIL PR

[PHP] Re: optional argument when creating a function

2005-08-17 Thread Matthew Weier O'Phinney
array_shift($args); // Get $link: $link = array_shift($args); } ... } -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: run remote shell script

2005-08-17 Thread Matthew Weier O'Phinney
l not be needed), and then in your script you would call: system('ssh svrB /path/to/scriptToRun'); -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Form Processor?

2005-08-16 Thread Matthew Weier O'Phinney
alidate and filter forms. Documentation is still pending, but much of the usage is documented in the class files themselves. http://solarphp.com/ patForms also looks good, and is a stable, robust product -- http://www.php-tools.net/site.php?file=/patForms/overview.xml -- Matthew Weier O&

[PHP] Re: which operating system?

2005-08-15 Thread Matthew Weier O'Phinney
mploy also allows seamless upgrades in most situations. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Matthew Weier O'Phinney
* Robert Cummings <[EMAIL PROTECTED]> : > On Sat, 2005-08-13 at 23:51, Matthew Weier O'Phinney wrote: > > * Sebastian <[EMAIL PROTECTED]> : > > > Jochem Maas wrote: > > > > if you haven't seen it yet and are interested in the future > > >

[PHP] Re: 'God' has spoken... :-)

2005-08-14 Thread Matthew Weier O'Phinney
3.0/Woody Backup and all is working fine Actually, this is likely an issue with running Apache2 with *any* version of PHP. Try switching to Apache1 again with PHP5, and see if you get similar results. You shouldn't. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Matthew Weier O'Phinney
* Sebastian <[EMAIL PROTECTED]> : > Matthew Weier O'Phinney wrote: > > * Sebastian <[EMAIL PROTECTED]> : > > > why php6 and not php5? look how long it took to get to php4 (with php5 > > > just starting to rolling out) and people are already talking

Re: [PHP] 'God' has spoken... :-)

2005-08-13 Thread Matthew Weier O'Phinney
al, and those people who choose to use the features of PHP5 are not going to lose performance or functionality -- actually, quite the opposite. > i just hope php doesn't end up being bloat-filled with the not-so-useful > thing just taking up resources. I think one of the things I

[PHP] Re: wrapping text

2005-08-13 Thread Matthew Weier O'Phinney
ject), stripslashes($message), > "Return-Path: <[EMAIL PROTECTED]>\r\nFrom: \"[foo] foo\" <[EMAIL > PROTECTED]>\r\nbcc: > $bcc \r\nReply-To: [EMAIL PROTECTED] \r\n"."X-Mailer: PHP/" . phpversion()); Make "stripslashes($message)" into "wo

Re: [PHP] Blatantly Evil Question

2005-08-11 Thread Matthew Weier O'Phinney
ak the rest of the site or not? If you want to dynamically determine what to disallow based on the UserAgent string, simply tell Apache, via an .htaccess file, to pass robots.txt to PHP for handling. Then have that script do the processing and return output compatible with the robots.txt specification

[PHP] Re: PHP & smarty - nested queries and arrays

2005-08-11 Thread Matthew Weier O'Phinney
have a 'welcome' directory in your templates directory, and an Object.tpl file within -- and that they have permissions such that the web server can open them. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: dynamic object instances

2005-08-10 Thread Matthew Weier O'Phinney
ss from the args list // Do this if using a standard-named static instantiator method // across classes; in this case 'init': return call_user_func_array(array($class, 'init'), $args); // Or use a function named after the class name as the instantiator // met

Re: [PHP] php output to string

2005-08-10 Thread Matthew Weier O'Phinney
* Jesús Fernández <[EMAIL PROTECTED]>: > thanks, it works, but that returns the php code. > what i actually need is the output of that php code evaluated. So eval() the string... -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP Gen

Re: [PHP] Re: need help finding parsing error please

2005-08-05 Thread Matthew Weier O'Phinney
* Jochem Maas <[EMAIL PROTECTED]> : > Matthew Weier O'Phinney wrote: > > * Bruce Gilbert <[EMAIL PROTECTED]> : > > > > > > I am getting this on the following code, and I am not sure what is > > > causing the error and need some pros

[PHP] Re: need help finding parsing error please

2005-08-05 Thread Matthew Weier O'Phinney
the end to this elseif? You follow it immediately with the following lines, which simply won't work (can't define functions inside if() blocks). > //Function saves time and space by eliminating unneccesary code > function check($fieldname) > { -- Matthew Weier O'Phinney

[PHP] Re: WAMP Performance Tuning

2005-08-04 Thread Matthew Weier O'Phinney
heavy hitting boxes in order to get good performance. They don't hurt, but they're not necessary. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Class constants

2005-08-04 Thread Matthew Weier O'Phinney
hing = BAR; private $thing = $_SERVER['SCRIPT_NAME']; // etc. So, in other words, the issues you're seeing are consistent with the documentation. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: overwrite private class members in php5?

2005-08-04 Thread Matthew Weier O'Phinney
;printVar(); // prints 2 I got 1 when running this -- just as I would expect. Are you sure it printed 2? Basically, if a property is undeclared, it is assumed public, so you can set undefined properties without issue. If defined private or protected, the calling script will not be able to

[PHP] Re: Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-04 Thread Matthew Weier O'Phinney
an infinite loop and causing segfaults. Once I tracked that down and fixed it, everything worked fine. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to determine if a script instance is already running?

2005-08-04 Thread Matthew Weier O'Phinney
; > process with that PID is still running, but that tends to be less > > > reliable. > > > > > > If the process does decide to continue in spite of the PID file existing > > > it should issue a a shell kill command to kill that PID in case it's > > > hung or a zombie. > > > > > > -Stut > > > > Excelent point! -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: syntax highlighting your php code on a web page

2005-08-04 Thread Matthew Weier O'Phinney
anual/page/function.ldap-add.html > > Please note this is just an example page which highlights what I am after... There's a few ways. highlight_file() and highlight_string() will do it. Another way is to symlink to the .php file as extension .phps -- and provide a link to the .phps file

[PHP] Re: shell_exec("zip.. ?

2005-08-04 Thread Matthew Weier O'Phinney
;t work. Try: shell_exec("zip -r ddd.zip ddd"); -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can I use Apache v 2 with PHP?

2005-07-27 Thread Matthew Weier O'Phinney
e a late version of PHP 5.1, if not even another minor version (5.2, 5.3) before it's complete. By the way -- I'm hoping you meant Apache 1.3.33, and not Apache 1.3.3... ;-) -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing

[PHP] Re: <<< performance.

2005-07-26 Thread Matthew Weier O'Phinney
g heredoc syntax *does* take longer). I personally prefer heredocs when using long, multiline strings to using double quotes -- they're easier to maintain. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a home-grown function

2005-07-26 Thread Matthew Weier O'Phinney
ith both statements. Echoing and breaking out of PHP are typically both undesirable in large applications where you may wish to change headers. Capture your output into a variable and send it to output once all processing is done. This may be done using output buffering or other techniques. --

[PHP] Re: quick question about using capital letters coding w/ PHP

2005-07-24 Thread Matthew Weier O'Phinney
manual, specifically the variables section: http://php.net/variables Cheers! -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR DB issue

2005-07-23 Thread Matthew Weier O'Phinney
no response there, or if no solutions are forthcoming, file a bug report with PEAR::DB. PEAR::DB *is* under active maintainership, from what I can tell, and some of the more recent changes had to do with MS-SQL report, if memory serves. Good luck! -- Matthew Weier O'Phinney Zend Certified Eng

Re: [PHP] Content Header

2005-07-22 Thread Matthew Weier O'Phinney
g Content-Type. They were also sending Content-Disposition in order to indicate the suggested filename -- and wanted to alternately either send the filename *or* have the content echoed to the screen. The 'solution' was to use different URLs, and set Content-Disposition to either 

Re: [PHP] db insert question

2005-07-21 Thread Matthew Weier O'Phinney
> > takes ages, is their a way to loop over the array of form data then > > > maybe do the same to enter it into a database? > > > > > > Thanks for any help. > > > > A generic question begs a generic answer: > > > > foreach($formdata as $thi

[PHP] Re: Content Header

2005-07-20 Thread Matthew Weier O'Phinney
o different links, with an optional download flag in the query string. Then, in your script, generate the Content-Disposition header for 'download' requests, don't otherwise. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >