> "S" == "K Simon" <[EMAIL PROTECTED]> writes:
> Thx, but could anybody give me an example? It shouldnt be too hard?!
If you feel you have to do it in php then this should work. You'd save
a lot of effort if you used the unix 'cut' command though.
cut -d ' ' -f 1 inputfile.txt > outputfil
> "BC" == Brian Clark <[EMAIL PROTECTED]> writes:
> Hello Dallas,
> (DK == "Dallas Kropka") [EMAIL PROTECTED] writes:
DK> Posted earlier but got no response so here it is again...
> I gave you a quick explanation of one way to do it earlier, but I
> know of no tutorials off the to
g Apache then you can
do it with a few lines in your config file using mod_rewrite.
Something similar to:
RewriteEngine On
RewriteRule ^/([^/]+)/(.*) /scripts/$2 [E=companyname:$1]
Which given a url such as http://yoursite.com/mycompany/index.php
should (I've not tested it) call /s
umptions about the order of the fields in the form is dangerous.
Making assumptions about the order of an associative array is doubly so,
although PHP seems remarkably forgiving about it.
But assuming that's really what you want:
$value)
ng its contents
> rather than just trusting the extension that was typed.
Or look at the mime type held in $HTTP_POST_FILES['uploadname']['type']
--
Robin Vickery.
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2
the initial values in the hash, you
can do it with array_flip() like this:
You'll end up with a hash like this:
$form = array(
'firstname' => 0,
'lastname' => 1,
'city' => 2,
>>>>> "MT" == Martin Thoma <[EMAIL PROTECTED]> writes:
> Hello ! How can I use eregi_replace to replace every ">" with
> ">", except when it's "" ??
You need a lookbehind assertion...
$stri
[EMAIL PROTECTED] (Stefen Lars) writes:
> In the Apache config file, we have the following directive:
>
> SetEnvIfNoCase Referer "^http://www.oursite.com/"; local_ref=1
>
>
> Order Allow,Deny
> Allow from env=local_ref
>
>
> We use this to prevent people from directly linking to .gif and
[EMAIL PROTECTED] (Mike Gifford) writes:
> Hello,
>
> I'm trying to replace a couple of lines of code:
>
> $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.'));
> $extension = substr($userfile_name, $dotpos);
>
> with a simpler regular expression:
> $extension
[EMAIL PROTECTED] (Martin Lindhe) writes:
> > Hi Martin,
> >
> > Take a look at the Apache mod_rewrite docs.
> >
> > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
>
>
> Thanks alot!
> I made a similar solution which works
>
> RewriteEngine on
> RewriteRule "^/x/(.*)"
[EMAIL PROTECTED] (Richard Lynch) writes:
> A "callback" is when you execute a function, and you provide to it a name of
> *another* function, which it will call on some data in the middle of its
> task.
>
> It's a very handy way to provide extreme flexibility in functional
> languages.
>
> For
[EMAIL PROTECTED] (George Pitcher) writes:
> Andrew,
>
> I am in a similar position witha Lasso site, which I am considering php-ing.
> I need to do conditional redirects.
>
> George P, Edinburgh
>
> - Original Message -
> From: "Andrew Penniman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTE
[EMAIL PROTECTED] (Balaji Ankem) writes:
> What is the problem with following code..
> $sql1="DELETE from tinventory where inv_tag='$inv_tag';
no closing doublequote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
On Fri, 10 Sep 2004 11:43:54 +0200, Wouter van Vliet
<[EMAIL PROTECTED]> wrote:
>
> For my own reasons (can explain, would take long, won't till sbody
> asks) I want to match a quoted string within a string. That is somehow
> kind of easy, I know ... if it weren't for the slashing of quotes.
The
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning
<[EMAIL PROTECTED]> wrote:
> The problem is that if the item is at index 0 in the array, array_search gives the
> same answer as if it's not in there at all.
No it doesn't.
If it's in index 0 it returns 0, if it's not there at all it returns FA
On Thu, 7 Oct 2004 14:04:00 +0800, Roger Thomas <[EMAIL PROTECTED]> wrote:
> I have this short script (below) that does checking whether a userid has an
> associated jpegPhoto in an LDAP database. The script is working fine but gave a
> 'Notice' msg bcos I made error_reporting to report all erro
> Original-Recipient: rfc822;[EMAIL PROTECTED]
It's whoever's subscribed under the address [EMAIL PROTECTED] - I
tried complaining to them a couple of weeks ago but got no response.
One of the few times I *haven't* got a response from them in fact.
-robin
--
PHP General Mailing List (http://
On Wed, 20 Oct 2004 01:02:12 -0500, Chris Ditty <[EMAIL PROTECTED]> wrote:
> Hi all. I'm trying to do a little code snippets page for a site I am
> working on. I figured it would be simple enough. I would do a
> str_replace and replace the various html codes with the ascii
> eqivulant. Unfortun
2009/6/2 Skip Evans
> Hey all,
>
> The original programmer created the following in the system's .htaccess
> file:
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule .* index.php
>
> ...which sends any incorrect URL to the home page, correct?
It rewrites
2009/6/8 HELP!
> opening of the sorket is ok and writting LOGIN packet to the sorket is also
> ok but reading the response to know if the login is accepted or rejected is
> a not OK.
Don't use fread() to read from sockets, use stream_get_contents(). Example 3
on the fread() manual page tells yo
2009/6/10 Dotan Cohen
> > Just checked your site in Elinks (works like Lynx) and I'm getting the
> > headers come back to me. I'm assuming you changed your site code before
> > me sending this and after you sent the original message?
> >
>
> The individual headers are as they always were. It's th
2009/6/10 Robin Vickery
>
>
> 2009/6/10 Dotan Cohen
>
>> > Just checked your site in Elinks (works like Lynx) and I'm getting the
>> > headers come back to me. I'm assuming you changed your site code before
>> > me sending this and after you sen
2009/6/11 PJ
> How can order by be forced to order alphabetically and ignore accents
> without stripping the accents for printout? This is a problem for both
> caps & normal letters.
Depends on the database.
If you're using mysql, the order is governed by the collation used. To get
the order y
2009/6/11 PJ
> Robin Vickery wrote:
> >
> >
> > 2009/6/11 PJ mailto:af.gour...@videotron.ca>>
> >
> > How can order by be forced to order alphabetically and ignore accents
> > without stripping the accents for printout? This is a pro
Hello Mr HELP!
2009/6/12 HELP!
>
> I can not get the stream_get_contents() to work. it's returning empty.
Is that simply because there's nothing to read from the socket?
> If you have a login details "ALOGINPASS 1A" cant you just fwrite($ft,
> "ALOGINPASS 1A"); or do you need to add other thi
On 21/01/07, Arno Kuhl <[EMAIL PROTECTED]> wrote:
-Original Message-
From: Vinicius C Silva [mailto:[EMAIL PROTECTED]
Sent: 21 January 2007 02:54
To: php-general@lists.php.net
Subject: [PHP] most powerful php editor
For me the analogy goes something like this: if you type the occasional
On 16/02/07, Eli <[EMAIL PROTECTED]> wrote:
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason is, that in order to pop the key-value pair, you do:
1,'b'=>2,'c'=>3,'d'=>4);
$arr_keys = array_keys($arr);
$key = array_pop($arr
On 16/02/07, Németh Zoltán <[EMAIL PROTECTED]> wrote:
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta:
> On 16/02/07, Eli <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Why isn't there a function that acts like array_pop() returns a pair of
&g
On 22/02/07, Aaron Gould <[EMAIL PROTECTED]> wrote:
I tried this earlier, but it does not seem to work... It appears to
just hang when no data is returned from the networked device. It seems
as if the loop stops, and is waiting for something.
http://www.php.net/manual/en/function.pcntl-alar
On 28/03/07, Satyam <[EMAIL PROTECTED]> wrote:
if you find accented letters, it is a sure sign that it is not English
That's a rather naïve approach. Written accents in English may be
rather passé, but they do exist.
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
On 29/03/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote:
Ave,
I have a script where I have to provide a Download Link to a file associated
with a record. The common thing between the record & filename is the phone
number. But the filenames have dates & other symbols besides the phone
number
On 01/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
So, after a recent thread on data filtering, I'm wondering...
Is this "good enough" in ALL possible Unicode/charset situations:
$foo_id = (int) $_POST['foo_id'];
$query = "insert into whatever(foo_id) values($foo_id)";
Or is it possible, ev
On Tue, 15 Jun 2004 09:50:55 -0400, Jeff Schmidt
<[EMAIL PROTECTED]>
> I have some tags that look like:
>
>
>
> And session management is rewriting these as:
>
>
>
> Which at first glance appears fine, right? But the problem is, according
> to the validator, instead of having a literal ampersand
On Tue, 15 Jun 2004 13:20:24 -0400, Steve Douville <[EMAIL PROTECTED]> wrote:
>
> I've forgotten how to assign something like this...
>
> $someStr = EOF>>>"
> bunch of raw non-echo'd html
> "
> EOF>>>;
>
> But can't seem to get the right syntax. Tried looking in the manual, but
> don't eve
On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote:
>
> Hi list,
>
> on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting
> 'test2':
>
> class test {
> function printClass() {
> echo __CLASS__;
> }
> }
>
> class test2 extends test
On Wed, 16 Jun 2004 09:40:52 -0400, Bob Lockie <[EMAIL PROTECTED]> wrote:
>
> What is the best way to only do an update if it going to update only one
> row?
You don't say what database you're using.
The general way is to use a unique key in the WHERE clause.
UPDATE tablename SET foo=1 WHERE
On Fri, 18 Jun 2004 08:57:19 +0200 (CEST), Ulrik S. Kofod
<[EMAIL PROTECTED]> wrote:
>
> Sorry to post this again but it's a little urgent.
>
> The preg_replace in my script allocates a little memory every time it is called and
> doesn't free it again untill the script ends.
>
> I don't know if
On Fri, 18 Jun 2004 05:46:12 -0300, Manuel Lemos <[EMAIL PROTECTED]> wrote:
>
> On 06/18/2004 05:40 AM, Me2resh wrote:
> > is there a function to detect the path of the directory
> > i need my file to detect the path it is on it, not the http path but the
> > path on server
> > please help me with
On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> is there a way to use one variable to create another?
> Example
> $poo=1
> and i want
> $lie1
> OR
> $poo=2
> and i want
> $lie2
If I understand you right, you want:
${'lie' . $poo}
when $poo is 1, that will give yo
On Sat, 19 Jun 2004 13:25:54 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> How do I iterate over fields when I perform the below script:
...
> If I write the below code, I only get the first field name of each
> row...which makes sense
> In this case, I get 'artist_name'
>
> while ($row
On Tue, 22 Jun 2004 14:57:28 -0400, Ryan Schefke <[EMAIL PROTECTED]> wrote:
>
> Could someone please help me with an eregi statement.
>
> I have a string that can vary as such:
>
> client1/album/album_121-2132_IMG.JPG
>
> client2/album/album_121-2132_IMG.JPG
>
> client59/album/album_121-2132_I
On 18/09/2007, Christoph Boget <[EMAIL PROTECTED]> wrote:
> I looked in the docs but didn't see anything regarding case
> insensitivity and I fear the functionality doesn't exist. I'm just
> hoping I'm looking in the wrong place.
>
> Is there a way to get ksort to work without regard to case? Whe
On 09/10/2007, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> Good afternoon gurus and guru-ettes!
>
> I am searching for an algorithm that will take a list of monetary values
> and determine which of these values totals a value supplied to the
> widget.
>
> 1. I supply a value to the application and g
On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
> hi
> I have a problem with calling functions:
>
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if ($function ==
On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
>
>
> Robin Vickery wrote:
> > On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
> >
> >> hi
> >> I have a problem with calling functions:
> >>
> >> >> fun
On 25/10/2007, Werner Schneider <[EMAIL PROTECTED]> wrote:
> Hi.
>
> Are there any limitations of preg_replace and is there
> a way to change them (for example with ini_set)?
>
> I got a php 4.4.7 on a linux-webhoster which crashes
> without error-message on this script:
> $txt = "";
>
On 30/10/2007, Stijn Verholen <[EMAIL PROTECTED]> wrote:
> Hey list,
>
> I'm having problems with grouped alternative patterns.
> The regex I would like to use, is the following:
>
> /\s*(`?.+`?)\s*int\s*(\(([0-9]+)\))?\s*(unsigned)?\s*(((auto_increment)?\s*(primary\s*key)?)|((not\s*null)?\s*(defau
On 30/10/2007, Per Jessen <[EMAIL PROTECTED]> wrote:
> Larry Garfield wrote:
>
> > On Monday 29 October 2007, Per Jessen wrote:
> >> Cristian Vrabie wrote:
> >> > Hmm 117,223 hosts with php4 only support. Did you actually checked
> >> > how many have php5 support? Many more.
> >>
> >> There are 178
On 31/10/2007, Steven Macintyre <[EMAIL PROTECTED]> wrote:
> Hiya,
>
> I have the following code ... which only seems to result in one item ...
> which is incorrect ... can anyone spot my problem?
>
> if ($armbase != "") {
> $options = explode(",", $armbase);
>
On 31/10/2007, Steve Marquez <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I have a script that looks for the variable to be NULL and then execute. Is
> there a way for the script to look for anything or something in the variable
> and then execute?
>
> Ex:
>
> If (Œ$a¹ == Œ ANYTHING¹) {
oh dear, kr
On 05/11/2007, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> 2007. 11. 5, hétfő keltezéssel 06.10-kor Ronald Wiplinger ezt írta:
> > Jim Lucas wrote:
> > > Ronald Wiplinger wrote:
> > >> I have a file linked with require into my program with statements like:
> > >>
> > >> define("_ADDRESS","Address");
On 06/11/2007, Neil Saunders <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm experiencing some differences in in the return values of strftime
> on Windows & Linux platforms on PHP 5.2.1. I've knocked up a test case
> to demonstrate the bug:
>
>
> $UNIX_TIME = mktime(0,0,0,5,31,2008);
> echo "Time Ma
On 06/11/2007, Neil Saunders <[EMAIL PROTECTED]> wrote:
> Hi Robin,
>
> Thanks for your reply. The times are exactly synchronized. I'm looking
> at the date section in the output of phpinfo(), and get the following:
>
> Development
> Default timezoneEurope/London
>
> Production:
> Default t
On 07/11/2007, kNish <[EMAIL PROTECTED]> wrote:
> Hi,
>
> A newbie question. I have more than one table to access from a database.
>
> When I use the code as below, it gives no response on the web page.
>
> What may I do to run more than one table from the same database into the
> script.
Firstly,
On 08/11/2007, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Al wrote:
> > Delimiters needed. Can use about anything not already in your pattern.
> > "/" is very commonly used; but I like "#" or "%" generally; but, you
> > can't use "%" because your pattern has it.
> >
> > $html = preg_replace("#%ResI
On 12/11/2007, Ronald Wiplinger <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > Ronald Wiplinger wrote:
> >> My php program is working with Firefox, but not with Internet Explorer.
> >
> > Nothing to do with php, your problem is javascript.
> >
> >> Is there a tool to find the problem?
> >
> > For IE
On 16/11/2007, Paul van Haren <[EMAIL PROTECTED]> wrote:
> I'm trying to use arrays to implement a sort of data tree. For the code to
> work, it is essential that the nodes can be edited after they have become
> part of the tree. That would require that the array elements are pushed
> "by reference
On 28/11/2007, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote:
> On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote:
> > I have an application, where I use pictures. The size of the picture is
> > about 90kB and to speed up the preview, I made a thumbnail of each
> > picture which is about
On 10/12/2007, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Dec 10, 2007 5:29 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > On Mon, 2007-12-10 at 14:22 -0600, Jay Blanchard wrote:
> > > [snip]
> > > Can you say for certain nature is truly random? Just because the seed
> > > may have occurred
On 12/12/2007, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Dec 12, 2007 9:00 AM, tedd <[EMAIL PROTECTED]> wrote:
> > At 3:04 PM -0500 12/10/07, Daniel Brown wrote:
> > > Unfortunately, because computers are logical, there's no such
> > >thing (at least as of yet) as a truly random number being
On 19/12/2007, js <[EMAIL PROTECTED]> wrote:
> Hi Jochem,
>
> Sorry, I missed "static".
> So, getDB() would works like singleton, right?
> I agree that's better method to manage dbh.
The technique is called memoization (http://en.wikipedia.org/wiki/Memoization).
-robin
--
PHP General Mailing Li
On 21/02/2008, Nathan Rixham <[EMAIL PROTECTED]> wrote:
> The regex looks incorrect to me in a few places:
> -\d+] {1,4}
> for example.
That's ok, albeit confusing:
* The ']' is a literal ']' not the closing bracket of a character class.
* The {1,4} applies to the space character.
-robin
--
On 25/02/2008, Rob Gould <[EMAIL PROTECTED]> wrote:
> I've got 2 tables. One table which contains a series of barcodes assigned to
> product id #'s, and another table with JUST product id #'s.
>
> I need to somehow transfer all the barcodes from the first table into the
> second table, but only
On 28/02/2008, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2008-02-28 at 12:39 +, Nathan Rixham wrote:
> > Aschwin Wesselius wrote:
> > > Stut wrote:
> > >> Just because it works doesn't mean it's right.
> > >>
> > >> -Stut
> > >>
> > >
> > >
> > > What I meant was that I t
Hiyah,
Here's a trick you can use to evaluate expressions within strings. It
may not be particularly useful, but I thought it was interesting.
It exploits two things:
1. If you interpolate an array element within a string, the index of
the element is evaluated as a php expression.
2. You can ca
On 20/03/2008, Lamp Lists <[EMAIL PROTECTED]> wrote:
> hi,
> I saw several times that some people use this
>
> $parameters = array(
> 'param1' => "{$_POST["param1"]}",
> 'param2' => "{$_POST["param2"]}"
> );
>
> or
>
> $query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'")
On 20/03/2008, Robin Vickery <[EMAIL PROTECTED]> wrote:
> Hiyah,
>
> Here's a trick you can use to evaluate expressions within strings. It
> may not be particularly useful, but I thought it was interesting.
>
> It exploits two things:
>
> 1. If you interpola
On 27/03/2008, Christoph Boget <[EMAIL PROTECTED]> wrote:
> Let's say I have the following structure:
>
>
>
>
>
>
>
>
>
>
>
>
On 27/03/2008, Christoph Boget <[EMAIL PROTECTED]> wrote:
> > > Is that possible? Or is this something I'd have to do programatically
> > > using the nodes returned by the XPath query? Basically, I'm just
> > > trying to get a fragment of the larger xml document...
> > //[EMAIL PROTECTE
On 28/03/2008, Bastien Koert <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 10:23 PM, Bill Guion <[EMAIL PROTECTED]> wrote:
>
> > At 1:28 PM -0400 3/26/08, Al wrote:
> >
> > >I'm scripting a simple registry where the user can input their name
> > >and email address.
> > >
> > >I'd like
On 28/03/2008, Bagus Nugroho <[EMAIL PROTECTED]> wrote:
> Hello,
>
> If I have an array like this
> $dataArray = array(0=>array('type'=>'da'), 1=>array('type'=>'wb'),
> 2=>array('type'=>'da');
>
> How I can filtering to get only 'da' only, like this
>
> $newDataArray = array(0=>array('type'=>'
On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> Quoting Luca Paolella <[EMAIL PROTECTED]>:
>
>
> > How do I install/activate the GD library with my existing PHP version?
> > I'm quite sure it isn't already, since I got this error:
> >
> > Fatal error: Call to undefined function imagecr
On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> Quoting Robin Vickery <[EMAIL PROTECTED]>:
>
>
> > On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote:
> >
> > > Quoting Luca Paolella <[EMAIL PROTECTED]>:
> > >
On 10/04/2008, Jason Norwood-Young <[EMAIL PROTECTED]> wrote:
> On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote:
>
> > > First post to this list! I'm trying to figure out how to evaluate a
> > > string with a mathematical expression and get a result, but without
> > > using eval() as I'm a
On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> > What about encapsulation?
>
> Interfaces have nothing to do with encapsulation for the smple reason
> that I
> can have encapsulation without using interfaces.
Unique use of logic there.
By similar reasoning; swimming trunks
On 16/04/2008, Tony Marston <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: Robin Vickery [mailto:[EMAIL PROTECTED]
> > Sent: 16 April 2008 17:23
> > To: Jay Blanchard
> > Cc: Tony Marston; php-general@lists.php.net
> >
2008/5/1 Richard Luckhurst <[EMAIL PROTECTED]>:
> Hi Chris,
>
> In perl ther is the concept of @_ which is the list of incoming parameter
> to a
> subroutine. It is possible to have something like
>
> my $sock = shift;
>
> As I understand this the first parameter of the @_ list would be shift
2008/4/30 Nathan Nobbe <[EMAIL PROTECTED]>:
> On Wed, Apr 30, 2008 at 2:58 PM, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> > but I was thinking if there is the function does that.
> >>
> >
> > array_filter(). Note this:
> >
> > "If no callback is supplied, all entries of input equal to FALSE
2008/5/13 Stut <[EMAIL PROTECTED]>:
> On 13 May 2008, at 09:04, Peter Ford wrote:
>
> > I think the onus is on the coders of Urchin to document how to avoid
> errors when Javascript is disabled, not the site developer who uses it.
> >
>
> Just to repeat a point I made yesterday which was clearly e
2008/5/13 Stut <[EMAIL PROTECTED]>:
>
> On 13 May 2008, at 10:32, Robin Vickery wrote:
>
> > 2008/5/13 Stut <[EMAIL PROTECTED]>:
> >
> > > On 13 May 2008, at 09:04, Peter Ford wrote:
> > >
> > >
> > > > I think the onus is on
2008/5/14 Per Jessen <[EMAIL PROTECTED]>:
> All,
>
> not really PHP related, but I figured someone here would already
> have solved this problem.
> I've got a page with a single . I change the src attribute
> dynamically using javascript. Although the images being served all
> have long expi
On 15/05/2008, Al <[EMAIL PROTECTED]> wrote:
> Make certain your steam is compressed
> http://www.whatsmyip.org/mod_gzip_test/
Compressed steam can be dangerous:
http://en.wikipedia.org/wiki/2007_New_York_City_steam_explosion
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
On 15/05/2008, John Gunther <[EMAIL PROTECTED]> wrote:
> Iv Ray wrote:
>
> > John Gunther wrote:
> > > What technique can I use to take an 8-byte double precision value, as
> > > stored internally, and assign its value to a PHP float variable without
> > > having the bytes misinterpreted as a ch
2008/5/21 Stut <[EMAIL PROTECTED]>:
> I was going to ignore this, but I'm in a confrontational mood today, so
> please accept my apologies for the noise.
>
> On 21 May 2008, at 14:08, Michelle Konzack wrote:
>
>> Am 2008-05-12 15:40:54, schrieb Stut:
>> Note: I am working for the french Ministry o
2008/5/22 Philip Thompson <[EMAIL PROTECTED]>:
> I'm sure Stut (and others) have said enough, but I can no longer resist...
>
> On May 21, 2008, at 8:08 AM, Michelle Konzack wrote:
>
>> Am 2008-05-12 15:40:54, schrieb Stut:
>>
>> I do not know, what this urchinTacker() does, but since it is na
2008/5/27 Manuel Pérez López <[EMAIL PROTECTED]>:
> Hello:
>
> I need to include a pair of negations with two complete word into a regular
> expresion for preg_replace. How to do this?
> I want to replace "I want to be a SUN and a SIR" with "FRIKI FRIKI FRIKI
> FRIKI FRIKI SUN FRIKI FRIKI SIR"
>
>
2008/5/29 Sudhakar <[EMAIL PROTECTED]>:
> my question is about validation using php. i am validating a username which
> a user would enter and clicks on a image to find
>
> if that username is available. example if a user enters abc#123 php file is
> reading this value as abc ONLY which i do not
>
2008/6/13 Iv Ray <[EMAIL PROTECTED]>:
>> 2. It's useful if the host company and the client keep the same office
>> hours.
>
> If you have a hosting company with 9 to 5 office hours, you are dead, even
> if it is next door.
Out of hours technical support often gets billed at a punitive rate.
Which
2008/6/14 Iv Ray <[EMAIL PROTECTED]>:
> Robin Vickery wrote:
>>
>> Out of hours technical support often gets billed at a punitive rate.
>> Which is a bugger if their "out of hours" is your working day.
>
> It seems you haven't tried Rackspace (UK) ye
On 25/04/07, Dotan Cohen <[EMAIL PROTECTED]> wrote:
On 25/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, April 24, 2007 4:16 pm, Dotan Cohen wrote:
> > I have some categories named in the database as such:
> > OpenSource
> > HomeNetwork
> >
> > I'd like to add a space before each capit
On 25/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Wed, April 25, 2007 5:09 am, Zoltán Németh wrote:
> 2007. 04. 25, szerda keltezÃ(c)ssel 11.53-kor Henning Eiben ezt Ãrta:
>> Zoltán NÃ(c)meth schrieb:
>>
> not exactly. it pre-compiles them to opcodes and stores the opcode
> blocks. the i
On 01/05/07, Daevid Vincent <[EMAIL PROTECTED]> wrote:
> > > echo << > > BROWSER: $_SERVER[HTTP_USER_AGENT]
> > > EOF;
> >
> > Isn't that form (sans quote marks) deprecated and frowned upon?
>
>
> error_reporting( E_ALL );
>
> echo << BROWSER: $_SERVER[HTTP_USER_AGENT]
> EOF;
>
> Why would clean
On 16/05/07, Micky Hulse <[EMAIL PROTECTED]> wrote:
Hi folks, I hope everyone is having a good week. :)
Let me cut to the chase... Basically, I need to get this:
http://www.site.com/folder/foo
To work like this:
$_SERVER['DOCUMENT_ROOT'].'folder/foo/file.ext';
For use with getimagesize() and
On 16/05/07, Lee PHP <[EMAIL PROTECTED]> wrote:
/** Insert record. */
public function insert() {
$sql = "INSERT INTO table (" .
"field_1, " .
"field_2, " .
"field_3) " .
"?, " .
"?, " .
On 18/05/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
>
> The extra comma at the end of the array definition is still
> valid syntax in
> PHP. Try for yourself:
>
> php -r '$a = array("a" => "foo", "b" => "bar",); print_r($a);'
Interesting. Do you mean 'Valid Syntax' in that it 'works without err
On 22/05/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-05-22 at 13:47 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > Nothing said it was important, but why implement a half-assed solution
> > when you can implement a superior solution in as mu
On 31/05/07, blueboy <[EMAIL PROTECTED]> wrote:
On my localhost this works fine
$result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title, id,
display FROM NEWS");
1. check return values, $result should not be false unless there's a problem.
2. if $result is false, check mysql
On 06/06/07, blueboy <[EMAIL PROTECTED]> wrote:
I want to force users to insert landscape rather portrait images. I don't
want to be too pedantic about it but they do need to have an approximate 4x3
aspect ratio.
This is my code so far.
$max_height = "500"; // This is in pixels
$max_width = "50
On 06/06/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:
> On 6/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
>>
>> I need to strip out a domain name from a URL, and ignore subdomains
>> (like www)
>>
>> I can use parse_url to get the hostname. And my first thought was to
>> take th
On 10/06/07, Dave M G <[EMAIL PROTECTED]> wrote:
PHP General List,
With a little help from the web, and help from this list, I have a
simple CAPTCHA image that works within the content system I'm building.
But it's *really* simple. Basically white text on a black background,
with a couple of wh
1 - 100 of 272 matches
Mail list logo