php-general Digest 22 Jun 2006 16:00:12 - Issue 4200
Topics (messages 238500 through 238513):
Re: GD problems
238500 by: David Robley
Re: sort multidimension array
238501 by: Ford, Mike
detect user click stop button in browser
238502 by: weetat
238503 by:
Beauford wrote:
There is something wonky with gd. I completely reinstalled Slackware
today, including PHP, gd, and all the other stuff - and still nothing.
I downloaded 5 separate captcha scripts and only got one to work. The code
in all of them is very similar in that it creates a
On 22 June 2006 02:22, weetat wrote:
Hi all,
I have multi-arrays as shown below:
I implemented usort() to sort the array by 'country' field
in the array.
However there some empty string value in the array and i setup my
cmpcountry() function to sort array, however , some country
Hi all,
Can we detected if user have clicked the X button in browser or
close browser ?
I have tested in my php program ,when i click X in IE6 , the
execution did not stop , it still running .
Any ways to stop the program execution when user click the X button
or close browser ?
Thanks
Check int connection_aborted ( ) in the PHP manual
Andy
weetat wrote:
Hi all,
Can we detected if user have clicked the X button in browser or
close browser ?
I have tested in my php program ,when i click X in IE6 , the
execution did not stop , it still running .
Any
Hi,
A pal of mine needed some help on his project, he is
using a header and footer file to template his
project... but its gotten a bit complicated as he has
a few dynamic parts in the header and footer files, so
I told him to go with a proper templating method of
templating the whole page rather
Ryan,
I would still recommend Smarty.
It can be as big as you like, but it can also be very simple to set up and
maintain. It has the features should your friend decide to expand his usage
in the future. If you opt now for something with limited features and later
decide to step beyond them,
Ryan A wrote:
Hi,
A pal of mine needed some help on his project, he is
using a header and footer file to template his
project... but its gotten a bit complicated as he has
a few dynamic parts in the header and footer files, so
I told him to go with a proper templating method of
templating the
At 08:10 AM 6/22/2006, Ryan A wrote:
Hi,
A pal of mine needed some help on his project, he is
using a header and footer file to template his
project... but its gotten a bit complicated as he has
a few dynamic parts in the header and footer files, so
I told him to go with a proper templating
On 22/06/06, Miles Thompson [EMAIL PROTECTED] wrote:
At 08:10 AM 6/22/2006, Ryan A wrote:Hi,A pal of mine needed some help on his project, he isusing a header and footer file to template hisproject... but its gotten a bit complicated as he has
a few dynamic parts in the header and footer files,
IMHO I would go with Smarty as it has excellent documentation and
would fit almost anything that the project would require. I also
think it would be a cleaner way of templating than using str_replace
() over and over again. For what it's worth, I use Smarty on almost
all of my projects,
Good day
I am busy working on a form using QuickForm.
I would like to make use of a confirmation page where the user must
eitheir select to change the details or continue. Does anyone know how
to achieve this?
Regards
Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Miles Thompson wrote:
Don't forget, PHP itself is a templating language. Just do a standard
page, with includes for headers and footers, menus, and content.
If he wants to change colour, then load a different stylesheet for a
given page or content section.
This way he can use the tool that's
I am busy working on a form using QuickForm.
I would like to make use of a confirmation page
where the user must eitheir select to change the
details or continue. Does anyone know how to
achieve this?
On POST, you could redisplay the form in a Frozen
state. If the form is frozen, you
PHP List,
Very frequently I use mysql_fetch_row in a while statement to
while($variable = mysql_fetch_row($mysqlResult)){
echo $variable[text1];
echo $variable[text2];
}
Pretty standard.
But what do I do when I want to do the same kind of while loop not with
a MySQL result, but with just a
Dave M G a écrit :
PHP List,
Pretty standard.
But what do I do when I want to do the same kind of while loop not
with a MySQL result, but with just a regular array?
while (variable = ($array)){
echo $variable[text1];
echo $variable[text2];
}
did you try something like this ?
foreach
Dave M G wrote:
PHP List,
Very frequently I use mysql_fetch_row in a while statement to
while($variable = mysql_fetch_row($mysqlResult)){
echo $variable[text1];
echo $variable[text2];
}
Pretty standard.
But what do I do when I want to do the same kind of while loop not with
a MySQL result,
the foreach loop is probably better (it doesn't require
reset()ing the array pointer for instance) but you should also
look at the example on this page (using the current() function in a
while loop):
http://php.net/key
Dave M G wrote:
PHP List,
Very frequently I use mysql_fetch_row
Dave M G wrote:
PHP List,
Very frequently I use mysql_fetch_row in a while statement to
while($variable = mysql_fetch_row($mysqlResult)){
echo $variable[text1];
echo $variable[text2];
another thing. $variable[text2] is bad because you very likely don't
have a constant in your code named
Jochem, Tul, Nicolas,
Thank you for your help.
I must be doing something wrong with how my array is generated. It's
actually just a MySQL result, but because it is returned from a
function, it does not seem to behave as I would expect a MySQL result
should.
I'm trying the foreach function
I'm having some problems where some undefined entity are getting in,
these entities are usually html entities.
sad thing isquot;brvbar;bringing in these large chains is putting
the xml doc points to the in ;brvbar as the problem. what do I
need to do to get this stuff cleaned up?
--
PHP
Good afternoon and salutations denizens of the greatest list generated
by electrons!
I have a situation where I am trying to commit a transaction in Oracle
with PHP as follows;
$udGeocode = oci_parse($conn, UPDATE CONT_ADDRESS SET GEOCODE =
'.$geocode[0].' WHERE CONTRACT_ID = '.$row[0].' AND
Dave M G wrote:
Jochem, Tul, Nicolas,
Thank you for your help.
I must be doing something wrong with how my array is generated. It's
actually just a MySQL result, but because it is returned from a
function, it does not seem to behave as I would expect a MySQL result
should.
I'm trying the
Dan McCullough wrote:
I'm having some problems where some undefined entity are getting in,
these entities are usually html entities.
sad thing isquot;brvbar;bringing in these large chains is putting
the xml doc points to the in ;brvbar as the problem. what do I
need to do to get this stuff
fiberuplink.com - unavailable.. looks like rob's ddos attack worked on
his own server, must be his testing before turning in his paper...
Wolf
Adam Zey wrote:
Rob W. wrote:
No that wasnt a ddos threat you idiot, i dont play them games.
And when you keep sending spam is when it starts to
Jay Blanchard wrote:
Good afternoon and salutations denizens of the greatest list generated
by electrons!
I have a situation where I am trying to commit a transaction in Oracle
with PHP as follows;
$udGeocode = oci_parse($conn, UPDATE CONT_ADDRESS SET GEOCODE =
'.$geocode[0].' WHERE
On Thu, June 22, 2006 6:10 am, Ryan A wrote:
He just needs maybe 5 template
pages, same pages, different color.
For something THIS simple, I truly believe you are Better Off (tm)
with a simple head() and foot() function in a globals.inc file:
function head($title = My Site, $bgcolor =
On Thu, June 22, 2006 4:16 am, weetat wrote:
Can we detected if user have clicked the X button in browser or
close browser ?
I have tested in my php program ,when i click X in IE6 , the
execution did not stop , it still running .
Any ways to stop the program execution when user click
On Tue, June 20, 2006 7:32 pm, Michael Satterwhite wrote:
I have a site that generates a file to be streamed down. The relevant
code is:
--
header(Content-type: application/vnd.ms-excel);
header(Content-disposition: attachment;
On Tue, June 20, 2006 4:56 pm, Jonas Rosling wrote:
I've done the following code bellow for an e-mail form. But it handles
the
HTML tags as text. Is there anyway to get the HTML tags processed to
form
the mail?
?php
@extract($_POST);
Errr.
You might as well just turn
On 6/20/06, Jon Anderson [EMAIL PROTECTED] wrote:
Assuming you're using a web server that supports htaccess files, you
could easily just pop in a .htaccess file that denies access to
everything. You could even add a PHP ini directive like:
php_value auto_prepend_file maintenance.php
where
[snip]
did the execute actually succeed? does the data get into the DB if you
use OCI_COMMIT_ON_SUCCESS instead of OCI_DEFAULT?
I don't support using oci_internal_debug() gives you any extra info?
[/snip]
I finally did an oci_bind_by_name and then performed the commit. It
worked.
At 6:26 PM -0500 6/22/06, Richard Lynch wrote:
On Thu, June 22, 2006 6:10 am, Ryan A wrote:
He just needs maybe 5 template
pages, same pages, different color.
For something THIS simple, I truly believe you are Better Off (tm)
with a simple head() and foot() function in a globals.inc file:
On Tue, June 20, 2006 12:53 pm, Ben Liu wrote:
I'm not sure this is strictly a PHP related question or perhaps a
server admin question as well. What do you do when you are trying to
shutdown a web application for maintenance (like a membership or
registration-required system)? I understand
On Tue, June 20, 2006 4:02 pm, Don wrote:
I have a varchar field in a MySQL database that contains a line of
text like
so:
This is a line if text
The double quotes are included in the database field.
I cannot seem to display it on my HTML page, it always shows as blank.
I
have tried
On Tue, June 20, 2006 6:43 am, suresh kumar wrote:
I am facing one problem in my project.i want to restrict more
than one user login in the same account .Is there any functions
available to check r we can implement using session.
You'll have to decide for yourself when a user is or isn't
On Tue, June 20, 2006 1:37 am, Rob W. wrote:
I still have not yet found anybody to help me with this. All the code
that
people have given me has not worked at all. I still get no output. So
to add
a little more to this, I'm gonna define how the database looks.
Damn.
Tack on this at the end:
$max_port = 2048;
for ($p = $last_port + 1; $p $max_port; $p++) echo $p is openbr
/\n;
On Tue, June 20, 2006 1:37 am, Rob W. wrote:
I still have not yet found anybody to help me with this. All the code
that
people have given me has not worked at all. I
Hi all,
I need to parse and write data to xml file ,
There some value as shown below:
InstanceName![CDATA[�ù?¸€ü÷Œ�ú�ù?à�ù?Ø€�Z4À„�Ï]]/InstanceName
I need to write the data to be valid value.
I am using PEAR:XMLSerializer to read the xml file, however , the PEAR
XMLSerializer always prompt
On Tue, June 20, 2006 2:38 am, Satyam wrote:
I come from languages
where
you not only have to initialize a variable but have to declare it as
well so
initializing comes natural, I feel wrong if I don't do it, even if the
interpreter does not care.
Just to be pedantic...
The interpreter
Hi Andrei,
I have tried the connection_aborted() in my code , however it not
working at all , below is my code:
If i close the browser window(IE) , the script still running and call
the difference() function as shown below:
Any ideas what is happening ? Thanks
ignore_user_abort(true);
On Thu, June 22, 2006 7:23 pm, tedd wrote:
At 6:26 PM -0500 6/22/06, Richard Lynch wrote:
On Thu, June 22, 2006 6:10 am, Ryan A wrote:
He just needs maybe 5 template
pages, same pages, different color.
For something THIS simple, I truly believe you are Better Off (tm)
with a simple head() and
On Thu, June 22, 2006 9:48 pm, weetat wrote:
I have tried the connection_aborted() in my code , however it not
working at all , below is my code:
If i close the browser window(IE) , the script still running and call
the difference() function as shown below:
Any ideas what is happening ?
On Wed, June 21, 2006 1:06 pm, Beauford wrote:
This is the output from ?php var_dump(gd_info()); ?. As far as I can
tell,
jpeg support is enabled. It also says it is if I run phpinfo(). Yet is
still
doesn't work.
Anyone know of a way I can test this further. A small script perhaps.
?php
44 matches
Mail list logo