|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 11 Sep 2003 17:05:36 -0000 Issue 2291
php-general-digest-help
lists.php.net
Date: Thu Sep 11 2003 - 12:05:36 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 11 Sep 2003 17:05:36 -0000 Issue 2291
Topics (messages 162247 through 162318):
Re: mysql_errror bug on innodb table
162247 by: daniel.electroteque.org
162249 by: Raditha Dissanayake
162250 by: daniel.electroteque.org
162252 by: Raditha Dissanayake
Encoding problem (french character) in txt file on Mac OS X
162248 by: Thierry Santacana
mail function
162251 by: Deependra b. Tandukar
162255 by: Kae Verens
162260 by: David
Re: Upload seems to time out over 7.5 M
162253 by: Marek Kilimajer
error socket_recvfrom
162254 by: Anang Syarifudin
Re: Do you really still pay for bandwidth?
162256 by: Kae Verens
162257 by: Duncan Hill
PHP and XML help needed
162258 by: Mr. Bogomil Shopov
162278 by: Raditha Dissanayake
multi languages pages - string 2 hexa ????
162259 by: olivier
162261 by: Marek Kilimajer
162263 by: Marek Kilimajer
reverse lookup/domain lookup in PHP
162262 by: Tim Baker
162264 by: Chris Kranz
162274 by: CPT John W. Holmes
162277 by: Tim Baker
162283 by: CPT John W. Holmes
162285 by: Tim Baker
Re: PHP and Ekit
162265 by: Alexandru COSTIN
strange new problem with IE
162266 by: Sam Folk-Williams
162267 by: Jay Blanchard
162271 by: Jay Blanchard
162292 by: Sam Folk-Williams
Attention Moderator - Autoresponder Needs Unsubing from list
162268 by: Jay Blanchard
Mysql Authentication problem
162269 by: James Hamilton
162270 by: Jay Blanchard
162272 by: Jay Blanchard
162273 by: James Hamilton
162275 by: CPT John W. Holmes
162280 by: James Hamilton
162282 by: Jay Blanchard
162287 by: James Hamilton
Get number of line with error
162276 by: \[cz\]Emo
162289 by: Marek Kilimajer
Mailing List Programme
162279 by: Sheni R. Meledath
162281 by: Jay Blanchard
162284 by: Raditha Dissanayake
162286 by: chris.neale.somerfield.co.uk
162288 by: Jay Blanchard
162290 by: Marek Kilimajer
162293 by: chris.neale.somerfield.co.uk
162300 by: Sheni R. Meledath
162301 by: CPT John W. Holmes
New Session Ids generated with each page request
162291 by: Golawala, Moiz M (IndSys, GE Interlogix)
162296 by: CPT John W. Holmes
pdf2txt or rtf
162294 by: Peter Rinab
162295 by: Jay Blanchard
162298 by: Brian V Bonini
Re: How to access a program outside of PHP?
162297 by: Adam Douglas
162299 by: Raditha Dissanayake
162302 by: Adam Douglas
Re: Single Quotes vs Double Quotes
162303 by: Dave Dash
Re: No answers found - Why var and why & ?
162304 by: Dave Dash
Re: PREG-pattern, help needed
162305 by: Dave Dash
crypt problem
162306 by: Serge Grondin
162307 by: Serge Grondin
Function calls and strings
162308 by: Ney André de Mello Zunino
Refresh Error
162309 by: Rex Brooks
storing quotes into a variable
162310 by: Doug Parker
162311 by: Rex Brooks
162312 by: chris.neale.somerfield.co.uk
Re: php editor
162313 by: Chris Hubbard
162314 by: Robert Cummings
162315 by: andu
162316 by: Chris Sherwood
AIX + PHP EXTENSION MODULE DOES NOT WORK
162317 by: ashish borkar
Problem with HTML Text box and PHP variable.
162318 by: Golawala, Moiz M (IndSys, GE Interlogix)
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
hmm this is tricky, on an innodb table if i do a rollback when i find an
error then trigger the error handler which dies to the screen it wont show
the message, but i commented out the rollback and it was find, how could i
execute the rollback properly then ?
> hi there i have noticed a bug where mysql_error is not returned on a
> transaction, why is this ?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
H,
The mysql_error() fucntion returns the error that took place for the
last call to the db. If you do a roll back that would be considered
another call and mysql_error() would then return the error (is any)
associated with the roll back. If this reason many programmer create a
separate error handling routing to watch of db errors and save them
elsewhere
all the best
daniel
electroteque.org wrote:
>hmm this is tricky, on an innodb table if i do a rollback when i find an
>error then trigger the error handler which dies to the screen it wont show
>the message, but i commented out the rollback and it was find, how could i
>execute the rollback properly then ?
>
>
>
>>hi there i have noticed a bug where mysql_error is not returned on a
>>transaction, why is this ?
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
ok i managed to set the generated error screen to a variable, do the
rollback then die
> H,
>
> The mysql_error() fucntion returns the error that took place for the
> last call to the db. If you do a roll back that would be considered
> another call and mysql_error() would then return the error (is any)
> associated with the roll back. If this reason many programmer create a
> separate error handling routing to watch of db errors and save them
> elsewhere
>
>
> all the best
>
>
>
>
> daniel
electroteque.org wrote:
>
>>hmm this is tricky, on an innodb table if i do a rollback when i find
>>an error then trigger the error handler which dies to the screen it
>>wont show the message, but i commented out the rollback and it was
>>find, how could i execute the rollback properly then ?
>>
>>
>>
>>>hi there i have noticed a bug where mysql_error is not returned on a
>>>transaction, why is this ?
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>>
>>
>
>
> --
> http://www.radinks.com/upload
> Drag and Drop File Uploader.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Great to hear.
Reading my previous post, i am suprised you understood it with all the
glaring spelling mistakes :-). Yikes. Sorry about that i typed it in too
much of a hurry.
daniel
electroteque.org wrote:
>ok i managed to set the generated error screen to a variable, do the
>rollback then die
>
>
>>H,
>>
>>The mysql_error() fucntion returns the error that took place for the
>>last call to the db. If you do a roll back that would be considered
>>another call and mysql_error() would then return the error (is any)
>>associated with the roll back. If this reason many programmer create a
>>separate error handling routing to watch of db errors and save them
>>elsewhere
>>
>>
>>all the best
>>
>>
>>
>>
>>daniel
electroteque.org wrote:
>>
>>
>>
>>>hmm this is tricky, on an innodb table if i do a rollback when i find
>>>an error then trigger the error handler which dies to the screen it
>>>wont show the message, but i commented out the rollback and it was
>>>find, how could i execute the rollback properly then ?
>>>
>>>
>>>
>>>
>>>
>>>>hi there i have noticed a bug where mysql_error is not returned on a
>>>>transaction, why is this ?
>>>>
>>>>--
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>--
>>http://www.radinks.com/upload
>>Drag and Drop File Uploader.
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
Hi,
I've tried several things but I can't get out of this issue !
I have this meta-tag in my header :
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
When I write some strings with french accentuated characters in a .txt
file with fwrite(), then when I open the file with SimpleText or
TextEdit (Mac OS X 10.2) or even with pico and emacs, I lose my accents
! "é" become "È" and so on...
I run php 4.3.0 on Mac OS X 10.2.6.
Help will be really appreciated ! Thanks
Cordialement,
===============================================================
Project:Omega - La référence pour les développeurs Mac OS X et plus
encore !
http://www.projectOmega.org/fr - AIM : thsantac - ICQ : 147837316
===============================================================
attached mail follows:
Dear all,
Recently installed PHP in my Linux server. It says, mail function is not
enabled? How is turn this on?
Regards,
_DT
attached mail follows:
Deependra B. Tandukar wrote:
> Dear all,
>
> Recently installed PHP in my Linux server. It says, mail function is not
> enabled? How is turn this on?
mail is handled by the server's smtp program. In Linux, this is
sendmail, and should be installed by default. Haven't a clue about
Windows (I don't do windows).
check for SMTP on the server (assuming Linux) by using the mail command
in the console to send yourself a test email ("man mail" for help)
Kae
attached mail follows:
If you are doing Windows, you set up SMTP in the php.ini to your mail
server, mine is SMTP = 192.168.16.2, and I also set up
sendmail_from = david
anagram-sys.co.uk
--
Kind Regards
David
Anagram Systems
http://www.anagram-sys.co.uk/
http://www.web-planets.com/davec/techsitedb/
"Deependra B. Tandukar" <deepndra
icimod.org.np> wrote in message
news:5.1.0.14.2.20030911112331.030a23f8
menris1.icimod.org.np...
> Dear all,
>
> Recently installed PHP in my Linux server. It says, mail function is not
> enabled? How is turn this on?
>
> Regards,
> _DT
attached mail follows:
set_time_limit() takes effect only during actual execution of php script.
Take a look at your max_input_time and post_max_size settings.
post_max_size should be higher than upload_max_filesize.
Dan Anderson wrote:
> try: set_time_limit(0); // don't time out.
>
> By default, if it takes more then 30 seconds (or is it 60?) to execute a
> web page PHP kills the script.
>
> -Dan
>
> On Wed, 2003-09-10 at 14:15, XXX XXX wrote:
>
>>Hello all,
>>
>>I couldn't upload any files larger than 2M. So I searched around and found
>>this post last night and I made the changes to the php.ini file to support
>>20M file uploads. The changes were successful but just like in the post
>>below I can't upload over a 7.5M file now. Any ideas would be much
>>appreciated.
>>
>>Thanks,
>>XXX
>
>
attached mail follows:
Hi guyz,
I've just tried a simple script using socket_recvfrom for a simple udp
daemon.
due a excessive traffic I got error :
<b>Warning</b>: socket_recvfrom() unable to recvfrom [11]: Resource
temporarily unavailable in <b>udp.php</b> on line <b>94</b><br />
udp packet size is fixed 1464 byte.
Is there spesific issue about max udp packet or packet/s ?
please help
Regards,
Anang
attached mail follows:
Dougd wrote:
> Do you really still pay for bandwidth?
>
I do. And that makes me very aware of bulky HTML and unnecessary images,
which I believe improves my work by forcing me to be efficient.
Kae
attached mail follows:
On Thursday 11 Sep 2003 10:57, Kae Verens wrote:
> Dougd wrote:
> > Do you really still pay for bandwidth?
>
> I do. And that makes me very aware of bulky HTML and unnecessary images,
> which I believe improves my work by forcing me to be efficient.
>
> Kae
Ditto. I pay for my time online. Yes, I pay a flat rate for x hours, but
large emails chew into my online time. I just saw a 1k text email that was
95k by the time the html was done. No matter which way you slice it, that
95k email is 95 times less efficient on my connection than the 1k. Or
something like that.
attached mail follows:
Hi folks
How I can put some php code in a XSL template.
I have a function that returns a value and I want this value to be entered
in a <img> tag in XSL template?
Thanks
Bogomil
attached mail follows:
Hi Mr Bogomil,
IMHO you should try to do this with <xsl:if/> most things that look like
it should be delegated to php can in fact be done easily with
<xsl:if/> or <xsl:choose/>
best regards
raditha
Mr. Bogomil Shopov wrote:
>Hi folks
>How I can put some php code in a XSL template.
>I have a function that returns a value and I want this value to be entered
>in a <img> tag in XSL template?
>
>Thanks
>Bogomil
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
Hi,
I have to create a multi-language web site. The interface language and the
content language are different.
The interface languages are frensh, english, spannish or portugese, but the
content can be english or russian or greek...
My idea is to write the string in hexa codes.
So is there a simple method in PHP to translater something like this
"Ïðàâèëà" to something like this
Правила ?
Is it the right solution? Is there other solution? Does anybody have
exerience about this?
Thanks for your help.
Cheers.
Olivier.
attached mail follows:
Use unicode and a unicode editor.
olivier wrote:
> Hi,
>
> I have to create a multi-language web site. The interface language and the
> content language are different.
> The interface languages are frensh, english, spannish or portugese, but the
> content can be english or russian or greek...
>
> My idea is to write the string in hexa codes.
> So is there a simple method in PHP to translater something like this
> "Ïðàâèëà" to something like this
> Правила ?
>
> Is it the right solution? Is there other solution? Does anybody have
> exerience about this?
>
> Thanks for your help.
>
> Cheers.
>
> Olivier.
>
attached mail follows:
Olivier Wauters wrote:
> Hi,
>
> Thank you for your reply.
> The thing is the the content is from a mysql database, and input with a web
> based application. And the website is totally dynamic. So I try to find the
> easier solution.
So you need to recode the content of mysql tables, you would need to do
it anyways even with the hexa codes. recode extension will help you.
Then simply put
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
to all head sections of your html pages. Then even the web based input
will work.
The only problem I see is that mysql does not support unicode, so some
features will be missing.
>
> Doeas Unicode is UTF8?
Yes
>
> Thank you.
>
> Olivier.
>
>
> ----- Original Message -----
> From: "Marek Kilimajer" <kilimajer
webglobe.sk>
> To: "olivier" <olivier
tentwelve.com>
> Cc: <php-general
lists.php.net>
> Sent: Thursday, September 11, 2003 11:33 AM
> Subject: Re: [PHP] multi languages pages - string 2 hexa ????
>
>
> Use unicode and a unicode editor.
>
> olivier wrote:
>
>
>>Hi,
>>
>>I have to create a multi-language web site. The interface language and the
>>content language are different.
>>The interface languages are frensh, english, spannish or portugese, but
>
> the
>
>>content can be english or russian or greek...
>>
>>My idea is to write the string in hexa codes.
>>So is there a simple method in PHP to translater something like this
>>"Ïðàâèëà" to something like this
>>Правила ?
>>
>>Is it the right solution? Is there other solution? Does anybody have
>>exerience about this?
>>
>>Thanks for your help.
>>
>>Cheers.
>>
>>Olivier.
>>
>
>
>
>
>
>
>
attached mail follows:
I've got some code doing IP checking using the HTTP header...but would like to improve it....
Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere?
Sounds weird I know but I want to also block a specific domain rather than a range of IPs (as IP addresses can and do change...) and wondering how/if this was possible?
thanks
Tim
attached mail follows:
> Is it possible to reverse lookup (like here
http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I
assume a DNS lookup requires an external server somewhere?
>
you can use exec or similar and to a reverse lookup like that... a
traceroute should cover it. please don't copy and paste my code, just giving
you an idea of what you'll do...
exec("traceroute ".$ip." > file.tmp")
then read the contents of file.tmp and you should be able to get the whole
of the traceroute. this brings up certain issues with speed of a traceroute
and run times of a script. also there may be a better way of doing this
other than piping the contents into a temporary file, but i've had issues
with reading what exec() outputs before (or whatever system call function
you'd like to use)
... hope this helps a little
attached mail follows:
From: "Tim Baker" <Tim.Baker
paconsulting.com>
> Is it possible to reverse lookup (like here
> http://www.whatismyipaddress.com/reverse.asp) to
> find the domain with PHP? I assume a DNS lookup
> requires an external server somewhere?
That's be great if there was a PHP function to do this, something like
gethostbyaddr(), wouldn't it?
;)
http://us2.php.net/manual/en/function.gethostbyaddr.php
It's expensive, though...
---John Holmes...
attached mail follows:
clever clogs ;-)
I didn't think PHP would have something like this...DOH! proven wrong again! ;-)
Expensive? In server/processor time, money or bandwidth (doubt the latter?)
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000
charter.net]
Sent: 11 September 2003 14:12
To: Tim Baker; php-general
lists.php.net
Subject: Re: [PHP] reverse lookup/domain lookup in PHP
From: "Tim Baker" <Tim.Baker
paconsulting.com>
> Is it possible to reverse lookup (like here
> http://www.whatismyipaddress.com/reverse.asp) to
> find the domain with PHP? I assume a DNS lookup
> requires an external server somewhere?
That's be great if there was a PHP function to do this, something like
gethostbyaddr(), wouldn't it?
;)
http://us2.php.net/manual/en/function.gethostbyaddr.php
It's expensive, though...
---John Holmes...
attached mail follows:
From: "Tim Baker" <Tim.Baker
paconsulting.com>
> Expensive? In server/processor time, money or bandwidth (doubt the
latter?)
server/processor time. It can take a while to get a response. Same as doing
it from command line.
---John Holmes...
attached mail follows:
Is that a major concern only for high-traffic sites? My site is low traffic...so I assume it'd be OK?
Just tried the example now - works gret :-)
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000
charter.net]
Sent: 11 September 2003 14:31
To: Tim Baker; php-general
lists.php.net
Subject: Re: [PHP] reverse lookup/domain lookup in PHP
From: "Tim Baker" <Tim.Baker
paconsulting.com>
> Expensive? In server/processor time, money or bandwidth (doubt the
latter?)
server/processor time. It can take a while to get a response. Same as doing
it from command line.
---John Holmes...
attached mail follows:
Hi,
You should either try a free JavaScript editor (htmlArea -
http://www.dynarch.com/mishoo/htmlarea.epl) or get a commercial one (KTML3 -
http://www.interakt.ro/products/KTML)
They are much better than a JavaEditors in terms of resources, speed and
features.
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Todd Cary" <todd
aristesoftware.com> wrote in message
news:3F5F5F8B.1070905
aristesoftware.com...
Has anyone incorporated Ekit with PHP?
If you have Java 2 installed, a simple demo of the Java based HTML editor
can be seen at
http://209.204.172.137/editor/ekit.html
Todd
--
attached mail follows:
Hi,
For about the past week or so (after getting a new IE update) I've been
having strange problems with IE and my PHP scripts. One out of ten times
or so, when you click on a link or open a page, IE pops up a file
download dialogue instead of displaying the page. It's asking you to
open or save the page you are trying to visit. This is on a site that's
been working fine for about 6 months. It seems to happen on any type of
page, whether it's just grabbing DB content for display, or has a form
and is updating a database.
Anyone else seeing this? Any thing I can do?
Sam
attached mail follows:
[snip]
For about the past week or so (after getting a new IE update) I've been
having strange problems with IE and my PHP scripts. One out of ten times
or so, when you click on a link or open a page, IE pops up a file
download dialogue instead of displaying the page. It's asking you to
open or save the page you are trying to visit. This is on a site that's
been working fine for about 6 months. It seems to happen on any type of
page, whether it's just grabbing DB content for display, or has a form
and is updating a database.
Anyone else seeing this? Any thing I can do?
[/snip]
What is the URL of the site? That way we can test.
The only thing that I can think of is that you may have header
declarations in your PHP/HTML which prompts IE to execute the "wanna
download?" routine that IE used to just open. Let's have a look at some
code from the top of a page and we may be able to help.
attached mail follows:
[snip]
Well, this is pretty weird. Now I'm trying to look at the site and I
can't
get it at all. I'm either getting the file download diagloue or this
strange
error message: php-engine: file
/home/k/h/user191796/html/staff/index.php
has incorrect uid/gid for effective uid 51 (2116/2116)
Below is some code from the top of a page, but this is working in other
browsers and everything has worked fine for the past 6 months or so.
http://www.rise.org
[/snip]
It asked me if I wanted to download too, the downloaded file contained
the message above. It's not your browser. Remember the PHP is processed
server side, so there is an error there. Has the server had any work
done to it?
P.S. Always make sure to "reply-all" so that responses get sent to the
list unless an off-list request has been made.
attached mail follows:
The server is hosted by Interland. I have a ticket opened with them. It
seems to me it must be something with the server because this just started
happening all of a suden.
Sam
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard
niicommunications.com>
To: "Sam Folk-Williams" <SFolk-Williams
rise.org>;
<php-general
lists.php.net>
Sent: Thursday, September 11, 2003 7:55 AM
Subject: RE: [PHP] strange new problem with IE
[snip]
Well, this is pretty weird. Now I'm trying to look at the site and I
can't
get it at all. I'm either getting the file download diagloue or this
strange
error message: php-engine: file
/home/k/h/user191796/html/staff/index.php
has incorrect uid/gid for effective uid 51 (2116/2116)
Below is some code from the top of a page, but this is working in other
browsers and everything has worked fine for the past 6 months or so.
http://www.rise.org
[/snip]
It asked me if I wanted to download too, the downloaded file contained
the message above. It's not your browser. Remember the PHP is processed
server side, so there is an error there. Has the server had any work
done to it?
P.S. Always make sure to "reply-all" so that responses get sent to the
list unless an off-list request has been made.
attached mail follows:
Each time I send/respond I get an autoresponder from (major snippage to
header)
Received: from lns.hs.ro (lns.hs.ro [194.102.195.10])
Received: from Aurel ([194.102.195.25])
by lns.hs.ro (8.11.6/8.11.0) with SMTP id h8BBR8s32710
Message-ID: <000201c37857$d59f9880$19c366c2
HS>
From: "Aurel Tirnovanu" <aurel
hs.ro>
Return-Path: aurel
hs.ro
From: "Aurel Tirnovanu" <aurel
hs.ro>
Subject: Raspuns:
The e-mail is blank but contains an attached e-mail in what appears to
be Romanian. I am sure that others are getting this. Can a mod please
remove them?
Thanks!
attached mail follows:
Hi
I am having problems using php to access a Mysql database as an
authecitcated user.
Environment:
Solaris 8, apache 1.3.28, php 4.3.1, mysql 3.23.43
My php scripts can connect to the test database using null user and
password. However, when I attempt to connect from a php script as user foo
password bar I get an "Access denied for user foo
localhost using password=YES".
However, this user/password combo is acceptable to the mysql command line
client.
I assume php is talking to mysql because i can connect as an
unauthenticated user to the test database, however when php tries to
connect, from localhost, as a valid user, it is not authenticating.
The user has both localhost and % host privileges in the mysql permission
schema.
Where do I look next?
Cheers
James
attached mail follows:
[snip]
The user has both localhost and % host privileges in the mysql
permission
schema.
[/snip]
Add the same user with 127.0.0.1 as the host. Make sure you reload
("flush") the users table
attached mail follows:
[snip]
> [snip]
> The user has both localhost and % host privileges in the mysql
> permission
> schema.
> [/snip]
>
> Add the same user with 127.0.0.1 as the host. Make sure you reload
> ("flush") the users table
>
Any other thoughts?
[/snip]
What is your connection string? (code)
P.S. Always make sure to "reply-all" so that responses get sent to the
list unless an off-list request has been made.
attached mail follows:
> > [snip]
> > The user has both localhost and % host privileges in the mysql
> > permission
> > schema.
> > [/snip]
> >
> > Add the same user with 127.0.0.1 as the host. Make sure you reload
> > ("flush") the users table
> >
>
> Any other thoughts?
> [/snip]
>
> What is your connection string? (code)
>
>
current testing code:
$link = mysql_connect("localhost", "user", "pass" )
or die("Could not connect : " . mysql_error());
print "Connected successfully";
mysql_select_db("name") or die("Could not select database");
print "connected";
with user = null && pass=null && name=test then I can access the test db
with no probs
JH
attached mail follows:
From: "James Hamilton" <jhamilton
alpha.net.au>
> current testing code:
>
> $link = mysql_connect("localhost", "user", "pass" )
> or die("Could not connect : " . mysql_error());
> print "Connected successfully";
> mysql_select_db("name") or die("Could not select database");
> print "connected";
>
> with user = null && pass=null && name=test then I can access the test db
> with no probs
How did you create this new user?
---John Holmes...
attached mail follows:
On Thu, 11 Sep 2003, CPT John W. Holmes wrote:
> > current testing code:
> >
> > $link = mysql_connect("localhost", "user", "pass" )
> > or die("Could not connect : " . mysql_error());
> > print "Connected successfully";
> > mysql_select_db("name") or die("Could not select database");
> > print "connected";
> >
> > with user = null && pass=null && name=test then I can access the test db
> > with no probs
>
> How did you create this new user?
Using mysql grant statements:
originally:
grant all privilges on name.* to user
localhost identified by 'pass';
grant all privileges on name.* to user
'%' identified by 'pass;
and just now
grant all privileges on name.* to user
'127.0.0.1'...
also tried expanding name.* to *.*
JH
attached mail follows:
[snip]
On Thu, 11 Sep 2003, CPT John W. Holmes wrote:
> > current testing code:
> >
> > $link = mysql_connect("localhost", "user", "pass" )
> > or die("Could not connect : " . mysql_error());
> > print "Connected successfully";
> > mysql_select_db("name") or die("Could not select database");
> > print "connected";
> >
> > with user = null && pass=null && name=test then I can access the
test db
> > with no probs
>
> How did you create this new user?
Using mysql grant statements:
originally:
grant all privilges on name.* to user
localhost identified by 'pass';
grant all privileges on name.* to user
'%' identified by 'pass;
and just now
grant all privileges on name.* to user
'127.0.0.1'...
[/snip]
And then you flushed (just double checking)?
attached mail follows:
> > How did you create this new user?
>
> Using mysql grant statements:
>
> originally:
>
> grant all privilges on name.* to user
localhost identified by 'pass';
> grant all privileges on name.* to user
'%' identified by 'pass;
> and just now
> grant all privileges on name.* to user
'127.0.0.1'...
> [/snip]
>
> And then you flushed (just double checking)?
Yup. Double checked again (just to make sure)
attached mail follows:
Hi all.
I want ask you it exist some way how to get number of line in script
producing error.
for example:
...
...
100 $sql_connection=mysql_connect( ....)
101 or die ( my_error_report_function ( $line_with_error ) );
...
...
Command at line 100 can produce error. And i need call some function by
die()
and put number of this line as function parameter. It's for sending mails
with error reports at web site.
Thanx for any idea
Emo
attached mail follows:
For PHP 4 >= 4.3.0:
function my_error_report_function($error) {
$bt=debug_backtrace();
return "$error in {$bt[1][file]} on line {$bt[1][line]}";
}
in older versions pass __FILE__ and __LINE__ to your function.
[cz]Emo wrote:
> Hi all.
>
> I want ask you it exist some way how to get number of line in script
> producing error.
> for example:
>
> ...
> ...
> 100 $sql_connection=mysql_connect( ....)
> 101 or die ( my_error_report_function ( $line_with_error ) );
> ...
> ...
>
> Command at line 100 can produce error. And i need call some function by
> die()
> and put number of this line as function parameter. It's for sending mails
> with error reports at web site.
>
> Thanx for any idea
>
> Emo
>
attached mail follows:
Hello:
I have created an application to read email addresses from a list and to
send emails. The problem now I am facing is, if the list is very long then
I am getting an error message in the browser "Server Timed Out". How can I
display a confirmation message and continue sending the emails from the
server? That is, trigger a separate script (not related to browser) on the
server which handles the emails and then return a success message. Can
anybody help me to find out a logic or script on this.
Sheni R Meledath
sheni
cyber-gear.com
attached mail follows:
[snip]
I have created an application to read email addresses from a list and to
send emails. The problem now I am facing is, if the list is very long
then
I am getting an error message in the browser "Server Timed Out". How can
I
display a confirmation message and continue sending the emails from the
server? That is, trigger a separate script (not related to browser) on
the
server which handles the emails and then return a success message. Can
anybody help me to find out a logic or script on this.
[/snip]
At the top of your mail script insert the following line
set_time_limit(0);
from the command line
php myMailScript.php
attached mail follows:
What jay has to say + please look at the archives for this month. You
will find this topic discussed quite often.
best regards
Jay Blanchard wrote:
>[snip]
>I have created an application to read email addresses from a list and to
>
>send emails. The problem now I am facing is, if the list is very long
>then
>I am getting an error message in the browser "Server Timed Out". How can
>I
>display a confirmation message and continue sending the emails from the
>server? That is, trigger a separate script (not related to browser) on
>the
>server which handles the emails and then return a success message. Can
>anybody help me to find out a logic or script on this.
>[/snip]
>
>At the top of your mail script insert the following line
>
>set_time_limit(0);
>
>from the command line
>
>php myMailScript.php
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
I've used the following line in some of my scripts, some of which run for 10
or 15 minutes.
set_time_limit(0);
The server won't time out, but it takes a while to get anything back to the
browser. It's not ideal, because it takes some time before anything gets
sent back to the browser, but it does the trick.
Kind regards
Chris Neale
Somerfield Stores Ltd.
-----Original Message-----
From: Sheni R. Meledath [mailto:sheni
cyber-gear.com]
Sent: 11 September 2003 13:23
To: PHP Masters
Subject: [PHP] Mailing List Programme
Hello:
I have created an application to read email addresses from a list and to
send emails. The problem now I am facing is, if the list is very long then
I am getting an error message in the browser "Server Timed Out". How can I
display a confirmation message and continue sending the emails from the
server? That is, trigger a separate script (not related to browser) on the
server which handles the emails and then return a success message. Can
anybody help me to find out a logic or script on this.
Sheni R Meledath
sheni
cyber-gear.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield. Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.
attached mail follows:
[snip]
I've used the following line in some of my scripts, some of which run
for 10
or 15 minutes.
set_time_limit(0);
The server won't time out, but it takes a while to get anything back to
the
browser. It's not ideal, because it takes some time before anything gets
sent back to the browser, but it does the trick.
[/snip]
Your server timeout would have to be ramped up too. And you can get
output to the browser...let's say you are looping
while($foo is good){
get data
process date
flush(information)
}
http://www.php.net/flush sends info to browser
Anyone sense a theme here for me this morning?!?
attached mail follows:
You can send some output now and then to the browser (and flush()), or
you can send the emails in steps, send first 300 emails, output a form
with hidden fields (and text "sending emails") containing the offset and
use onload="window.document.forms[0].submit()" to send the form and so on.
Sheni R. Meledath wrote:
> Hello:
>
> I have created an application to read email addresses from a list and to
> send emails. The problem now I am facing is, if the list is very long
> then I am getting an error message in the browser "Server Timed Out".
> How can I display a confirmation message and continue sending the emails
> from the server? That is, trigger a separate script (not related to
> browser) on the server which handles the emails and then return a
> success message. Can anybody help me to find out a logic or script on this.
>
>
> Sheni R Meledath
> sheni
cyber-gear.com
attached mail follows:
With max_execution_time directive in PHP.ini? I suppose I must have changed
that at some point too. I've tried using flush() before but without much
luck, and from what I've read in the manual I think it might be because I'm
running my setup on a Windows machine with IE6. A problem with client-side
buffering...
C
-----Original Message-----
From: Jay Blanchard [mailto:jay.blanchard
niicommunications.com]
Sent: 11 September 2003 13:36
To: Neale Chris; sheni
cyber-gear.com; php-general
lists.php.net
Subject: RE: [PHP] Mailing List Programme
[snip]
I've used the following line in some of my scripts, some of which run
for 10
or 15 minutes.
set_time_limit(0);
The server won't time out, but it takes a while to get anything back to
the
browser. It's not ideal, because it takes some time before anything gets
sent back to the browser, but it does the trick.
[/snip]
Your server timeout would have to be ramped up too. And you can get
output to the browser...let's say you are looping
while($foo is good){
get data
process date
flush(information)
}
http://www.php.net/flush sends info to browser
Anyone sense a theme here for me this morning?!?
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield. Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.
attached mail follows:
Hi,
Many thanks for the details. Now the problem is Flush() is not working on
my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The
page displays the title and then waits for teh complete script to execute.
I am using IE 6.0 to browse the page.
At 08:36 AM 9/11/03 -0500, you wrote:
>[snip]
>I've used the following line in some of my scripts, some of which run
>for 10
>or 15 minutes.
>set_time_limit(0);
>
>The server won't time out, but it takes a while to get anything back to
>the
>browser. It's not ideal, because it takes some time before anything gets
>sent back to the browser, but it does the trick.
>[/snip]
>
>Your server timeout would have to be ramped up too. And you can get
>output to the browser...let's say you are looping
>
>while($foo is good){
> get data
> process date
> flush(information)
>}
>
>http://www.php.net/flush sends info to browser
>
>Anyone sense a theme here for me this morning?!?
Sheni R Meledath
sheni
cyber-gear.com
attached mail follows:
From: "Sheni R. Meledath" <sheni
cyber-gear.com>
> Many thanks for the details. Now the problem is Flush() is not working on
> my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The
> page displays the title and then waits for teh complete script to execute.
> I am using IE 6.0 to browse the page.
The content could still be cached servers side or client side before being
displayed.
If you're using tables. IE may wait until </table> until it displays the
content.
---John Holmes...
attached mail follows:
My problem is that I get a new Session Id with every request I send to the server. For that reason I am unable to share variables between pages using sessions. (I get a new session Id even I refresh the same page). The code below prints out different session id for "page1.php" and "page2.php". Can someone please help me figure out what would be causing this.
on page1.php I have the following code:
<?php
session_start();
echo SID
?>
<a href="page2.php">Next page </a>
on page2.php I have the following code
<?php
session_start();
echo SID
?>
Moiz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <Moiz.Golawala
ge.com>
> My problem is that I get a new Session Id with every
> request I send to the server. For that reason I am unable
> to share variables between pages using sessions. (I get a
> new session Id even I refresh the same page). The code
> below prints out different session id for "page1.php" and
> "page2.php". Can someone please help me figure out what
> would be causing this.
>
> on page1.php I have the following code:
> <?php
> session_start();
> echo SID
> ?>
> <a href="page2.php">Next page </a>
>
> on page2.php I have the following code
> <?php
> session_start();
> echo SID
> ?>
Your browser is not accepting the session cookie for some reason.
Change your link to this:
<a href="page2.php<?=SID?>">Next Page</a>
and it'll work. You'll either have to pass the SID in every link/form, or
figure out why cookie aren't working.
---John Holmes...
attached mail follows:
I am looking for a php class which is able to read a pdf file and dump the
content in txt or rtf format file.
Any solutions?
Regards
--
Peter Rinab
eHelp24
Allescherstrasse 32
81479 München
Tel.: +49/89/74909-445
Fax.:+49/89/74909-351
Mobil: +49/171/4222676
www.eHelp24.com
attached mail follows:
[snip]
I am looking for a php class which is able to read a pdf file and dump
the
content in txt or rtf format file.
Any solutions?
[/snip]
Tons http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pdf2txt
attached mail follows:
On Thu, 2003-09-11 at 08:37, Peter Rinab wrote:
> I am looking for a php class which is able to read a pdf file and dump the
> content in txt or rtf format file.
>
> Any solutions?
There is a *NIX program for this, 'pdftotext' which you could execute
from PHP. Would that suffice?
attached mail follows:
Mmm... okay. I tried that and nothing. Is there no way for me to determine
what the problem is? Error message some place, log file, etc? I do not
understand why this is not work. Even a simple example from the PHP manual
on system() does not work.
> I meant to do this:
>
> $szPipe = `/htdocs/gs -q
> -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
> /htdocs/Sep08-113523.pdf`;
>
> >>Backticks is simply the ` sign (usually the character above
> the tab).
> >>Popularly know as `hair on the ear` in my country :-)
> >>for example if you want to invoke ls from php you just type
> >>
> >>$result = `ls`;
> >>
> >>hey presto the output from ls is now in your $result variable.
> >>
> >>
> >
> >Ohhh okay. Well if you mean to do this, $szPipe =
> popen(`/htdocs/gs -q
> >-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> >-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
> >/htdocs/Sep08-113523.pdf`, "r");. This does not seem change
> anything. If I
> >do this with the system() example, I get "Warning: system():
> Cannot execute
> >a blank command in /htdocs/index.php on line 14".
attached mail follows:
btw have you checked if you are in safe_mode? in php.ini
error level can also be set in php.ini
my guess is that you have a problem in your chroot setup.
best regards
Adam Douglas wrote:
>Mmm... okay. I tried that and nothing. Is there no way for me to determine
>what the problem is? Error message some place, log file, etc? I do not
>understand why this is not work. Even a simple example from the PHP manual
>on system() does not work.
>
>
>
>>I meant to do this:
>>
>>$szPipe = `/htdocs/gs -q
>>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
>>-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
>>/htdocs/Sep08-113523.pdf`;
>>
>>
>>
>>>>Backticks is simply the ` sign (usually the character above
>>>>
>>>>
>>the tab).
>>
>>
>>>>Popularly know as `hair on the ear` in my country :-)
>>>>for example if you want to invoke ls from php you just type
>>>>
>>>>$result = `ls`;
>>>>
>>>>hey presto the output from ls is now in your $result variable.
>>>>
>>>>
>>>>
>>>>
>>>Ohhh okay. Well if you mean to do this, $szPipe =
>>>
>>>
>>popen(`/htdocs/gs -q
>>
>>
>>>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
>>>-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
>>>/htdocs/Sep08-113523.pdf`, "r");. This does not seem change
>>>
>>>
>>anything. If I
>>
>>
>>>do this with the system() example, I get "Warning: system():
>>>
>>>
>>Cannot execute
>>
>>
>>>a blank command in /htdocs/index.php on line 14".
>>>
>>>
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
No I have Safe_Mode = off. I also have error_reporting = E_ALL and
display_errors = on and I have php errors to log to a log file. I have no
log file of php errors nor is there an error being display on the page.
Geez this is frustrating, yeah that's what I figure but you would think
there can be something done about this or at least get some error message to
determine what is going on.
> btw have you checked if you are in safe_mode? in php.ini
> error level can also be set in php.ini
>
> my guess is that you have a problem in your chroot setup.
> Adam Douglas wrote:
>
> >Mmm... okay. I tried that and nothing. Is there no way for
> me to determine
> >what the problem is? Error message some place, log file,
> etc? I do not
> >understand why this is not work. Even a simple example from
> the PHP manual
> >on system() does not work.
> >
> >
> >
> >>I meant to do this:
> >>
> >>$szPipe = `/htdocs/gs -q
> >>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> >>-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
> >>/htdocs/Sep08-113523.pdf`;
attached mail follows:
With all that's been said in mind ('$var' unparsed "$var" parsed).
The rule of thumb I follow is, if it needs to be parsed (has a $variable or
\n \r \t etc) then used double quotes, otherwise use single quotes... it
conserves processing.
-dd
"Micro Brew" <microbrewclub
yahoo.com> wrote in message
news:20030909040334.44065.qmail
web10306.mail.yahoo.com...
> Hi everyone,
>
> Could somebody please explain to me the difference
> between single quotes and double quotes in PHP. It
> seems like they can be used interchangeably a lot in
> PHP but not always. For example:
>
> This works:
> header('Location: http://somedomain.com')
>
> This does not work:
> header('Location: $url')
>
> This works:
> header("Location: $url")
>
>
> Why??? Sorry if this has been asked before, but I
> didn't find a suitable answer in the archives. TIA.
>
> Mike
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
attached mail follows:
var $varname before a constructor is just conventional syntax when defining
a class.
class myClass {
var $myThis;
function myClass() {
}
}
I'm sure you can do this another way, but it just makes reading the class
very easy, and it defines those variables for the entire scope of the class.
-dd
"André Cupini" <andre
neobiz.com.br> wrote in message
news:20030909152154.97733.qmail
pb1.pair.com...
> Save all programers! (sorry my "brazilian english")
>
> I have a simple doubt, but i´m tired because i not found answers...
> Why, inside a class, declarare $this variables in a format "var
$varname;"
> before of a constructor?
> And, please, what intend the "&" signal before functions name?
>
> I know the arguments reference methods like this:
> function bla(&$reference_arg)
>
> But what's the diference of the sintax:
> function &bla(&$var)
>
> Thanks for attention
>
> --
> André Cupini
> Programador - NeoBiz
> andre
neobiz.com.br
> http://www.neobiz.com.br
attached mail follows:
Hi Tobias,
This matches more than you'd like because [td] will match anything that has
a t in it or a d in it. More generally anything in brackets means the
RegExp will try to match something from that set.
What you might want is this:
preg_replace('/<td[^>]*>/i', "<td id='$counter'>");
The preg replaces <td> or <td with stuff inside> to what you wanted.
-d
"Tobias Talltorp" <tobias
talltorp.com> wrote in message
news:20030909162252.2720.qmail
pb1.pair.com...
> I need help with a preg-pattern for preg_replace_callback().
>
> I need to match <td(+all properties)> and replace them with <td
> id=$counter>.
>
> // this pattern is all wrong, since it matches and replaces all tags
> echo preg_replace_callback("|(<[td][^>]+>)|i", "bla", $html);
>
> ?>
>
>
> Any thoughts?
> // Tobias
attached mail follows:
Hi,
I have a weird problem with the crypt function.
If I do:
<?php
echo(CRYPT_SALT_LENGTH);
echo(CRYPT_MD5);
echo crypt("xxxxxxxx", 'aa');
echo crypt("xxxxxxxx", '$1$kTzSYf0n$');
?>
It print:
12 1 aat2dQ.feSqBI $1qjC9EADQ1x6
It seem that the second password is not encrypted in MD5 but with DES.
It should be in MD5 if I read the doc correctly.
My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.18-27
kernel, apache 1.3.27 and the configure string:
'./configure' '--with-mysql' '--with-apache=../apache' '--with-gettext'
'--with-xml' '--with-dom' '--with-imap=../imap' '--enable-mime-magic'
'--with-iconv' '--enable-mbstring' '--with-zlib' '--enable-calendar'
'--with-imap-ssl' '--with-mcrypt'
Is it something I do wrong or something wrong in my system?
Thank you.
--
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.: (819) 758-6453, poste 2920
e-Mail bur.: SGrondin
csbf.qc.ca
attached mail follows:
Hi,
I have a weird problem with the crypt function.
If I do:
<?php
echo(CRYPT_SALT_LENGTH);
echo(CRYPT_MD5);
echo crypt("xxxxxxxx", 'aa');
echo crypt("xxxxxxxx", '$1$kTzSYf0n$');
It print:
12 1 aat2dQ.feSqBI $1qjC9EADQ1x6
It seem that the second password is not encrypted in MD5 but with DES.
It should be in MD5 if the doc is correct.
My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.18-27
kernel, apache 1.3.27 and the configure string:
'./configure' '--with-mysql' '--with-apache=../apache' '--with-gettext'
'--with-xml' '--with-dom' '--with-imap=../imap' '--enable-mime-magic'
'--with-iconv' '--enable-mbstring' '--with-zlib' '--enable-calendar'
'--with-imap-ssl' '--with-mcrypt'
Is it something I do wrong or something wrong in my system?
Thank you.
--
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.: (819) 758-6453, poste 2920
e-Mail bur.: SGrondin
csbf.qc.ca
attached mail follows:
Hello.
PHP possesses what the manual calls "complex syntax" for allowing one to
include non-trivial expressions in strings, e.g.:
$s = "The result is {$results[$foo]}.";
I seek to find out whether PHP also has a syntax to allow function calls
within a string, so that explicit concatenation is not needed. E.g.:
something like:
$s = "The result is {getResult($foo)}.";
as opposed to
$s = "The result is " . getResult($foo) . ".";
If that is not possible, I would appreciate if someone could suggest the
rationale.
Thank you,
--
Ney André de Mello Zunino
attached mail follows:
Okay, I'm displaying an entire table of numbers from my database. Using a
form on the same page, you can enter an amount to add to the table and then
click submit. I pass all of the information in $_POST back to the same
page. Here is my code:
if ($_POST["number"] != NULL) {
if (is_numeric($_POST["number"]) || $_POST["number"] <= 0.0){
...
display stuff telling them they need to try again
...
}
else {
...
do stuff that adds the number to the table
...
$_POST["number"] = NULL;
}
}
...body of HTML document...
<form method="POST" action="table.php">
<table border="0" cellpadding="5">
<tr>
<td align="right">Add Amount</td>
<td><input type="text" name="number"></td>
</tr>
<tr>
<td colspan=2><center><input type="submit" value="Click to
Submit"></center></td>
</tr>
</table>
</form>
Everything seems to work fine, up until you click the refresh button, then
it will add whatever you just added to the table again, even if you have
nothing typed into the form and dont hit the submit button. So basically I
can add 500 by typing it in and clicking the submit button, then continue to
add an addition 500 every time I click the submit button. I want to be able
to refresh the page, but I cant figure out what is going wrong. Any ideas?
Rex
attached mail follows:
isn't there a function that allows me to store a string with a bunch of
quotes in it (like an html tag) into a variable?
for example, i need something like: $perf_mod = <a href="#"
onclick="popWindow('popup.php')">
thanks...
--
------------------------------------------------------------
http://www.phreshdesign.com
attached mail follows:
I think you just have to escape every double quote that you want to be a
part of the HTML code like this --> /"
That should work. I dont think you have to escape the single quotes, but I
could be wrong.
"Doug Parker" <drparker
phreshdesign.com> wrote in message
news:20030911154350.38894.qmail
pb1.pair.com...
> isn't there a function that allows me to store a string with a bunch of
> quotes in it (like an html tag) into a variable?
>
> for example, i need something like: $perf_mod = <a href="#"
> onclick="popWindow('popup.php')">
>
> thanks...
>
> --
>
>
>
> ------------------------------------------------------------
> http://www.phreshdesign.com
attached mail follows:
$perf_mod = '<a href="#" onclick="popWindow(\'popup.php\')';
using \ to escape the '
\ escapes special characters. See the manual.
Regards
Chris
-----Original Message-----
From: Doug Parker [mailto:drparker
phreshdesign.com]
Sent: 11 September 2003 15:44
To: php-general
lists.php.net
Subject: [PHP] storing quotes into a variable
isn't there a function that allows me to store a string with a bunch of
quotes in it (like an html tag) into a variable?
for example, i need something like: $perf_mod = <a href="#"
onclick="popWindow('popup.php')">
thanks...
--
------------------------------------------------------------
http://www.phreshdesign.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield. Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.
attached mail follows:
I think the BEST php editor "out there" is Microsoft's Visual Studio.
Here's some of the reasons I think Visual Studio is the BEST
1. None of that annoying syntax highlighting that you find in many other
editors
2. Unlimited technical support (at only $245 per call)
3. At $1000 - $2500 per copy it's has substantially more features than
other cheaper editors.
4. It uses far more memory, so it remembers more stuff.
5. I can seamlessly integrate .NET into my PHP code
6. I don't have to waste my time with integrated debuggers
7. It automatically generates obfuscated code
8. I don't have to worry about those annoying GPL or LGPL licenses
9. Runs great on SuSE
10. When it crashes I know I need to take my ergonomic break
11. When loading large projects I have plenty of time to make myself a cup
of tea, or if I'm out of tea, to drive to the store to buy some tea, return,
brew a cup, read slashdot, take a shower....
12. The outstanding support of PHP at Microsoft.
Read about Microsoft's support of PHP here: www.microsoft.com/php
Read about Microsoft's integration of PHP and Visual Studio here:
www.microsoft.com/vstudio/support/php
------------------------------------------
Now if you're serious. Do us all a favor. Do a little research first.
This question has been answered on so many sites/newsgroups.
-alternatively-
the best php editor out there is the one that you use.
------------------------------------------
I do like my first answer the best.
heh.
------------------------------------------
If you made it this far, try this page:
http://www.php-editors.com/result.php?showall=y
Ironically Yours,
Chris
-----Original Message-----
From: STONE Steven [mailto:Steven.Stone
CardiffandVale.wales.nhs.uk]
Sent: Wednesday, September 03, 2003 3:21 AM
To: php mailing list
Subject: [PHP] php editor
What's the best php editor out there?
Thanks in advance for nay replies!
attached mail follows:
*ROFL*
Rob.
On Thu, 2003-09-11 at 12:54, Chris Hubbard wrote:
> I think the BEST php editor "out there" is Microsoft's Visual Studio.
> Here's some of the reasons I think Visual Studio is the BEST
> 1. None of that annoying syntax highlighting that you find in many other
> editors
> 2. Unlimited technical support (at only $245 per call)
> 3. At $1000 - $2500 per copy it's has substantially more features than
> other cheaper editors.
> 4. It uses far more memory, so it remembers more stuff.
> 5. I can seamlessly integrate .NET into my PHP code
> 6. I don't have to waste my time with integrated debuggers
> 7. It automatically generates obfuscated code
> 8. I don't have to worry about those annoying GPL or LGPL licenses
> 9. Runs great on SuSE
> 10. When it crashes I know I need to take my ergonomic break
> 11. When loading large projects I have plenty of time to make myself a cup
> of tea, or if I'm out of tea, to drive to the store to buy some tea, return,
> brew a cup, read slashdot, take a shower....
> 12. The outstanding support of PHP at Microsoft.
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
attached mail follows:
On Thu, 11 Sep 2003 08:54:06 -0800
"Chris Hubbard" <chris
wildcharacters.com> wrote:
> I think the BEST php editor "out there" is Microsoft's Visual Studio.
You should've posted this before I got all invested with Nedit, Linux and the
like...
> Here's some of the reasons I think Visual Studio is the BEST
> 1. None of that annoying syntax highlighting that you find in many other
> editors
> 2. Unlimited technical support (at only $245 per call)
> 3. At $1000 - $2500 per copy it's has substantially more features than
> other cheaper editors.
> 4. It uses far more memory, so it remembers more stuff.
> 5. I can seamlessly integrate .NET into my PHP code
> 6. I don't have to waste my time with integrated debuggers
> 7. It automatically generates obfuscated code
> 8. I don't have to worry about those annoying GPL or LGPL licenses
> 9. Runs great on SuSE
> 10. When it crashes I know I need to take my ergonomic break
> 11. When loading large projects I have plenty of time to make myself a cup
> of tea, or if I'm out of tea, to drive to the store to buy some tea, return,
> brew a cup, read slashdot, take a shower....
> 12. The outstanding support of PHP at Microsoft.
>
> Read about Microsoft's support of PHP here: www.microsoft.com/php
> Read about Microsoft's integration of PHP and Visual Studio here:
> www.microsoft.com/vstudio/support/php
>
> ------------------------------------------
> Now if you're serious. Do us all a favor. Do a little research first.
> This question has been answered on so many sites/newsgroups.
>
> -alternatively-
>
> the best php editor out there is the one that you use.
>
> ------------------------------------------
>
> I do like my first answer the best.
> heh.
>
> ------------------------------------------
>
> If you made it this far, try this page:
> http://www.php-editors.com/result.php?showall=y
>
> Ironically Yours,
> Chris
>
>
>
> -----Original Message-----
> From: STONE Steven [mailto:Steven.Stone
CardiffandVale.wales.nhs.uk]
> Sent: Wednesday, September 03, 2003 3:21 AM
> To: php mailing list
> Subject: [PHP] php editor
>
>
> What's the best php editor out there?
>
> Thanks in advance for nay replies!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
____
Regards, Andu Novac
attached mail follows:
Thanks for starting my day out with a chuckle.. this is one of the better
tongue in cheek items I have seen in a little bit
Chris
I think the BEST php editor "out there" is Microsoft's Visual Studio.
Here's some of the reasons I think Visual Studio is the BEST
1. None of that annoying syntax highlighting that you find in many other
editors
2. Unlimited technical support (at only $245 per call)
3. At $1000 - $2500 per copy it's has substantially more features than
other cheaper editors.
4. It uses far more memory, so it remembers more stuff.
5. I can seamlessly integrate .NET into my PHP code
6. I don't have to waste my time with integrated debuggers
7. It automatically generates obfuscated code
8. I don't have to worry about those annoying GPL or LGPL licenses
9. Runs great on SuSE
10. When it crashes I know I need to take my ergonomic break
11. When loading large projects I have plenty of time to make myself a cup
of tea, or if I'm out of tea, to drive to the store to buy some tea,
return,
brew a cup, read slashdot, take a shower....
12. The outstanding support of PHP at Microsoft.
attached mail follows:
Hi ,
I am writing a php extension module on AIX 4.3.3 RS6000 machine.I have compiled php as CGI.When I test my php extension module function from a test php script I get a CORE dump.The gdb php core is as below
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0 0xd0990180 in zend_parse_parameters ()
(gdb) bt
#0 0xd0990180 in zend_parse_parameters ()
#1 0xd0990930 in zif_myfunction ()
#2 0x1002c5a4 in execute (op_array=0x200e6c70, tsrm_ls=0x20027738)
at /usr/local/php-4.3.2/Zend/zend_execute.c:1606
#3 0x1000e0d4 in zend_execute_scripts (type=8, tsrm_ls=0x20027738, retval=0x0, file_count=3)
at /usr/local/php-4.3.2/Zend/zend.c:869
#4 0x10007410 in php_execute_script (primary_file=0x5, tsrm_ls=0x3027738)
at /usr/local/php-4.3.2/main/main.c:1671
#5 0x10001ec8 in main (argc=2, argv=0x2ff228c0) at /usr/local/php-4.3.2/sapi/cgi/cgi_main.c:1501
#6 0x100001dc in __start ()
I have tried all combinations of ZTS=0 ZEND_DEBUG =0
ZTS=0 ZEND_DEBUG =1
ZTS=1 ZEND_DEBUG =0
ZTS=1 ZEND_DEBUG =1
for compiling php as well as my extension module. All give the same result :-(
Has anyone encountered this on a AIX machine.
If not atleast has anyone successfully tested a PHP extension module on a AIX machine.I urgently need some Help.No matter what I tried till now All has failed.
Thanks & Regards
Ashish Borkar
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
attached mail follows:
I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is "Hello" the line below will render it correctly
echo "<td><input type=text name=value".$j.$i." size=20 value=".$myString."></td>";
However if the value of $myString is "Hello 1" then the line above will populate the text box with only "Hello" and it will loose the "1"
If I change the problem line to the following:
echo "<td>".$myString."</td>";
I don't have a problem. "Hello 1" will be rendered correctly. But then I don't have a text box to edit the value. Please help.
Thanks
Moiz
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]