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
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
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
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'
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
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
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:
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
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
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)
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
.)+[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
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
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..
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
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
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
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
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
/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
any thanks,
Matthew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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
* 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
> >
* 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
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 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
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/
-
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
* 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
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
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
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
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
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&
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
* 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
> > >
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
* 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
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
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
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
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
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
* 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
* 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
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
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
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
;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
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
; > 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
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
;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
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
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
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.
--
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
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
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
> > 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
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 - 100 of 1121 matches
Mail list logo