Yeah, it doesn't work here, either.
On Thu, May 21, 2009 at 11:44 AM, Shawn McKenzie nos...@mckenzies.netwrote:
Ashley Sheridan wrote:
Tedd, I've got a fairly simple calendar script in PHP here
http://www.ashleysheridan.co.uk/coding.php?group=phparticle=coding_php_calendar.phpwhich
I'd be more fond of unrolling some of those loops and feeding the data into
a proper template than tweaking what looks like really half-arsed code.
On Thu, May 21, 2009 at 11:57 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Thu, 2009-05-21 at 10:44 -0500, Shawn McKenzie wrote:
Ashley
Suhosin is completely not-related to SQL, though, I don't know why you'd
bring it up...
On Thu, May 21, 2009 at 3:42 PM, Shawn McKenzie nos...@mckenzies.netwrote:
Michael A. Peters wrote:
Sumit Sharma wrote:
Hi,
I am designing a php website for my client which interact with
Moral of the story: if you use css classes ending in numbers, you're
probably a rapist and/or murderer.
On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie nos...@mckenzies.netwrote:
Daniel Brown wrote:
On Fri, May 22, 2009 at 08:02, Michael A. Peters mpet...@mac.com
wrote:
If I recall - it
or even just str_replace(' ' , '_', $name) consistent and works, no?
On Fri, May 22, 2009 at 2:21 PM, Bastien Koert phps...@gmail.com wrote:
On Fri, May 22, 2009 at 1:36 PM, Dee Ayy dee@gmail.com wrote:
Acceptable results, but could be better.
basename works correctly for only Safari
You can call methods from a classes's parents like so
class foo {
protected method bar() {
echo in foo!;
}
}
class foobar extends foo {
public function bar() {
parent::bar();
}
}
$fb = new foobar();
$fb-bar(); will output in foo!;
On Sun, May 24, 2009 at 3:58 PM, Nathan Rixham
I use Zend Studip (I coughed up the fee, and it's worth it) for PHP, JS,
HTML and CSS THere's a WYSIWYG HTML editor built in, and that's the only
drawback I hear from a lot of people about PHP IDE's. And, it's built on
Eclipse, so while I work on WIndows at work, I can keep the exact same setup
nrix...@gmail.com wrote:
Eddie Drapkin wrote:
You can call methods from a classes's parents like so
class foo {
protected method bar() {
echo in foo!;
}
}
class foobar extends foo {
public function bar() {
parent::bar();
}
}
$fb = new foobar();
$fb-bar(); will output in foo
With the initial explode, I may be wrong but I don't think it's possible to
force every entry to be string-typed. However, this little snippet could
help:
$foo = explode(';', $db);
foreach($foo as $bar) {
$bar = settype($bar, 'string);
}
which will set each element's type to string, but is
so much of that in this list: I need to... followed by a
description of some bizarre construct. I want to scream No! You have
painted yourself into a corner! Test your assumptions, or go back 5 steps
and start over.)
Thanks again
Ken
On May 24, 2009, at 9:38 PM, Eddie Drapkin wrote
If you want to change the server time ocmpletely and independent of PHP,
you're going to have to do it from the shell.
On Sun, May 24, 2009 at 11:36 PM, Sumit Sharma sumitp...@gmail.com wrote:
Yes, I works on windows as well well. Was looking for india time zone found
it as
-- Forwarded message --
From: Eddie Drapkin oorza...@gmail.com
Date: Mon, May 25, 2009 at 3:24 AM
Subject: Re: [PHP] php dev environment
To: Lester Caine les...@lsces.co.uk
Vim? Vi? PFT
If you're gonna CLI, CLI *like a man* and use emacs!
On Mon, May 25, 2009 at 3:21
the server.
**
From: Eddie Drapkin oorza...@gmail.com
Subject: Re: [PHP-DEV] PHP scalability problem
To: tRace DOliveira married...@yahoo.com
Cc: intern...@lists.php.net
Date: Wednesday, May 27, 2009, 2:55 AM
1) PHP is Rarely The Bottleneck:
http://talks.php.net/show/drupal08/http
agree with me that when building a large web application that people
would rather choose ASP.Net over PHP if people had to choose between those
two ?
--- On *Wed, 5/27/09, Eddie Drapkin oorza...@gmail.com* wrote:
From: Eddie Drapkin oorza...@gmail.com
Subject: Re: [PHP-DEV] PHP scalability
:
I also thought that it's PHP that causes the processes. Thanks that helps
me alot. So the problem is not with the language itself but the web
server(Apache)?
--- On *Wed, 5/27/09, Eddie Drapkin oorza...@gmail.com* wrote:
From: Eddie Drapkin oorza...@gmail.com
Subject: Re: [PHP-DEV] PHP
28, 2009 at 10:53 AM, Tony Marston
t...@marston-home.demon.co.uk wrote:
Eddie Drapkin oorza...@gmail.com wrote in message
news:68de37340905280737t3e1ad844y188ab8fa08f17...@mail.gmail.com...
Your code might not, but you sure do! Spending all that time writing
require statements
Hey, I'm looking to start playing with 5.3.0, and thus by extension,
namespaces. One of the things that I definitely need support for is
autoloading, and the docs aren't exactly explicit in some (obvious to me)
cases.
I have an autoloading class that internally handles file-not-found errors
and
...@gmail.comwrote:
On Sat, May 30, 2009 at 1:51 PM, Eddie Drapkin oorza...@gmail.com wrote:
Hey, I'm looking to start playing with 5.3.0, and thus by extension,
namespaces. One of the things that I definitely need support for is
autoloading, and the docs aren't exactly explicit in some (obvious to me
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1
Completely off topic, but www.pilotpig.net is down or buggered or
something! Looks like a squatter to me .
module for PHP and a simple apt-get install.
-Original Message-
From: Eddie Drapkin [mailto:oorza...@gmail.com]
Sent: Tuesday, May 26, 2009 8:20 PM
2) It's easier to start with a persistent caching
setup and go from there than apply one later. Look into memcache,
memcachedb
My suggestion to you is probably mosty a rehashing of what a lot of other
people have said. I definitely think you should take a good, hard look at
some existing solutions (frameworks, cms's, etc.) and decide whether you
want to use one or not. In my experience, which is admittedly limited,
There's a few things about your post I'd like to comment on. One, if you're
not using APC, I definitely agree with the fact that you're just wasting
resources. However, you mention micro-optimizations and say that they're
hardly useful, but in some cases it's a huge difference. ' vs. is like a
have the website
bluehost restricting the amount of processes a person can use. They
restrict you because of PHP and the processes a person uses, more pressure
the web server will have.
--- On *Wed, 5/27/09, Eddie Drapkin oorza...@gmail.com* wrote:
From: Eddie Drapkin oorza...@gmail.com
High-performance builds of mysql are still faster. And with 5.4 integrating
a lot of performance boosts, I'd expect MySQL to retain that lead for a lot
longer. There's also a lot more guides / support for MySQL around, as well
as having a more robust choosing of UDF's, if you were to need them.
Sadly, Mr. Saran wasted a lot of time writing a pluggable backend db layer,
as one is built into PHP now, PDO: http://us2.php.net/pdo
Sybase / MsSQL: http://www.php.net/manual/en/ref.pdo-dblib.php
Postgres: http://us2.php.net/manual/en/ref.pdo-pgsql.php
Oracle:
Why not just urlencode() the filename? (and suggest people use a URL
shortening service and/or provide one)
On Wed, Jun 3, 2009 at 12:31 PM, Richard Heyes rich...@php.net wrote:
Hi,
I have a file uploader module that allows users to upload documents and
of
course people are using all
wrote:
You mean like this? This would work as a good file name to be on the server
and link to?
$filename = urlencode($_FILES['myfile']['name']);
move_uploaded_file($_FILES['myfile']['tmp_name'], $filename);
Think that would do the trick?
Skip
Eddie Drapkin wrote:
Why not just urlencode
, on the
other hand.
On Wed, Jun 3, 2009 at 1:00 PM, Skip Evans s...@bigskypenguin.com wrote:
Oh, of course that makes sense, and I suppose the PHP move_uploaded_file()
function has no problem with weird and crappy file names?
Skip
Eddie Drapkin wrote:
Well, erm, no.
I'd store the filename, etc
just initially, and this might be a typo but
$FilePath =
http://localhost:/HarrisAutomate/output/WebImagesHiRes/$ImageName;;
//$BackupPath =
http://localhost:/HarrisAutomate/WebImagesHiRes/output/backup/;;
$FilePath has an /output/ that $BackupPath doesn't.
Also, make sure you don't
Another camper on the AES / Rijndael bandwagon. I don't think there's even
been a theoretical attack point for anything 128 bit, but I could be wrong.
And re: sha1, sha1 isn't an encryption algorithm...
On Wed, Jun 3, 2009 at 9:28 AM, Bruno Fajardo bsfaja...@gmail.com wrote:
Hi there!
Try
But it's client side software and you can't rely on it existing for general
use.
On Wed, Jun 3, 2009 at 2:52 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote:
On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel hemant.develo...@gmail.com
wrote:
Depends on how you look at it, I'd take the perspective that that's a
non-normal approach to the language and demonstrates a fuller understanding
of the language. Same as if you put (and I do) wrote an asynchronous
socket server in PHP. Despite the position PHP developers are usually
applying
While the technology is pretty immature at the moment, due to its under-use
no doubt, saying that PHP is never the tool for a desktop application is
pretty inane. While the primary developmental lifecycle is geared towards
web development (who's arguing that?), there's nothing really pervasive
Dan, I do appreciate when you share your pillow talk with the list at large.
Cheers,
Eddie
On Wed, Jun 10, 2009 at 9:06 AM, Robert Cummings rob...@interjinn.comwrote:
Daniel Brown wrote:
On Wed, Jun 10, 2009 at 01:41, R. S. Patilkpr.rspa...@gmail.com wrote:
Hi,
We are in phase of
The question then becomes whether he was one of the boring catchers and just
sort of sat there or was actively discussing with you.
On Wed, Jun 10, 2009 at 9:11 AM, Robert Cummings rob...@interjinn.comwrote:
Eddie Drapkin wrote:
Dan, I do appreciate when you share your pillow talk
The problem with using a database escaping string for output escaping is
that something like (despite being the world's lamest XSS)
script
location.href('google.com')
/script
Would output mostly the same and with some cleverness, it wouldn't be too
hard to get that to function properly with a full
I've been charged with writing a class that handles forms, once they've been
POSTed to. The idea of the class is to handle the most common use-cases of
POST forms, and any special functionality can be handled with a child class
at a later date, but for our uses, we're going to have mostly pretty
On Wed, Jun 10, 2009 at 2:08 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Wed, 2009-06-10 at 19:03 +0100, Ashley Sheridan wrote:
On Wed, 2009-06-10 at 23:17 +0530, Sudheer Satyanarayana wrote:
Ashley Sheridan wrote:
On Wed, 2009-06-10 at 23:05 +0530, Sudheer Satyanarayana
if(PHP_SAPI == 'cli') { }
or
if(php_sapi_name() == 'cli') { }
On Wed, Jun 10, 2009 at 3:42 PM, Tom Worster f...@thefsb.org wrote:
what's a reliable way to detect that the sapi is cli, including in a
included scripts?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
try set_time_limit(0) ?
On Thu, Jun 11, 2009 at 8:05 AM, Ford, Mike m.f...@leedsmet.ac.uk wrote:
On 11 June 2009 12:00, Ashley Sheridan advised:
On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote:
Hi!
I'm stuck.
I don't understand why the php CLI dies after 3 hours in my
On Thu, Jun 11, 2009 at 11:35 AM, PJ af.gour...@videotron.ca wrote:
Robin Vickery wrote:
2009/6/11 PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca
How can order by be forced to order alphabetically and ignore accents
without stripping the accents for printout? This
Correct me if I'm wrong, but should varchar 255 with a utf8 character set
mean 255 unicode characters, not octets?
On Fri, Jun 12, 2009 at 11:50 AM, Tom Worster f...@thefsb.org wrote:
say a table in the db has a varchar(255) column, 255 being the max number
of
octets of strings that can go in
:
I really don’t know the differences betwen MyISAM and InnoDB yet but I’ll
google for it right now.
Thank u.
*Zechim*
*De:* Eddie Drapkin [mailto:oorza...@gmail.com]
*Enviada em:* sexta-feira, 12 de junho de 2009 15:05
*Para:* Nitsan Bin-Nun
*Cc:* Jônatas Zechim; php-general
Alright, here's the situation. I'm wrapping memcached, which takes a list
of several servers, into a quasi-singleton. In other words, I want only one
instance per set of servers, not per server.
Assuming I had three memcached servers at localhost, 192.168.1.1 and
192.168.1.2, I wouldn't want
You could use list() a la
list($foo, $bar) = mysql_fetch_row();
On Mon, Jun 15, 2009 at 4:19 PM, PJ af.gour...@videotron.ca wrote:
Jay Blanchard wrote:
[snip]
Is there an easier or simpler way to do this?
[/snip]
http://us2.php.net/manual/en/function.mysql-fetch-row.php
In what way
I'm going to assume that your table is setup to have the rows BookID and
AuthorName, adjust accordinging:
function makeInsertQuery(array $authors, $bookId) {
$sql = INSERT INTO book_authors (BookID, AuthorName) VALUES ('$bookId', ';
foreach($authors as $author) {
$author =
Why not just compile it yourself?
On Wed, Jun 17, 2009 at 3:34 PM, Shawn McKenzienos...@mckenzies.net wrote:
Philipp Schaffner wrote:
Dear PHP [hard]core expert
After apt-get install php5-dev on Linux (Debian, Ubuntu, Hardy Heron)
with an already existing and functioning PHP5 interpreter
Total nitpick, but foreach is a control structure, not a function :P
On Thu, Jun 18, 2009 at 8:40 AM, Yuri Yarleigargari...@hotmail.com wrote:
You can try use the foreach function.
ex:
if ($res = mysql_query ($sql, $db)) {
/* I personally prefer res for resource, not results */
while ($r
It's the greatest movie I've ever seen. Canadians, Jesus, vampires
and lesbians, what hte hell else could you ask for in a film?
On Thu, Jun 18, 2009 at 3:50 PM, Paul M Fosterpa...@quillandmouse.com wrote:
On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote:
Okay, had to chime in
I've not heard of anything like that, but turning the C API into an
extension would be a huge plus for PHP and I heartily recommend it (as
long as it's not me writing it ^.^)!
On Fri, Jun 19, 2009 at 4:14 AM, Ianphp_l...@fishnet.co.uk wrote:
Hi,
A search of google has been unsuccessfull so I
Wait, that's not how everyone else gets ready for a coding marathon?
You guys are doing it wrong!
On Fri, Jun 19, 2009 at 7:03 PM, Dotan Cohendotanco...@gmail.com wrote:
I'm self-employed. I don't plan on ever laying myself off.
Mind out of the gutter, Rob. Words like self, laying, and
The same document root and different Vhosts?
On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsenl...@mit-web.dk wrote:
Hey List
Is there any good approach to share code between multiple sites? The
code might be on the same server but on different domains.
best regards
Lars
--
PHP General
Why not give a presentation, like in the first few, about compiling
PHP for yourself, as that's a pretty useful skill that's oft
neglected?
On Tue, Jun 23, 2009 at 4:12 AM, Per Jessenp...@computer.org wrote:
Manuel Aude wrote:
I'm giving a PHP course next semester (3 hours all saturdays for 22
Cons:
1. Can't easily edit information in the database
2. Can't display raw for the user (e.g. edit a forum post)
3. Uses more space in the DB
4. Isn't as easily indexed
5. Breaks il8n support of internal search engines (sphinx, lucene, etc.)
You're NEVER supposed to santize before inserting in
I think you've got the wrong mailing list, man.
On Tue, Jun 23, 2009 at 11:11 AM, Chris
Denmanchrisjden...@googlemail.com wrote:
Hi!
Just installed the latest release of GD on my Centos 5 server with no
installation issues and all libraries OK.
However, getting lots of:
[13973]ERR: 24:
It's just foreach($foo as $key = $item) { }
You can't assign the key by reference .
On Tue, Jun 23, 2009 at 3:04 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote:
Andres Gonzalez and...@packetstorm.com wrote on 06/23/2009
or $arr = file('foo.csv'); $count = count($arr);
On Wed, Jun 24, 2009 at 5:19 PM, Richard Heyesrich...@php.net wrote:
Hi,
To do the line count first, you have to read the whole file, how would
you do it?
Something like this:
$fp = fopen('/tmp/foo', 'r');
$count = 0;
while (!feof($fp))
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
At 8:30 AM +0100 6/25/09, Colin Guthrie wrote:
'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble:
The biggest problem in uploading a file is figuring out how large it is.
You
On Thu, Jun 25, 2009 at 10:29 AM, Stuartstut...@gmail.com wrote:
2009/6/25 Eddie Drapkin oorza...@gmail.com:
On Thu, Jun 25, 2009 at 9:58 AM, Stuartstut...@gmail.com wrote:
2009/6/25 tedd tedd.sperl...@gmail.com:
At 8:30 AM +0100 6/25/09, Colin Guthrie wrote:
'Twas brillig, and tedd at 24/06
On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koertphps...@gmail.com wrote:
On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Petersmpet...@mac.com wrote:
Martin Scotta wrote:
I found extremely un-productive editors or IDEs like Eclipse or Zend
Studio.
I use SciTE.
It don't has any feature you are
You'd be much, much better off creating a query by concatenating ,
($uid, $groups[$i]) into one huge insert query.
YOU SHOULD NEVER, EVER EVER EVER EVER RUN QUERIES IN A LOOP!
On Thu, Jun 25, 2009 at 4:11 PM, Matt Giddingsmcgid...@svsu.edu wrote:
Thanks for taking the time to provide an
On Thu, Jun 25, 2009 at 5:00 PM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote:
Hi all
I have this in a simple routine...
for($i=0, $if=count($array); $i$if; ++$i)
if( $array[$i] == '' )
{
array_splice(
PHP doesn't support threading.
On Thu, Jun 25, 2009 at 10:59 PM, WenDong Zhangzwd2...@gmail.com wrote:
Hi guys:
Now days I want to develop a web application like a chat room. the requests
per seconds maybe very large, so I want to save some common info into to
memory (quick access).
So, I
Just getting this back on the list .
-- Forwarded message --
From: Eddie Drapkin oorza...@gmail.com
Date: Fri, Jun 26, 2009 at 2:36 AM
Subject: Re: [PHP] What does this mean?
To: Jason Carson ja...@jasoncarson.ca
It's used in key value combinations in several places.
When
Have you looked at class_parents()?
http://www.php.net/manual/en/function.class-parents.php
On Mon, Jun 29, 2009 at 4:42 PM, Christoph Bogetjcbo...@yahoo.com wrote:
* What files are include in which scripts
pecl.php.net/package/inclued - an awesome tool, will show you
includes/require calls
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice in memory, so just keep
that in mind, if you plan to use it.
On Tue, Jun 30, 2009 at 8:43 AM, Peter
On Tue, Jun 30, 2009 at 10:44 AM, Lukel...@blog-thing.com wrote:
2009/6/30 Eddie Drapkin oorza...@gmail.com
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice
On Tue, Jun 30, 2009 at 11:12 AM, Peter Fordp...@justcroft.com wrote:
Luke wrote:
Thanks for the replies :)
Surely if I pass it as a parameter to the __construct then I would have to
make an instance of the otherObject, notice that messwithotherthings is
static?
Also, if I'm not using OOP
On Tue, Jun 30, 2009 at 12:37 PM, Paul M Fosterpa...@quillandmouse.com wrote:
On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote:
snip
I wouldn't really recommend going with a singleton in this situation,
as there exists a different solution (my other post :P) and there are
very
On Tue, Jun 30, 2009 at 4:50 PM, Bastien Koertphps...@gmail.com wrote:
On Tue, Jun 30, 2009 at 4:48 PM, PJaf.gour...@videotron.ca wrote:
PJ wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test
You are correct as there was no metaphor in here at all! This, It
helps to think of classes like cars on a highway, is almost a simile,
but on the whole I would probably say that you were using an analogy :-)
HEIL SPELLCHECK!
I bow to my grammar nazi superior *bow*
--
PHP General Mailing
if you want a pure opcode cache, APC is a great choice.
APC should //not// be used for persistent RAM storage. Memcached is
much faster and designed for that aim, while not being tied to the
webserver.
On Sun, Jul 5, 2009 at 2:10 AM, Brandon Johnsonbrandonl...@aol.com wrote:
you think this is
On Sun, Jul 5, 2009 at 2:43 AM, Paul Scottpsc...@uwc.ac.za wrote:
Eddie Drapkin wrote:
if you want a pure opcode cache, APC is a great choice.
you think this is similar to http://www.danga.com/memcached/ or you think
this method would be faster ? Which do you say would be the greatest
benfit
-=- (from other discussion)
Interesting that facebook uses both. The fedora maintainer for the apc rpm
listed it as conflicting with memcache. If you can use both, that's a fedora
packaging but that should be fixed.
I've never seen, nor heard of, a full scale caching implementation
that
On Mon, Jul 6, 2009 at 1:45 AM, Jason Carsonja...@jasoncarson.ca wrote:
Hello everyone,
I am trying to create a PHP login script using cookies but am having some
troubles. Here is my setup
index.php - authenticate.php - admin.php
I want a login form on index.php that allows me to login
On Mon, Jul 6, 2009 at 2:01 AM, Jason Carsonja...@jasoncarson.ca wrote:
On Mon, Jul 6, 2009 at 1:45 AM, Jason Carsonja...@jasoncarson.ca wrote:
Hello everyone,
I am trying to create a PHP login script using cookies but am having
some
troubles. Here is my setup
index.php -
On Wed, Jul 8, 2009 at 10:44 AM, Andrew Ballardaball...@gmail.com wrote:
On Wed, Jul 8, 2009 at 9:48 AM, Martin Scottamartinsco...@gmail.com wrote:
$sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\'
and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $password
I called him intolerant because he jumps on issues which other people just
don't care about.
I called him small minded because he concentrates on small issues which
simply don't matter in the great scheme of things. That sounds like fair
comment to me It's just like those people who have
I honestly think this is a case of the subject being broached in a
less-than-super-friendly-with-hugs-and-butterflies way and someone
getting unduly offended about that. Why not chill out and look at
this objectively? Mailing lists are historically, as I'm sure you
know, a nearly invaluable
On Fri, Jul 10, 2009 at 1:21 AM, James Colanninoja...@colannino.org wrote:
Hey everyone,
I've been hard at work on a new web application, and discovered
something that I would never have seen coming. I was noticing that when
I called session_start() after a few lines of includes, I was
On Fri, Jul 10, 2009 at 10:56 AM, Floyd Reslerfres...@adex-intl.com wrote:
I'm having a hard time getting my head around this problem. I have to
connect to a FoxPro database using an ODBC driver. Sometimes when I connect
I get an error. The error doesn't occur all the time and usually
the loop you
suggested. I guess it was working exactly the way I had written it!
Thanks!
Floyd
On Jul 10, 2009, at 11:23 AM, Eddie Drapkin wrote:
On Fri, Jul 10, 2009 at 10:56 AM, Floyd Reslerfres...@adex-intl.com
wrote:
I'm having a hard time getting my head around this problem. I have
On Fri, Jul 10, 2009 at 3:50 PM, Daniel Browndanbr...@php.net wrote:
On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote:
Hi everyone,
My server appears to be the victim of a chinese hack-attack and I
believe they managed to change pages via SQL Injection, do any of
On Fri, Jul 10, 2009 at 8:25 PM, Govindagovinda.webdnat...@gmail.com wrote:
How do I get
basename(__FILE__)
or
htmlentities($somevar)
to be evaluated in a heredoc?
Govinda
govinda.webdnat...@gmail.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Sat, Jul 11, 2009 at 2:01 PM, Daniel Browndanbr...@php.net wrote:
On Sat, Jul 11, 2009 at 13:45, Eddie Drapkinoorza...@gmail.com wrote:
If that's true, then we've found an error reporting bug! I've never
seen an error/warning raised, even with my usual
error_reporting(E_ALL | E_STRICT |
On Sat, Jul 11, 2009 at 11:03 AM, Daniel Browndanbr...@php.net wrote:
On Sat, Jul 11, 2009 at 10:42, Ashley Sheridana...@ashleysheridan.co.uk
wrote:
The braces ensure that PHP doesn't stop parsing the variable name once it
reaches the [. By default, it will only match a variable name up to
On Sat, Jul 11, 2009 at 1:41 PM, Daniel Browndanbr...@php.net wrote:
On Sat, Jul 11, 2009 at 13:35, Daniel Browndanbr...@php.net wrote:
It works fine because you're forcing PHP to cast 'hello' in your
array from a simple boolean TRUE to the string equivalent.
sed s/string
On Sat, Jul 11, 2009 at 3:53 PM, Govindagovinda.webdnat...@gmail.com wrote:
On Jul 11, 2009, at 11:26 AM, Eddie Drapkin wrote:
$foo = EOT
$bar[hello]
EOT;
what does EOT stand for?
(I realize that string can be anything.. but I am just asking what EOT
means to everyone?
I just use
On Sat, Jul 11, 2009 at 5:37 PM, teddtedd.sperl...@gmail.com wrote:
At 3:34 AM +0700 7/12/09, Lenin wrote:
On Sun, Jul 12, 2009 at 2:56 AM, Eddie Drapkin oorza...@gmail.com wrote:
On Sat, Jul 11, 2009 at 3:53 PM, Govindagovinda.webdnat...@gmail.com
wrote:
what does EOT stand
On Sat, Jul 11, 2009 at 6:39 PM, Haig Dedeyanhdede...@videotron.ca wrote:
On July 11, 2009 10:57:14 am Haig Dedeyan wrote:
At 10:12 PM -0400 7/10/09, Haig Dedeyan wrote:
[1]
$fname = mysql_real_escape_string($fname);
$lname = mysql_real_escape_string($lname);
$sql = UPDATE phonedir SET
On Sun, Jul 12, 2009 at 3:05 AM, Leninle...@phpxperts.net wrote:
On Sun, Jul 12, 2009 at 6:49 AM, Daniel Brown danbr...@php.net wrote:
Sorry for TOP posting This mailing list also don't force us to be
good
:)
FORCE, no. ENCOURAGE, yes. Particularly in long threads like
this
if ( $link = mysqli_connect($hostname, $username, $password, $database)
$stmt = mysqli_prepare($link, $q)
mysqli_stmt_bind_param($stmt, s, $adminuser)
mysqli_stmt_execute($stmt)
mysqli_stmt_store_result($stmt))
{
$count =
On Mon, Jul 13, 2009 at 4:48 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
Hi All,
Just a quick question. When I make changes in the php.ini, to take effect, I
need to restart the Apache (or other web server) service. What happens with
PHP CLI? Is the php.ini parsed each time the script
Things I have used prepared statements for:
1. SELECT
2. UPDATE
3. INSERT
4. DELETE
5. Stored procedures
Things I am aware of that prepared statements are not capable of doing:
What have you read that prepared statements can't do? I've not heard
of anything, nor have I encountered anything,
On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubbtomch...@gmail.com wrote:
Hi List,
Just wanted to pick your brains please?
I'm trying to standardise on the way I query databases and move away from
the Dreamweaver built-in functions (which I know you all hate!) ;)
I've been on this list for about 5
On Thu, Jul 16, 2009 at 9:53 AM, Govindagovinda.webdnat...@gmail.com wrote:
On Jul 15, 2009, at 3:28 PM, tedd wrote:
My way -- every time I open a database, I do so by including the
configuration.php file that holds the logon/password et other data to
connect with the database. When I'm done
On Sun, Jul 19, 2009 at 2:53 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Sat, 2009-07-18 at 23:09 -0600, Govinda wrote:
i never used x-mapp-php5, but most of a forums say it is specific to
1and1 hosting service. php recommends application/x-httpd-php
On Wed, Jul 22, 2009 at 8:02 AM, rszeusrsz...@gmail.com wrote:
Hello,
I’m tryng to make some replacements on a string.
Everything goês fine until the regular expression.
$file = screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg;
echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925,
On Wed, Jul 22, 2009 at 9:07 AM, rszeusrsz...@gmail.com wrote:
Hi. It Works to remove the _1 but it doesn't replace
'7a45gfdi6icpan1jtb1j99o925' for 'test'
Thank you
-Mensagem original-
De: Eddie Drapkin [mailto:oorza...@gmail.com]
Enviada: quarta-feira, 22 de Julho de 2009 13:11
.
echo preg_replace('#(screens/)temp/.+?_1(_main\.jpg)#',
$1{$id}$3,
$file);
I am confusing and '.
Thank you
-Mensagem original-
De: Eddie Drapkin [mailto:oorza...@gmail.com]
Enviada: quarta-feira, 22 de Julho de 2009 14:12
Para
1 - 100 of 164 matches
Mail list logo