OK... Let me explain a couple things...
On Wed, June 1, 2005 1:29 am, Denis Gerasimov said:
Second, which way are you differ PHP .inc files from HTML .inc files?
There is no such thing as an HTML .inc file. :-)
I see what you mean... but I use templating systems to separate code from
Hello guys :-)
I have a question. I have been using str_replace() quite a lot of times,
and never encountered any issue. But this time, something weird happened,
and I am wondering wether, in fact, I have never really understood how
this function worked, or if there is some kind of bug.
If I
I do not agree.
Not agreeing with Rasmus on a PHP list, can be seriously damaging to
your credability, unless you really know what you're talking about and
have a solid argument.
Having that said, I personally use .inc.php - .inc as Rasmus said, to
denote include files, and .php because I
Rory Browne wrote:
Alternatively if the include_path, contained the path that your
includes were in, (and only the directory where you put your
includes), then php wouldn't have very far to search.
Well, no real difference between that and just making sure most of your
includes are in the
On 2 Jun 2005, at 03:00, Richard Lynch wrote:
Maybe I'm being dumb, but how can an object's __autoload function get
called when the object class definition hasn't been loaded, and
that's why
you're calling __autoload in the first place...
It wouldn't solve everything, but it would help. It
Hi there,
I have a bit of strange question: when wanting to insert multiple records
into the db, instead of looping through the set and executing mysql_query
(which will then call the db n times), is it not better to concat a string
with all the insert statements and let mysql handle the
have you looked on sourceforge? there are alot of helpful scripts there,
hope this helps.
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
Philip Hallstrom wrote:
On May 31, 2005, at 1:48 PM, Michael O'Neal wrote:
Thanks John. That's one of the reasons I
Mark Sargent wrote:
Richard Davey wrote:
Hello Mark,
Monday, May 30, 2005, 4:18:20 PM, you wrote:
MS I have my settings in php.ini set for UTF-8, and the encoding for
MS the mysql database table's column that is using Japanese to UTF-8.
MS Now, if I view the data stored in that column in
Thomas,
If you're inserting alot of rows, (eg millions) then concating them and
calling the db once probably would give a small speed advantage, because of
the database handshaking.
But I would look at the load the database is under, if there is alot of users
hitting the database with small
gmail doesn't show you your own posts
why is that??
Angelo Zanetti
Z Logic
www.zlogic.co.za
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Thomas,
Thursday, June 2, 2005, 10:20:11 AM, you wrote:
T I have a bit of strange question: when wanting to insert multiple
T records into the db, instead of looping through the set and
T executing mysql_query (which will then call the db n times), is it
T not better to concat a string
Hi list
I do not have much programming experience outside some PHP stuff so
please excuse a stupid question:
I have a DLL provided to me by a third-party with a small bit of
documentation regarding its structure and methods. The DLL caculates
event costs based on parameters passed to it. I would
Hello Mark,
Thursday, June 2, 2005, 4:18:30 AM, you wrote:
MS ?php
MS session_start();
MS include(database.php);
?
I would recommend setting UTF-8 as the Content-type via PHP itself:
header('Content-type: UTF-8') - do it as one of the first things when
you're ready to output the HTML.
MS
The dropdown list is on the client (browser). Javascript runs on the
client. PHP runs on the server.
You have 2 options
- one is to do as Richard says and use javascript to change the contents
of one select box when an option is selected in another.
- the other is to refresh the page when the
Thomas,
I am not sure what database you are using, but there was a previous email
thread about using execQuery($concatstring) for mySQL, which apparently
worked. Make sure that your insert statements end with the standard line
terminator character, usually ';'.
Personally, I would output the
[snip]
gmail doesn't show you your own posts
why is that??
[/snip]
Sounds like a question for the gmail folks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Davey wrote:
snip
Sure.. mysql_query doesn't support more than one query in the sql
statement.
snip
At the risk of being thick, does the OP not mean something like this:
INSERT INTO blah VALUES (value1, value2), (value3, value4)
versus
INSERT INTO blah
VALUES (value1, value2)
On 2 Jun 2005, at 11:56, Colin Ross wrote:
The way I see it, you are gonna be spending quite a bit of time
writing all those lines of code for the class, what is bad about
another requiring the file each time?
Huh? Writing a 1-line function in a base class means that I would
never have
Richard Lynch wrote:
On Wed, June 1, 2005 3:53 am, Marcus Bointon said:
On 1 Jun 2005, at 11:38, Jochem Maas wrote:
all true, now imagine that you install a couple of 3rdparty php5
'packages'
and they all define __autoload() - ain't gonna work! which is why
there has been
discussion on
Hi Chris,
Thanks, I thought so. You are quite right with the errors, I ran into some
where it looked like that php does not allow you to execute such a concated
string ... the error started at the second insert statement with no apparent
reason. Is that a ph restriction?
Thomas
-Original
Thanks Richard that makes it clear.
Thomas
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: 02 June 2005 12:43 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Multiple inserts as a single string?
Hello Thomas,
Thursday, June 2, 2005, 10:20:11 AM, you wrote:
Ryan A wrote:
Hey,
On 6/2/2005 5:17:47 AM, Richard Lynch ([EMAIL PROTECTED]) wrote:
URL re-writing can do that -- It ends up using his 'index' file (or
whatever) but you don't see it in the URL.
Thanks for replying.
But if I want to copy his exact way of doing things...instead of index
Richard Lynch wrote:
On Wed, June 1, 2005 1:29 am, Denis Gerasimov said:
Second, which way are you differ PHP .inc files from HTML .inc files?
There is no such thing as an HTML .inc file. :-)
All your HTML .inc files, by definition, if they are being require'd or
include'd into PHP *are*
I'm not too sure, but that sounds like a job for ffi. I think you'll
find ffi at pecl.php.net, although, be warned that I've never used
ffi, nor have I read any reports as to how well it worked.
On 6/2/05, Rory McKinley [EMAIL PROTECTED] wrote:
Hi list
I do not have much programming
perhaps the system command is what you are looking for?
its in the manual. just search in the manual for it...
Hope this helps
Angelo Zanetti
Z Logic
www.zlogic.co.za
Rory McKinley wrote:
Hi list
I do not have much programming experience outside some PHP stuff so
please excuse a stupid
Hi Chris,
Thanks for replying
I noticed a site that is using php, but he is has shortened
the url so that the filename was not shown..
eg:
somesite.com/?a=1
How did they do that?
It's called a directory index. Examples include index.html and
index.php. You configure this with the
Thanks Richard that makes it clear.
Thomas
Hello Thomas,
Thursday, June 2, 2005, 10:20:11 AM, you wrote:
T I have a bit of strange question: when wanting to insert multiple
T records into the db, instead of looping through the set
and executing
T mysql_query (which will then
Jochem Maas wrote:
Richard Lynch wrote:
On Wed, June 1, 2005 3:53 am, Marcus Bointon said:
On 1 Jun 2005, at 11:38, Jochem Maas wrote:
all true, now imagine that you install a couple of 3rdparty php5
'packages'
and they all define __autoload() - ain't gonna work! which is why
there has
thanks for your responses, your comments have lead me to:
http://php.mirrors.ilisys.com.au/manual/en/language.variables.scope.php
and
http://php.mirrors.ilisys.com.au/manual/en/language.variables.variable.php
which certainly explain what I was after.
Thanks!
--
...helmut
helmutgranda.com
Hello Rory,
Thursday, June 2, 2005, 11:53:56 AM, you wrote:
RM I have RTFM, and I am still busy STFW and STFA, but the little bit
RM that I have found has lead me towards trying to understand COM
RM (eek!). Before I go down that particular garden path, I would like
RM to know if there is any
Hello Angelo,
Thursday, June 2, 2005, 1:55:01 PM, you wrote:
AZ perhaps the system command is what you are looking for?
For calling functions within a DLL?? I don't think so.
All system() does is to execute a command/executable. If the OP was to
interface with this DLL from an exe, then this
On Thursday 02 June 2005 09:52, [EMAIL PROTECTED] wrote:
But if I do that :
?php
$texte = 'cd' ;
$original = array('a', 'b', 'c', 'd', 'e', 'f', 'g');
$modif = array ('c', 'd', 'e', 'f', 'g', 'h', 'i');
$texte = str_replace($original, $modif, $texte) ;
echo $texte, ' br /' ;
?
The
Hello Richard,
Wednesday, June 1, 2005, 3:16:50 PM, you wrote:
R Does anybody know of a What Works Works Validator which checks
R for maxiumum browser compatibility rather than the W3C standard?
E. Got it listed on my XHTML test page at:
http://www.devtek.org/test (In the resources section
Richard Davey wrote:
snip
If the DLL has a COM interface then you can use PHP to talk to it, the
process is actually quite straight forward (depending on what the DLL
actually does of course).
Best regards,
Richard Davey
snip
Hi Richard
Rory (the other one ;) ) also mentioned a COM
That being the case, you may want to consider ajax, so that users
answers are recorded as soon as they make them.
What's 'ajax'? Link please?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'd love some help with http://hashphp.org/pastebin?pid=3443 if anyone
can...
Basically I want to make it so that, if the get in the url specifies no
query or a query to a nonexistent row, send to vanilla index. If url
specifies c= then set $c=c and use the number to build the mysql query;
Jason Barnett wrote:
Jochem Maas wrote:
Richard Lynch wrote:
On Wed, June 1, 2005 3:53 am, Marcus Bointon said:
On 1 Jun 2005, at 11:38, Jochem Maas wrote:
...
I opened up a feature request for this very topic a while back. The
__autoload function should just register
When you have objects stored on disk, it's usually very convenient to
read them on demand. However, MySQL is clearly not meant for this
purpose. Query overhead, complexity of SQL needed, and some other
limitation make object storage and retrieval a headache.
The question is, is it possible to
On 6/2/05, Chris Boget [EMAIL PROTECTED] wrote:
That being the case, you may want to consider ajax, so that users
answers are recorded as soon as they make them.
What's 'ajax'? Link please?
www.google.com
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To
Has anyone else noticed significant delays in messages getting posted?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry I thought I'd sent this to the list.
On 6/1/05, Rory Browne [EMAIL PROTECTED] wrote:
http://www.adaptivepath.com/publications/essays/archives/000385.php
www.wikipedia.org/wiki/AJAX
On 6/1/05, Ryan A [EMAIL PROTECTED] wrote:
That being the case, you may want to consider ajax,
Hello Chris,
Thursday, June 2, 2005, 4:43:09 PM, you wrote:
That being the case, you may want to consider ajax, so that users
answers are recorded as soon as they make them.
CB What's 'ajax'? Link please?
It's a way of using the XML HTTP Request object in JavaScript to
provide a very
Maybe it's just me, but the core concept of __autoload() seems to be
broken to me. Moreover, every proposed solution I've heard about is
totally inside the box. I would do it like this:
1) Define $_AUTOLOAD superglobal.
2) If I need SomeClass to be autoloaded I write this:
On 6/2/05, GamblerZG [EMAIL PROTECTED] wrote:
When you have objects stored on disk, it's usually very convenient to
read them on demand. However, MySQL is clearly not meant for this
purpose.
A serialized PHP object is just a string of data. MySQL is a very
fast `data`base, so I don't quite
what is a safe way to clean a post/get before echoing it.
example. input form, user enters some text, hits enter.
.. next page i echo what they entered.
right now i just run the variables passed by htmlentities() which
preseves any html. is that acceptable?
--
PHP General Mailing List
On 6/2/05, Chris Boget [EMAIL PROTECTED] wrote:
What's 'ajax'? Link please?
http://en.wikipedia.org/wiki/AJAX
I've been playing with it using Ruby on Rails, it's built-in.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To
On 6/2/05, Jack Jackson [EMAIL PROTECTED] wrote:
I'd love some help with http://hashphp.org/pastebin?pid=3443 if anyone
can...
Basically I want to make it so that, if the get in the url specifies no
query or a query to a nonexistent row, send to vanilla index. If url
specifies c= then set
yea.. takes hours... sometimes 6+ or more.
i dont post that much to the list for this reason.. if it stays like
this i'll just unsubscribe.. its pointless... this is suppose to be
E-mail, not post office mail.
Jack Jackson wrote:
Has anyone else noticed significant delays in messages
Hello Jack,
Thursday, June 2, 2005, 5:24:26 PM, you wrote:
JJ Has anyone else noticed significant delays in messages getting posted?
Yes. My last post took just under 1 hour! I copied this to you as well
to prove the point :)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP
Jack Jackson wrote:
Has anyone else noticed significant delays in messages getting posted?
No, no delay on my end.
So... any word on the release date for PHP 3?
--
jason sweeney
jason.designshift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 6/2/05, Sebastian [EMAIL PROTECTED] wrote:
what is a safe way to clean a post/get before echoing it.
example. input form, user enters some text, hits enter.
set_magic_quotes_runtime( 0 );
if( get_magic_quotes_gpc() == 0 )
{
$_GET= isset( $_GET )? array_map( 'slashes', $_GET )
Did you have some code that you need help debugging?
Since you have asked...
http://fs.net/projects/naturalgine
Could you please download the latest version, open tools/objects.php and
look at getObjects() function? Just take a look at it, and you will
undesrstand what am I talking about,
Hello,
on 06/02/2005 12:37 PM GamblerZG said the following:
When you have objects stored on disk, it's usually very convenient to
read them on demand. However, MySQL is clearly not meant for this
purpose. Query overhead, complexity of SQL needed, and some other
limitation make object storage
On 6/2/05, GamblerZG [EMAIL PROTECTED] wrote:
Maybe it's just me, but the core concept of __autoload() seems to be
broken to me. Moreover, every proposed solution I've heard about is
totally inside the box. I would do it like this:
1) Define $_AUTOLOAD superglobal.
When forced to do OO, I use
Hi All,
I'm using the MDB2 object to access my MySQL database. I have a number
of classes that perform page-building activities that need db access,
and I'm wondering what the best way to expose the MDB2 object to them is?
(Note: my development environment is PHP 5.0.3, but the production
Has anyone else noticed significant delays in messages getting posted?
No, no delay on my end.
At least 4hrs on my end...
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
set_magic_quotes_runtime( 0 );
This is for database, not for showing data in browser. For browser you
need to kill all unknow tags and all unknown properties of known tags.
Afterwards, you need to prepend http:// to any urls that have unknow
protocols. Alternatively, you can make sure that
Sebastian wrote:
yea.. takes hours... sometimes 6+ or more.
i dont post that much to the list for this reason.. if it stays like
this i'll just unsubscribe.. its pointless... this is suppose to be
E-mail, not post office mail.
I don't understand why everyone like these mailing lists so much.
Hi,
I am trying the phpunit2 for unit testing but the examples found in
the documentation are few and do not address, for example, tests when
database access is involved.
Perhaps this belongs to a more general question (i.e strategies for
unit testing) so any urls, docs would be great.
--
PHP
Hi!!!
Are there any chances that I could export a dynamic created web page into MS
Word or Excel?
I know this can be done with PDF!!
I'm using LAMP!!
---
Miguel Guirao Aguilera
Logistica R8 TELCEL
Tel. (999) 960.7994
Cel. 9931 600.
--
PHP General Mailing List
Sebastian wrote:
what is a safe way to clean a post/get before echoing it.
There are two steps that you're lumping into one. Sanitizing and
cleaning are informal terms for filtering, and this is an inspection
process where you inspect data to be sure that it's valid. You should do
this with
On 6/2/05, Jack Jackson [EMAIL PROTECTED] wrote:
Thanks for the reply, Greg,
I see how that is useful. I am confused as to how I would implement it
here. Please bear with me as I am a newbie and am now perhaps more
confused than ever!:
Bummer, sorry.
I'm trying to use the number given in
Chris Boget mailto:[EMAIL PROTECTED]
on Thursday, June 02, 2005 12:16 PM said:
Has anyone else noticed significant delays in messages getting
posted? No, no delay on my end.
At least 4hrs on my end...
Uhh.. I think he was joking... Take another read of his next sentence.
:)
Chris.
Thanks for the reply, Greg,
I see how that is useful. I am confused as to how I would implement it
here. Please bear with me as I am a newbie and am now perhaps more
confused than ever!:
I'm trying to use the number given in the $_GET URL to build one piece
of the sql:
If there is
SORRY - one small correction below:
SNIP
If that were instead an $s then I would do:
?php //IF there is a valid query by subject, use $s to build the SQL
$fields = SELECT art.*,publisher.*,subject.*;
$from = FROM art,subject
LEFT JOIN publisher
ON
On 6/2/05, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote:
private $db;
PHP4 doesn't have member visibility.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've just been looking at phpSurveyor. Would that help at all?
It's PHP, with mySQL database . . .
-Original Message-
From: ...helmut [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 4:35 PM
To: php-general@lists.php.net
Subject: Questionary Development - Continued
Hello
On 6/2/05, GamblerZG [EMAIL PROTECTED] wrote:
I don't understand why everyone like these mailing lists so much.
Web-forums more convenient.
What's keeping you..
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Greg Donald wrote:
On 6/2/05, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote:
private $db;
PHP4 doesn't have member visibility.
Hi Greg,
Thanks for this tip!
Regards,
Murray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Greg, thank you for all this... See below
Greg Donald wrote:
On 6/2/05, Jack Jackson [EMAIL PROTECTED] wrote:
Thanks for the reply, Greg,
I see how that is useful. I am confused as to how I would implement it
here. Please bear with me as I am a newbie and am now perhaps more
confused than
I am using a routine to find 50 random records in a large MySQL
database (about a million records) where I generate a list of 50
random unique ID's, and then use MySQL's in command to find them. I
can't use order by rand() due to its performance hit.
But I have to take it one more step: I
To export it exactly as displayed (like when you print to a virtual printer to
generate a PDF) might be tricky, but you can definitely create Excel and I
believe Word files without even having Excel or Word installed. If you DO
have Excel or Word installed on your server, then you can always
On Thu, 2005-06-02 at 15:32 -0400, GamblerZG wrote:
Sebastian wrote:
yea.. takes hours... sometimes 6+ or more.
i dont post that much to the list for this reason.. if it stays like
this i'll just unsubscribe.. its pointless... this is suppose to be
E-mail, not post office mail.
I
Simple, blank page with just content, thats the only true way,
Anyway why you wanna be backward compatible that far is beyond me cus
they handle HTML even worse so its a losing battle!,
use the CSS @import
rule for style sheets and older browsers will simply ignore the CSS, you
could then
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A small example, using the code below all older browser who cant
understand CSS will ignore it because its within a comment block...
style type=text/css
!--
@import url(MyStyleSheet.css);
--
/style
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://php.net/manual/en/language.oop.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sebastian wrote:
what is a safe way to clean a post/get before echoing it.
example. input form, user enters some text, hits enter.
.. next page i echo what they entered.
right now i just run the variables passed by htmlentities() which
preseves any html. is that acceptable?
You might also
Hello, I can answer your second question...
Frames can be used to achieve the effect of two seperate windows, one
can refresh while the other stays as-is.
For a client editor...
Some javascript to add tags on the client side would be fairly simple to
create, just create some custom tags for
Thanks.
*test*
Rasmus Lerdorf wrote:
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Danny Brow wrote:
On Thu, 2005-06-02 at 15:32 -0400, GamblerZG wrote:
Sebastian wrote:
yea.. takes hours... sometimes 6+ or more.
i dont post that much to the list for this reason.. if it stays like
this i'll just unsubscribe.. its pointless... this is suppose to be
E-mail, not post office
wow, got that in 20 seconds.. can we go for a record? ;)
Sebastian wrote:
Thanks.
*test*
Rasmus Lerdorf wrote:
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
--
PHP
You need to insert these two lines to your Apache httpd.conf
configuration file to set up the PHP module for Apache 2.0:
Example 6-6. PHP and Apache 2.0 as Module
# For PHP 5 do something like this:
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
#
Ryan A wrote:
Basically I am waiting for the client to pay me...till he does,
I am displaying the index page which is a under construction
page...but he also wants to play with the site so I need to
direct all calls to main.php...
You want to only show an under construction page, but you also
This is my first post to this group. I've been trying to figure this
out on my own, but I keep running into complications, so I've decided
to get some help. Much thanks for any help!
I've been writing php server application for a couple of years, but now
I'm turning my attention to re-building
* mbneto [EMAIL PROTECTED]:
I am trying the phpunit2 for unit testing but the examples found in
the documentation are few and do not address, for example, tests when
database access is involved.
Perhaps this belongs to a more general question (i.e strategies for
unit testing) so any urls,
* Murray @ PlanetThoughtful [EMAIL PROTECTED]:
snip
(Note: my development environment is PHP 5.0.3, but the production
environment is 4.3.10. This is my first project built with 5.x local and
4.1.x remote, so if anyone with more experience spots any fatal flaws
where I'm using 5.x specific
My average post takes 2+ hours.
mayo
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 02, 2005 4:22 PM
To: Chris Boget; Jason Sweeney
Cc: php-general@lists.php.net
Subject: RE: [PHP] Delay?
Chris Boget mailto:[EMAIL PROTECTED]
on Thursday,
For PHP 4.x sites I used my index page to capture the HTTP request and use a
switch statement to call the content or task based on the $_GET and $_POST
arrays. That was very inefficient and the Switch case became totally
unmanageable along with the rest of the site.
I am re-designing the site
On Thu, 2005-06-02 at 17:15 -0700, Rasmus Lerdorf wrote:
We found a problem caused by a recent disk failure that wiped out a
named pipe qmail needed. I am hoping the mailing list delays should be
fixed now.
-Rasmus
test
signature.asc
Description: This is a digitally signed message part
Richard Davey wrote:
Hello Mark,
Thursday, June 2, 2005, 4:18:30 AM, you wrote:
MS ?php
MS session_start();
MS include(database.php);
?
I would recommend setting UTF-8 as the Content-type via PHP itself:
header('Content-type: UTF-8') - do it as one of the first things when
you're ready to
91 matches
Mail list logo