php-general Digest 5 Jul 2008 08:56:39 - Issue 5551
Topics (messages 276289 through 276295):
Scrambling a word
276289 by: Ron Piggott
276290 by: Michael S. Dunsavage
276291 by: Stefano Esposito
276292 by: Ron Piggott
276295 by: Richard Heyes
Trying
php-general Digest 5 Jul 2008 21:40:48 - Issue 5552
Topics (messages 276296 through 276320):
Asynchronous PHP Execution
276296 by: Waynn Lue
276299 by: Richard Heyes
276310 by: Shawn McKenzie
276311 by: Richard Heyes
276314 by: Shawn McKenzie
Is there a way to output the results with a space between each
character?
$shuffled = str_shuffle($str);
From memory:
$shuffled = implode(' ', explode('', $shuffled));
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
post-processing on those rows, but don't want to put it in the
critical path of the rows being inserted and returning to the user.
What's the best way to either
Using an empty delimeter with explode leads to a php warning. At least
in the php versions i worked with. Still there is a similar function:
?php
var_dump(chunk_split('test', 1, ' '));
Odd. Don't know where that idea came from then.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
Hi,
I need to create an e-shop in PHP.
this is for me the first time that i need to do that and i think the way how
to approach such topic is different that creating a simple corporate web
site.
Here are the standard features that i need to implement:
- home page including latest article/news,
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end immediately, and the
Hi list,
I am trying to get info out of a MS Access 2000 db. So far I have
managed to do some of it but current part has me stumped.
Set up
Machine 1 - Debian 4, Apache, PHP5 unixodbc, mdbtools
Machine 2 - WindowsXP, MS-Access
Database is in a windows share that is smfs mounted on the
Michael S. Dunsavage wrote:
I have a form I want to keep sticky, but I can't figure out how. I got
all the INPUT's to be sticky
The select script
?php
echo 'strongState/strongbr';
echo 'select name=State';
foreach ($state_list as $key = $value) {
echo option
David Robley wrote:
x0ml wrote:
For some reason this first post didn't post to this newsgroup...
x0ml [EMAIL PROTECTED] wrote in message news:...
I've installed PHP version 5.2.6 but phpinfo() and php -v both report
back the old version 5.0.2.
You did restart the server after making the
It flance wrote:
Some months ago i worked with XML. And i remember that i was able to
create xml files quite easily. Now i don`t have the book i used by the
time. I made many searches in google and i don't find something
interesting. So i'm wondering if somebody can give a good link with
On Sat, Jul 5, 2008 at 6:26 AM, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
I need to create an e-shop in PHP.
this is for me the first time that i need to do that and i think the way
how
to approach such topic is different that creating a simple corporate web
site.
Here are the standard
On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson [EMAIL PROTECTED]
wrote:
Hi list,
I am trying to get info out of a MS Access 2000 db. So far I have managed
to do some of it but current part has me stumped.
Set up
Machine 1 - Debian 4, Apache, PHP5 unixodbc, mdbtools
Machine 2 - WindowsXP,
Alain Roger wrote:
Hi,
I need to create an e-shop in PHP.
this is for me the first time that i need to do that and i think the way how
to approach such topic is different that creating a simple corporate web
site.
STFW: php: open source e-commerce
On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert [EMAIL PROTECTED] wrote:
On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson [EMAIL PROTECTED]
wrote:
Hi list,
I am trying to get info out of a MS Access 2000 db. So far I have
managed to do some of it but current part has me stumped.
Set up
On Sat, 2008-07-05 at 21:30 +1000, Peter Jackson wrote:
Michael S. Dunsavage wrote:
I have a form I want to keep sticky, but I can't figure out how. I got
all the INPUT's to be sticky
The select script
?php
echo 'strongState/strongbr';
echo 'select name=State';
Hi,
I'd like to know if there are any tutorials about SAP and PHP. I'm moving
to a new company and there is the need to provide some sort of access to
internet/intranet to resources available in SAP.
Since I work with PHP I am wondering what kind of support, tips, info I can
get in order to
Richard Heyes wrote:
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings, all.
I am trying to figure out a way to implement the following logic, but I am not
sure if it is possible to do so without a lot of additional side work:
I have a class, A, and another class B that extends A. They live in separate
files. The logic I need to implement is as
At 11:31 AM -0400 7/5/08, Michael S. Dunsavage wrote:
What I eventually did was:
-snip-
You might also consider adding a javascript routine to do the same
thing. Why? Because it's a bit quicker doesn't hit the server until
all the fields are filled.
Like this:
Richard Heyes wrote:
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
My bad. I was trying to shorten your command. redirects stdout and
stderr, unfortunately in c shell though.
-Shawn
--
PHP General
Richard Heyes wrote:
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
I can't always remember because I think some things that are in c shell
but aren't available in bourne have been incorpoated into bash. So
On Sat, Jul 5, 2008 at 6:01 AM, Waynn Lue [EMAIL PROTECTED] wrote:
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
post-processing on those rows, but don't want to put it in the
critical path of the rows
First of all, I don't think using autoload is recommended.
If you really want to do it that way, you could check if the file which
autoload will try to include exists and if it does, include it and create
your object.
Actually to make the script more safe, after including the file you should
On Saturday 05 July 2008 2:25:20 pm Pulni4kiya wrote:
First of all, I don't think using autoload is recommended.
Why not? I know there is a performance hit for the lookup time, but for the
system I'm working on I have already solved that issue with selective
pre-caching.
If you really want
Well reimplementing autoloading doesn't seem such a bad idea.
With the integrated autoload ...there is one very stupid way of doing what
you want. Something like this (I suppose you know which class is the parent
of the one that is 'missing'):
eval(class $class_name extends THE_PARENT {});
You
Pulni4kiya wrote:
Well reimplementing autoloading doesn't seem such a bad idea.
With the integrated autoload ...there is one very stupid way of doing
what you want. Something like this (I suppose you know which class is
the parent of the one that is 'missing'):
eval(class $class_name extends
Bastien Koert wrote:
On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert [EMAIL PROTECTED] wrote:
On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson [EMAIL PROTECTED]
wrote:
$conn=odbc_connect(Database,,); works
$a = abcd; (this value exists in db)
$stat = Select * FROM . 'Table Name';
$qry =
On Sat, Jul 5, 2008 at 1:36 PM, Larry Garfield [EMAIL PROTECTED] wrote:
Greetings, all.
I am trying to figure out a way to implement the following logic, but I am not
sure if it is possible to do so without a lot of additional side work:
I have a class, A, and another class B that extends A.
The selection will stick until you do a form submit. The most common
practice in PHP is to update the database with the value from the form or at
least save it in a session. After the update you can redisplay your form
after fetching the DB contents or getting the selection from the session
into
On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
When you fail to indicate which item in a select list is selected
most
browsers will default to showing the first entry (effectively
unsticking
your choice).
Good luck
ahhh! I was wondering where the selected came fro :)
Thanx for
On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
foreach ($state_list as $key = $value) {
echo option value=\$key\;
if($key == $choice) echo selected; // now it's
sticky
;-)
echo $value/option\n;
}
Just another quick ?..
where is
33 matches
Mail list logo