Okay... the difference is between Apache + PHP for windows, and Apache
+ PHP for unix... it works on linux / unix... but not on windows...
check it out.
http://www.jamwil.com/misc/flush.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just tried a couple of output_buffering on a test script I made and
it won't work... It simply waits for 10 seconds then displays
everything... Kinda sucks.
On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said:
> > I want to create a scrip
Hi,
I've had some rather odd intermittent behavior with a select list drawn by a
'require' on my production site. Sometimes, rather than displaying 'In
USA/Canada' from the 'In USA/Canada' code in the
required file, it will display a blank. Yet, if I try to duplicate this
behavior on the devel
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
You took out the mysql_connect completely???
Don't do that.
Sorry, was following what you suggested b4, no..?
$db = mysql_connect("localhost", "root", "grunger
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
You took out the mysql_connect completely???
Don't do that.
mysql_select_db("status",$db);
$maker_result = mysql_query("SELECT Makers.maker_id Makers.maker_det
I believe it's mentioned somewhere in the manual you can't do that.
func_get_arg() always return a copy. You can workaround this using an array.
Robert Meyer wrote:
Hello,
Using: PHP Version 5.0.3
I build the following function:
function Set4HTMLOut() {
$C = func_num_args();
for (
I am having a weird problem with a simple file listing on one of my
client's host.
My code works perfectly on my host, but if i use the same code on his, it
only lists certain types of files. Heres the code: (i hate hosts that only
allow php inside the cgi-bin dir, its crazy to code like this
-- Original message --
From: "Richard Lynch" <[EMAIL PROTECTED]>
> On Thu, May 12, 2005 4:43 pm, Chris Shiflett said:
> > From me:
> > The fact that it uses the character set of your current connection to
> > MySQL means that what your escaping function considers t
I have a page using the Basic HTTP Authentication and works well before.
But this night, the server seems to not receiving any $_SERVER pass in from
Web browsers.
if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER'] !=
"netop") || ($_SERVER['PHP_AUTH_PW'] != "cti63") ) {
hea
On Thu, May 12, 2005 7:14 pm, Tomás Rodriguez Orta said:
> Hello hard people!!!
> I want to get count rows at the query using odbc over windows.
> but I can't get any value of this, I doing this.
>
> $sql="SELECT * FROM id Like '$id'";
> $res=$db->query($sql);
> $numRecords=$res->numRows();
> echo
Personally I'm lazy, but I'd probably go with something along the lines of
$filename = sprintf("step%d.php", (int)($_SESSION['step']) );
require ( file_exists($filename) ? $filename : "step1.php" );
same results in two lines of code - was one line, but I split it into
two lines to make it more r
On Thu, May 12, 2005 3:40 am, Marcus Bointon said:
> Somewhat OT - I've had almost entirely poor experiences with domain
> registrars, so I'm looking for recommendations. I need:
>
> Multilingual domain support e.g. café.com
Er.
Maybe they changed the rules, but I don't think that's a valid d
On Thu, May 12, 2005 4:43 pm, Chris Shiflett said:
> From me:
> The fact that it uses the character set of your current connection to
> MySQL means that what your escaping function considers to be a single
> quote is exactly what your database considers to be a single quote. If
> these things don'
I looking for a way to update certain parts of a site that is highly
dynamic. I've tried creating static files via cronjobs then including them,
but it is a pain to do. for instance, i have a news page that utilizes
mysql, rather than query the DB on each page load i would like to have it
update at
Hello,
Using: PHP Version 5.0.3
I build the following function:
function Set4HTMLOut() {
$C = func_num_args();
for ($I = 0; $I < $C; $I++) {
$A = func_get_arg($I);
echo 'I['.$I.']('.strlen($A).'): '.$A.'';
$A = htmlspecialchars($A);
echo 'I['.$I.']('.strlen($A).
On Thu, May 12, 2005 6:58 am, Shaun said:
> $_SERVER['HTTP_HOST']
>
> "Mbneto" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hi,
>
> I need to access a website (written in php) using two different
> domains (www.foo.com and www.bar.com). I must see the same content.
>
> Since the
Richard Lynch wrote:
It's all very well to repeat these pronouncements from on high that
"mysql_real_escape_string is better" but I personally would sure
appreciate somebody who's saying this to say *WHY* it is better, and in
precisely what ways it is different from addslashes and/or magic quotes
w
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
> Hi All,
>
> ok, this revised code produces the error below,
>
> mysql_select_db("status",$db);
> $maker_result = mysql_query("SELECT Makers.maker_id Makers.maker_detail
> FROM Makers",$db);
if (!$maker_result) die(mysql_error());
> $maker_n
On Thu, May 12, 2005 1:44 am, Kim Madsen said:
>> -Original Message-
>> From: Richard Lynch [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, May 12, 2005 8:47 AM
>
>> I'd bet a dollar that if the MySQL C Client library changed what needs
>> escaping, addslashes would change with it.
>
> Ehhh? I
On Thu, May 12, 2005 2:40 am, Ross said:
> http://scottishsocialnetworks.org/mailer.phps
>
> I have a php mailer that takes in some text from a text box and puts in in
> an email. The problem is the body text is assigned to a variable to be put
> in the email but it does not pick up the returns.
T
On Thu, May 12, 2005 6:54 am, Shaun said:
> Is it possible to create a csv file from a query and force the user to
> download it by outputting it to the browser, I dont want it saved on the
> server!
fputcsv('php:/stdout', ...)
should work, I think.
If not, there are only a few dozen implementat
On Thu, May 12, 2005 12:48 pm, dan said:
> I'm trying to override the value of php.ini's 'auto_prepend_file'
> function, inside of an Apache Directory container. I'm not having much
> luck. In fact, no luck at all. This never happens.
>
> So I'm wondering now, are functions set by 'php_value' in
On Thu, May 12, 2005 8:35 am, Christopher J. Bottaro said:
> Is there such a thing? You know, with single stepping, breakpoints,
> examining vars, etc. 100% of my PHP stuff is CLI (wacky, huh?) and I'd
> really benefit from a traditional debugger. Oh btw, I'm looking for a
> free/opensource one.
I couldn't tell you the technicals of it, but just from the php documentation:
" This function must always (with few exceptions) be used to make data
safe before sending a query to MySQL."
On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Thu, May 12, 2005 12:39 pm, James Williams said:
>
Hello hard people!!!
I want to get count rows at the query using odbc over windows.
but I can't get any value of this, I doing this.
$sql="SELECT * FROM id Like '$id'";
$res=$db->query($sql);
$numRecords=$res->numRows();
echo $numRecords;
but when I the page print $numRecords I saw this Object id
On Thu, May 12, 2005 11:54 am, Chris Bruce said:
> API. The problem is that the resulting image is being displayed as
> binary characters in the browser instead of downloading to my computer.
> Does anyone know how I can take the binary result and force it to
> download as a JPG image?
At a minim
On Thu, May 12, 2005 12:36 pm, Jay Blanchard said:
> [snip]
> Thank you for your response Jay, but that is not working. My program
> will not run at all with the following:
>
> var $exportFile = "Export." . date("mdy") . ".txt";
>
> I seem to be able to use the date function is I am not starting t
On Thu, May 12, 2005 12:55 pm, dan said:
> I was just looking for some sort of confirmity and ease of use. I've
> been experimenting with some of my own ways to handle form data.
> There's nothing that I hate more than clutter, so that's why I wanted to
> break the form apart inside of these small
dan wrote:
dan wrote:
Hello, all -
I'm trying to override the value of php.ini's 'auto_prepend_file'
function, inside of an Apache Directory container. I'm not having
much luck. In fact, no luck at all. This never happens.
So I'm wondering now, are functions set by 'php_value' inside of an
A
On Thu, May 12, 2005 12:39 pm, James Williams said:
> I'm pretty sure that, in order to use mysql_real_escape_string() you
> must have magic quotes off or use stripslashes first... the same as
> addslashes, so it should work if you just search and replace. Don't
> quote me on that though
Well, ye
On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said:
> I want to create a script that displays all names from a database once per
> second.
> A part of the script look like this.
>
> for ($i=0; $i<$total_names; $i++)
> {
> echo "name";
http://php.net/flush
> sleep (1);
> }
On 5/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to create a script that displays all names from a database once per
> second.
> A part of the script look like this.
>
> for ($i=0; $i<$total_names; $i++)
> {
> echo "name";
> sleep (1);
> }
>
> The sc
Hi,
I want to create a script that displays all names from a database once per
second.
A part of the script look like this.
for ($i=0; $i<$total_names; $i++)
{
echo "name";
sleep (1);
}
The scipt works fine but it displays all names at once. I want to display the
first name, then
On Thursday 12 May 2005 17:35, Christopher J. Bottaro wrote:
> Is there such a thing?
Hi Christopher
Spoken as someone who actively uses PHP both in webpages, and for scripts on
CLI, the only debugger I am aware of is Gubed (but that's only for PHP &
Webbpages)
Personally, I use the followin
dan wrote:
Hello, all -
I'm trying to override the value of php.ini's 'auto_prepend_file'
function, inside of an Apache Directory container. I'm not having much
luck. In fact, no luck at all. This never happens.
So I'm wondering now, are functions set by 'php_value' inside of an
Apache confi
Hi Manager,
Any idea about this errors? I am try to configure php with payflowpro I am
running
OS: fedora Core 2
Error Number 1
[EMAIL PROTECTED] pfpro# phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
run info '(automake)Extending aclocal'
or see
ht
On Friday 13 May 2005 02:54, Chris Bruce wrote:
> $ret = curl_setopt($ch, CURLOPT_HEADER, 0);
Try enabling the above or ...
> Does anyone know how I can take the binary result and force it to
> download as a JPG image?
... send an appropriate header before dumping the binary data.
--
Jason Wo
Merlin wrote:
Hi there,
I am trying to strip some words from a sentence. I tried it with
str_replace like described here:
http://www.totallyphp.co.uk/code/find_and_replace_words_in_a_text_string_using_str_replace.htm
Unfortunatelly it does not work the way I want, because if I want to
replace t
in my own defence, i too am not much of a silent failure kinda guy. Custom
errar handlers are great, (i user PEAR::ErrorStack and it works great)
my point is that in a public, production environment, i'd rather have
anything not caught by the custom eror handler go unseen by the browser,
althou
Hi,
I want to create a script that displays all names from a database once per
second.
A part of the script look like this.
for ($i=0; $i<$total_names; $i++)
{
echo "name";
sleep (1);
}
The scipt works fine but it displays all names at once. I want to display the
first nam
I'm pretty sure that, in order to use mysql_real_escape_string() you
must have magic quotes off or use stripslashes first... the same as
addslashes, so it should work if you just search and replace. Don't
quote me on that though
On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Wed, May 1
Richard Lynch wrote:
While this *CAN* work, and a lot of people like it, it tends to add a fair
amount of "cruft" for not that much benefit, really...
What do you GAIN having this big old switch statement?
What data/processing is really really shared in all these steps?
On Wed, May 11, 2005 4:57 pm
hmmm, well... If I could see the code I could probably fix it for you,
the problem is everything changes depending on the context it's used
and how the class is setup. For example, it's poor practice to assign
values to vars when you declare them... It is recommended you assign
them inside the cla
Hi Manager,
Any idea about this errors? I am try to configure php with payflowpro
I am running
OS: fedora Core 2
Error Number 1
[EMAIL PROTECTED] pfpro# phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
run info '(automake)Extending aclocal'
or see
http
On 5/12/05, Clinton, Rochelle A <[EMAIL PROTECTED]> wrote:
> Dear Much Needed Advisor,
>
> I am definitely a PHP novice and making some code changes to a PHP
> script.
>
> I need to change a declared output file to include the date as an
> extension.
>
> My file is declared at the beginning of t
Sam Smith wrote:
Any recommendation for the easiest credit card gate way for PHP running on
FreeBSD?
Authorize.net?
Thanks
Sam -
I've been using CyberSource and have been quite happy with it. I got a
deal on it by gonig through Bank of America and acquiring a merchant
account, as well - altho
Hello, all -
I'm trying to override the value of php.ini's 'auto_prepend_file'
function, inside of an Apache Directory container. I'm not having much
luck. In fact, no luck at all. This never happens.
So I'm wondering now, are functions set by 'php_value' inside of an
Apache config file only
On 5/12/05, Sam Smith <[EMAIL PROTECTED]> wrote:
> Any recommendation for the easiest credit card gate way for PHP running on
> FreeBSD?
>
> Authorize.net?
That's my pick.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
[snip]
Thank you for your response Jay, but that is not working. My program
will not run at all with the following:
var $exportFile = "Export." . date("mdy") . ".txt";
I seem to be able to use the date function is I am not starting the
declaration with "var", but then my program is not working c
Will this work?
-Original Message-
From: Clinton, Rochelle A [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 12:55 PM
To: php-general@lists.php.net
Subject: [PHP] beginner needs help!
Dear Much Needed Advisor,
I am definitely a PHP novice and making some code changes to a P
Clinton, Rochelle A wrote:
Dear Much Needed Advisor,
I am definitely a PHP novice and making some code changes to a PHP
script.
I need to change a declared output file to include the date as an
extension.
My file is declared at the beginning of the script as:
var $exportFile = "Export.txt";
I need
[snip]
My file is declared at the beginning of the script as:
var $exportFile = "Export.txt";
I need it to be, for instance, Export.051205.txt.
I have played around with the date function many ways:
Ex 1:
var $exportFile = "Export" . date("mdy");
[/snip]
You almost had it;
var $exportFile =
You're losing me hear without sample data, but I'll try.
Ideally your input array would be something like:
$result[] = array('id'=>23, 'text'=>'ok', 'relevance'=>2);
$result[] = array('id'=>42, 'text'=>'joel', 'relevance'=>1);
$result[] = array('id'=>23, 'text'=>'php', 'relevance'=>1);
Which gives
Merlin wrote:
Brent Baisley wrote:
Use the id number as the array key and a simple loop should join
everything together.
for($i=0; $i
$id = $result['id'][$i];
$text = $result['text'][$i];
$relevance = $result['relevance'][$i];
$resultSummary[$id]['id'] = $id;
if ( isset($re
Hi,
I am connecting to a remote image download API using cURL functions. I
have the connection working fine and am getting the response from the
API. The problem is that the resulting image is being displayed as
binary characters in the browser instead of downloading to my computer.
Here is the
Any recommendation for the easiest credit card gate way for PHP running on
FreeBSD?
Authorize.net?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear Much Needed Advisor,
I am definitely a PHP novice and making some code changes to a PHP
script.
I need to change a declared output file to include the date as an
extension.
My file is declared at the beginning of the script as:
var $exportFile = "Export.txt";
I need it to be,
Hi,
Has anyone experiment this method with an array as the doc says:
bool setParameter ( string namespace, mixed name [, string value] )
The local name of the XSLT parameter. This can be either a string
representing the parameter name or an array of name => value pairs. >
Actually i t
I think you need to have the result from a mysql_connect() in order for that
to work..
As in:
$myResource = mysql_connect(user, pass, host, etc);
You just have a statement handle there. Which is good for the fetch commands
like mysql_fetch_row(), but not the num rows command.
Carl Furst
[E
Need to be pointed in the right direction.
xml:
etc...
xsl:
http://www.w3.org/1999/XSL/Transform";>
I know how to load the document, parse it, display contents etc... But
how can I grab just one group of values at a time using php?
--
Bria
i followed the instructions to unsubscribe because i am out of the country.
did not work apparently. can a mod help me please.
nick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yeah mine were quite slow, im in south africa and they route to the USA
to wherever the mailing list server sits...
Amir Mohammad Saied wrote:
> No!
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I removed the "r+", since that not my intended mode.
File Handle is 1 after the fopen call.
fgets, feof, and fclose fail on $fh. (So does fread, FWIW).
The file exists. fopen fails if it is moved.
*Code:*
0) {
print '' . $line ."\n";
}
}
?>
*Output:*
./outside/index.txt
File Handle:1
Is there such a thing? You know, with single stepping, breakpoints,
examining vars, etc. 100% of my PHP stuff is CLI (wacky, huh?) and I'd
really benefit from a traditional debugger. Oh btw, I'm looking for a
free/opensource one.
Thanks!
P.S. Yes, I've searched Google and www.php.net/manual,
[snip]
Is it possible to create a csv file from a query and force the user to
download it by outputting it to the browser, I dont want it saved on the
server!
[/snip]
Just make sure that your mime-type is set to something like octet stream
when you creat the csv file
--
PHP General Mailing List
Hi all,
I'm using the PHP 5.0.4 version with Apache 2 on Windows XP SP2 and
I've turned on the TIDY extension (php_tidy.dll) to parse HTML file
using PHP.
But using the function tidyNode->GET_ATTR() I received the following
error message:
"Fatal error: Call to undefined method tidyNode:
> Using libxslt and DOM to load up an xml file and display
> within another file via 'include'.. Something is adding in
> '' is there a switch or something that
> turns this off?
in the xsl stylesheet?
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
If I may,
It depends, are the fields you're joining on indexed? How many keys are
being joined and how many joins are you using. What database are you using?
Which version?
I prefer to use joins myself because it gets all the data in one place.
However if you find that you are using a lot of whe
Brent Baisley wrote:
Use the id number as the array key and a simple loop should join
everything together.
for($i=0; $i
$id = $result['id'][$i];
$text = $result['text'][$i];
$relevance = $result['relevance'][$i];
$resultSummary[$id]['id'] = $id;
if ( isset($resultSummary[$
$_SERVER['HTTP_HOST']
"Mbneto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I need to access a website (written in php) using two different
domains (www.foo.com and www.bar.com). I must see the same content.
Since the site uses session and cookie variables I was wondering if
Hi,
Is it possible to create a csv file from a query and force the user to
download it by outputting it to the browser, I dont want it saved on the
server!
Thanks for your advice
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mbneto wrote:
Hi,
I need to access a website (written in php) using two different
domains (www.foo.com and www.bar.com). I must see the same content.
Since the site uses session and cookie variables I was wondering if
(and how) it's possible to create a session id that is valid for the
domains I'll
> I need to access a website (written in php) using two different
> domains (www.foo.com and www.bar.com). I must see the same content.
> Since the site uses session and cookie variables I was wondering if
> (and how) it's possible to create a session id that is valid for the
> domains I'll be usin
Richard Lynch wrote:
On Wed, May 11, 2005 5:19 pm, Oscar Andersson said:
Is it possibele to save a class in a session
ex.
$cl = new Class();
$SESSION['this_class'] = cl;
hello, Oscar - why don't you try it?
notice how 'Class' is a keyword so you can't name a class 'Class'
notice how if you use '$SE
Using libxslt and DOM to load up an xml file and display within another
file via 'include'.. Something is adding in '' is
there a switch or something that turns this off?
--
s/:-[(/]/:-)/g
BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
==
Use the id number as the array key and a simple loop should join
everything together.
for($i=0; $i
$id = $result['id'][$i];
$text = $result['text'][$i];
$relevance = $result['relevance'][$i];
$resultSummary[$id]['id'] = $id;
if ( isset($resultSummary[$id]['text']) ) {
$resultSummary[$id][
godaddy.com
domaindirect.com
http://www.telivo.com/
for uk based stuff..
hope this helps
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
Marcus Bointon wrote:
> Somewhat OT - I've had almost entirely poor experiences with domain
> registrars, so I'm looking
Hi everybody...
I've been using DOM-XML functions for loading a XML file. When I try load it
con domxml_open_file, it appears a message "Call to undefined function:
domxml_open_file()".
PHP has been configured with option --with-dom=shared,/usr
--with-xslt=shared,/usr(default install), and ad
Hi,
Thursday, May 12, 2005, 8:40:26 PM, you wrote:
MB> Somewhat OT - I've had almost entirely poor experiences with domain
MB> registrars, so I'm looking for recommendations. I need:
MB> .com, .net, .org domains (easy enough!)
MB> .co.uk support
MB> Multilingual domain support e.g. café.com
MB> O
Hi,
I need to access a website (written in php) using two different
domains (www.foo.com and www.bar.com). I must see the same content.
Since the site uses session and cookie variables I was wondering if
(and how) it's possible to create a session id that is valid for the
domains I'll be using...
Hi there,
I do have a tricky problem with arrays.
There are 3 arrays:
$result[id][]
$result[text][]
$result[relevance][]
Now there might be the case that there are more results with the same $id. I
would like to count all the relevances together for the same id.
For example:
id textrelev
Somewhat OT - I've had almost entirely poor experiences with domain
registrars, so I'm looking for recommendations. I need:
.com, .net, .org domains (easy enough!)
.co.uk support
Multilingual domain support e.g. café.com
Online control of DNS server assignment
Specification of external DNS at re
Cool thanks for that.
After reading through the strings manual pages on mysql site I came up
with this way of doing it. Not as simple as yours that's for sure,
but it works fine.
SELECT blah
WHERE CONCAT(, LPAD(mm,2,'0'), LPAD(dd,2,'0')) BETWEEN ". $ .
$mm . $dd ." AND ". $e_ . $
Merlin wrote:
Burhan Khalid wrote:
Merlin wrote:
Hi there,
I am wondering if there is a function (I could not find) which does
the same thing like strpos does, but with an array.
For example:
$replace = array("picture", "pics");
$pos = strpos ($term, $replace);
//if ($pos !== false) {
Hello,
http://scottishsocialnetworks.org/mailer.phps
I have a php mailer that takes in some text from a text box and puts in in
an email. The problem is the body text is assigned to a variable to be put
in the email but it does not pick up the returns.
How do i do this??
R.
--
PHP General
Greg Donald wrote:
On 5/10/05, Juan Pablo Herrera <[EMAIL PROTECTED]> wrote:
Hi!
I using php version 4.3.10. I have a script that used the exec
function. Well it script only work from shell, but not work form web
browser.
My php.ini:
safe_mode Off Off
safe_mode_exec_dir no value
No!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, they are taking around an hour, must be the mailing list.
-Original Message-
From: Mark Sargent [mailto:[EMAIL PROTECTED]
Sent: 12 May 2005 08:53
To: php-general@lists.php.net
Subject: [PHP] Posts taking over an hour to be displayed
Hi All,
is anyone else experiencing this.? Over a
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 12, 2005 8:47 AM
> I'd bet a dollar that if the MySQL C Client library changed what needs
> escaping, addslashes would change with it.
Ehhh? I think not. Let´s let a mindgame (can´t spell hypo..what
True, but the question was about MySQL.
However this is the factor you have to consider before you start implementing
you application - should it run on more than one database server?
If NOT, then do not worry or if it takes 3 minutes to rewrite stuff do not
worry either.
If YES then you shoul
Hi All,
is anyone else experiencing this.? Over an hour for my posts to be seen.
Happening from work and home. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Merlin wrote:
Hi there,
I am curious if PHP is now able to pars xml without aditional tools like
xmlrpc.
If yes which version is required? Is the current php 4.x tree sufficient?
4.x requires the expat parser (so I guess it would require external libs).
5.x has the simplexml extension (which I bel
Hi All,
ok, this revised code produces the error below,
mysql_select_db("status",$db);
$maker_result = mysql_query("SELECT Makers.maker_id Makers.maker_detail
FROM Makers",$db);
$maker_num = mysql_num_rows($maker_result);//Line 40
?>
for ($i=0; $i<$maker_num; $i++){
$maker_myrow=mysql_fetch
Richard Lynch wrote:
On Wed, May 11, 2005 10:19 pm, Mark Sargent said:
I'll try this differently(I hope). With the below code, variables are
named/set twice ($db, $num, $result, $myrow) etc. In ASP, from what I
remember, that would be a no no. Currently, this code only populates the
I don't
On Wed, May 11, 2005 8:27 pm, James Williams said:
> On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> Is mysql_real_escape_string *DIFFERENT* in some incredibly huge secure
>> way
>> that I want to stop working on all my current projects to go re-write
>> the
>> 10,000,000 lines of code?
>
>
On Wed, May 11, 2005 8:58 pm, Jason Wong said:
> Well put it this way, addslashes() was not meant to make data "safe" for
> mysql, it just happened to work. Now there is a better/official/whatever
> alternative why not use it?
Actually, unless I'm very much mistaken about why addslashes() was
writ
On Wed, May 11, 2005 10:19 pm, Mark Sargent said:
> I'll try this differently(I hope). With the below code, variables are
> named/set twice ($db, $num, $result, $myrow) etc. In ASP, from what I
> remember, that would be a no no. Currently, this code only populates the
I don't think ASP would issue
Duncan Hill wrote:
On Wednesday 11 May 2005 17:13, Merlin wrote:
Hi there,
I am trying to strip some words from a sentence. I tried it with
str_replace like described here:
http://www.totallyphp.co.uk/code/find_and_replace_words_in_a_text_string_us
ing_str_replace.htm
Unfortunatelly it does not wor
98 matches
Mail list logo