php-general Digest 17 May 2005 20:57:41 - Issue 3460
Topics (messages 215372 through 215410):
PHP and COM+ prob
215372 by: bob pilly
215395 by: Jochem Maas
Re: JavaScript+Html+PH
215373 by: fabien champel
215377 by: Richard Sitompul
Re: PHP Phone Number
Hi,
The latest beta release of pgEdit 1.1 includes support for PHP. If you
use PHP and PostgreSQL, I would be very interested in your comments and
feedback.
Changes since pgEdit 1.0 are summarized here:
http://pgedit.com/node/view/30
Thanks,
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools
Hi
Can I use JavaScript+Html+PHP in a file?
?
Function sort_asc() {
$sql=
.order by customer_id ASC;
}
?
script: javascript
Function sort(){
Sort_asc();
}
/javascript
Html
input type=button value=order onclick= sort()
Html
E-mail/MSN: [EMAIL PROTECTED]
On Monday 16 May 2005 22:53, Al wrote:
What pattern can I use to match ONLY single occurrences of a character in a
string.
e.g., Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@.
Use the following:
/(^@)(@{1})(^@)/
This way you'll be sure the regexp will match only single
yes
-Original Message-
From: [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 7:26 AM
To: php-general@lists.php.net
Subject: [PHP] JavaScript+Html+PH
Hi
Can I use JavaScript+Html+PHP in a file?
?
Function sort_asc() {
$sql=
.order by customer_id ASC;
}
Thank you VERY much for you detailed reply.
Especially that part:
MySQL sees the \' and knows that is an embedded apostrophe and saves
your data as Joe's Grill down in the guts of MySQL files. Note that
MySQL does *NOT* *NOT* *NOT* store \' as part of the data. The \ is
simply a marker that the
I am trying to start word using com and php. I am running php 5.04 and
apache 2.054 on windows. I have used a simple example from the php site
but cant get it working.
|?php
// starting word
$word = new COM(word.application) or die(Unable to instantiate Word);
echo Loaded Word, version
no
javascript won't call a php function. you'll need to open another page
or do it in javascript
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: IMEX Research [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 2:49 AM
To: php-general@lists.php.net
Subject: [PHP] PHP Phone Number Validation
OK, I know this has probably gone aruond the list a few times, but how
do
I validate a phone number that
Dear All,
I'm new to PHP programming and I just try to display small information from
database on web page but its shows blank page. So my code is mention below
and let me know what's wrong in it but when I execute same program on
command prompt then its shows all result correctly with HTML Tags
Hi all!
I am trying to start word using com and php and having
problems. I am running php 5.04 and apache 2.054 on
windows. I have used a simple example from the php
site but cant get it working.
|?php
// starting word
$word = new COM(word.application) or die(Unable to
instantiate Word);
echo
I want to write a string to a variable and use $_POST or $_GET to retrieve
it on another page.
I keep gettting an undefined index errror. Can someone show me how this is
done?
Do I have to use session_start() ?
Have checked the documentation, can't find a really basic example.
R.
--
PHP
Of course, why not, or you can use smarty template engine.
http://smarty.php.net/
Thanks,
Richard Sitompul
-Original Message-
From: [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 12:26
To: php-general@lists.php.net
Subject: [PHP] JavaScript+Html+PH
Hi
Can I use
hima wrote:
Hi all,
I am trying to apply syntax coloring to my source code
as I type it in unix shell. I work on a mac machine.
How do I achieve this.
In the php.ini file I see these following lines
commented out.
; Colors for Syntax Highlighting mode. Anything
that's acceptable in
; font
Hi there,
I am trying to find a way to count the number of times (if any) words are inside
a string. So I played around with ereg, preg_match_all and so on, but could not
put together a working code.
Can anybody help me on that?
This is the current code:
function count_words($str, $words) {
This is going to a very naive question, but how do I make mysql work with
PHP 5? I run PHP on IIS on Windows 2000. Help!
[snip]
This is going to a very naive question, but how do I make mysql work
with
PHP 5? I run PHP on IIS on Windows 2000. Help!
[/snip]
Read the instructions http://us4.php.net/mysql
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 17 May 2005 13:00, Merlin wrote:
Hi there,
I am trying to find a way to count the number of times (if any) words are
inside a string. So I played around with ereg, preg_match_all and so on,
but could not put together a working code.
Can anybody help me on that?
This is the
Blank page usually means there was an error during parsing of PHP. The
error will be in the error.log file under apache. Find that file and check
it, it'll show you what happened.
-Original Message-
From: Nayeem [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 4:42 AM
To:
James E Hicks III [EMAIL PROTECTED]
???:[EMAIL PROTECTED]
Lee Chen wrote:
Thanks
I check the phpinfo, and my safe_mode is off.
This is my phpinfo
http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm
It is just a copy, not on the server.(so it's html file, not a php
file)
Thanks.
Probably, but not serializing at all, and stuffing the data directly into
shared memory would perhaps be faster, at least as I vaguely understood
the results of a thread on serialization on this very forum from a month
or two ago. (Check archives for serialize shared memory and Rasmus
[EMAIL PROTECTED] wrote:
Look in the user contributed notes in the session-destroy page. There
is a function to wipe out the session and has worked nicely for me!
http://www.php.net/session_destroy
Thank you for a message. Anyway, I could not get it working (the code
follows) - I do still have
Jay Blanchard wrote:
[snip]
This is going to a very naive question, but how do I make mysql work
with
PHP 5? I run PHP on IIS on Windows 2000. Help!
[/snip]
Read the instructions http://us4.php.net/mysql
Also See http://www.php.net/manual/en/install.windows.extensions.php
--
PHP General Mailing
Ross wrote:
I want to write a string to a variable and use $_POST or $_GET to retrieve
it on another page.
I keep gettting an undefined index errror. Can someone show me how this is
done?
Do I have to use session_start() ?
This would be ideal.
Have checked the documentation, can't find a
I usually work with cold fusion and took on a little project to get my
feet wet in php and am spinning my wheels. What I thought might be
difficult was easy and what I thought would be a piece of cake has
caused me much grief over the last few days.
I'm making a little shopping basket, writing
On Mon, 2005-05-16 at 22:10, Richard Lynch wrote:
Does ?php phpinfo();? show the same /path/to/php.ini as the one you edit?
Yup
To be 100% certain, use 'stop' to stop Apache and then do:
ps aux | grep httpd
You should see only the grep httpd output, or no output at all.
Did that...
IMEX Research wrote:
OK, I know this has probably gone aruond the list a few times, but how do I validate a phone number that is in the format ddd-ddd- ?? I can't figure out how.
preg_match ( /^\d{3}-\d{3}-\d{4}$/, $phnumber )
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL
Brian V Bonini wrote:
...
Still no go... Other changes in php.ini DO take effect, just not
this I'm at a loss
By any chance are you changing PHP values through Apache's conf file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2005-05-17 at 06:00, Merlin wrote:
Hi there,
I am trying to find a way to count the number of times (if any) words are
inside
a string. So I played around with ereg, preg_match_all and so on, but could
not
put together a working code.
Maybe something like this?
?php
$words =
Hi all -
My background is mostly with Lasso. One cool feature is the ability
to make LassoApps - single file applications that are secure and
can be sold distributed without providing access to the source.
Does PHP offer any such capability?
- Brian
--
PHP General Mailing List
I want to write a string to a variable and use $_POST or $_GET to retrieve
it on another page.
I keep gettting an undefined index errror. Can someone show me how this is
done?
/*
How are you trying to accomplish this? Are you setting the $_GET in
the page code, or using a hidden form? (If
bob pilly wrote:
Hi all!
I am trying to start word using com and php and having
problems. I am running php 5.04 and apache 2.054 on
windows. I have used a simple example from the php
site but cant get it working.
|?php
// starting word
$word = new COM(word.application) or die(Unable to
instantiate
On 05/16/2005 7:48 PM, IMEX Research [EMAIL PROTECTED] wrote:
OK, I know this has probably gone aruond the list a few times, but how do I
validate a phone number that is in the format ddd-ddd- ?? I can't figure
out how.
I try to not restrict the way your users enter phone numbers or
Hi,
First of, sorry for the attachment. It is a screenshot of the output of the
following code. It also shows the contents of the array data in question.
I have the following piece of actual code:
code
// $arrayData is the data in an array form
$arrayData = ArrayIzeDbResult( $db2 ) ;
// we
I have a few interpretive questions on uploading files. There is the
max_input_time, and the max_execution_time. I am uploading files and
they continue to time out after a few minutes. Looking at the php.ini
file from phpinfo() shows max_input_time set to -1 and
max_execution_time set to 60.
On Tue, 2005-05-17 at 09:53, Jason Barnett wrote:
Brian V Bonini wrote:
...
Still no go... Other changes in php.ini DO take effect, just not
this I'm at a loss
By any chance are you changing PHP values through Apache's conf file?
I am, in ANOTHER virtual hosts container
I think there maybe a few ways to do this... One is
[EMAIL PROTECTED]@[EMAIL PROTECTED]
That basically says find me the pattern where one non-at symbol is followed
by an at symbol followed by another non-at symbol
So if you do
?php
$string = @ one more T@@me for @ and i@ the Bl@@dy [EMAIL
On Tuesday 17 May 2005 18:00, Merlin wrote:
I am trying to find a way to count the number of times (if any) words
are inside a string.
explode()
array_count_values()
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design Hosting *
On Tuesday 17 May 2005 21:01, Brian V Bonini wrote:
Still no go... Other changes in php.ini DO take effect, just not
this I'm at a loss
What version of PHP are you using? In older versions (have a look at the
changelog) you had to configure with --enable-trans-sid, in newer
versions
Zend sells a compiler to speed up your PHP code. Since it's compiled,
it also does not contain the source code in readable form. You should
visit the Zend website.
On May 17, 2005, at 10:27 AM, Brian Dunning wrote:
Hi all -
My background is mostly with Lasso. One cool feature is the ability to
Murry's solution here is ideal since it only captures the single occurrence.
Since I want to use it for a preg_replace(), it is perfect.
A couple of folks sent this pattern [EMAIL PROTECTED]@[EMAIL PROTECTED]; but, it doesn't work because I
then have to remove the unwanted caracters on either
On Tue, May 17, 2005 7:27 am, Brian Dunning said:
My background is mostly with Lasso. One cool feature is the ability
to make LassoApps - single file applications that are secure and
can be sold distributed without providing access to the source.
Does PHP offer any such capability?
No.
On Tue, May 17, 2005 1:41 am, Nayeem said:
I'm new to PHP programming and I just try to display small information
from
database on web page but its shows blank page. So my code is mention below
and let me know what's wrong in it but when I execute same program on
command prompt then its shows
On Mon, May 16, 2005 5:49 pm, Miguel Vaz said:
Was coding a directory listing for several dirs on a client's server
that
would list the files and allow users to download them. The question is, is
there a way to force download of all files, regardless of their types?
i.e., if the list
On Tuesday 17 May 2005 21:01, Brian V Bonini wrote:
Still no go... Other changes in php.ini DO take effect, just not
this I'm at a loss
Does phpinfo() show trans_sid as on or off?
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
I seem to remember that you access/use PHP data in the same/similar way to Perl
data and that you
can create complex data structures ie
arrays of arrays, arrays of records etc.
For once Google let me down so can any one point at any doc info.
--
zzapper
vim -c
On 5/17/05, Brent Baisley [EMAIL PROTECTED] wrote:
Zend sells a compiler to speed up your PHP code. Since it's compiled,
it also does not contain the source code in readable form. You should
visit the Zend website.
Did you have a link for this 'compiler' ? All I see in the site menu
is a link
HAH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Zzapper wrote:
Hi,
I seem to remember that you access/use PHP data in the same/similar way to Perl
data and that you
can create complex data structures ie
arrays of arrays, arrays of records etc.
For once Google let me down so can any one point at any doc info.
?php
class A { }
/** Initialize
Hello,
Scenario:
1) User is presented a blank form.
2) User fills in form.
3) User submits form.
4) Record is added to database.
5) Back to 1).
All is fine to here.
6) User clicks refresh.
7) Another record is added, same data except auto-increment field.
How do I prevent these last two steps, or
[snip]
I seem to remember that you access/use PHP data in the same/similar way
to Perl data and that you
can create complex data structures ie
arrays of arrays, arrays of records etc.
For once Google let me down so can any one point at any doc info.
[/snip]
Start with http://www.php.net/array
On Tue, 2005-05-17 at 15:58, Richard Lynch wrote:
On Tuesday 17 May 2005 21:01, Brian V Bonini wrote:
Still no go... Other changes in php.ini DO take effect, just not
this I'm at a loss
Does phpinfo() show trans_sid as on or off?
Shows it as 0 or 1 depending on how I set it at
On Tuesday 17 May 2005 21:18, mayo wrote:
I usually work with cold fusion and took on a little project to get my
feet wet in php and am spinning my wheels. What I thought might be
difficult was easy and what I thought would be a piece of cake has
caused me much grief over the last few days.
Sorry for this post. A coworker was messing around with my computer and
sent it.
Please direct all flames to [EMAIL PROTECTED]
Sorry!!
Jason Motes wrote:
HAH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
6) User clicks refresh.
7) Another record is added, same data except auto-increment field.
How do I prevent these last two steps, or at least prevent a record
from being added when refresh is clicked?
[/snip]
Test for the existence (SELECT statement with the variables therein) of
the
Jason Motes wrote:
HAH
This list could really use an active moderator.
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Meyer wrote:
Hello,
Scenario:
1) User is presented a blank form.
2) User fills in form.
3) User submits form.
4) Record is added to database.
5) Back to 1).
Go really back to 1) - use redirect. After the record is added to the
database, use something like:
header('Location:
Hi,
I have a script which send emails using mail() function. I have 100 email
addresses and i set up the script to send 1 email every 10 seconds. So, it will
take 1000 seconds
to send all 100 emails.
My question is: If I stop the script after,let's say 12 seconds, it will send
only 1 email
Why dont you check that data isnt being duplicated?
$query = SELECT auto_col FROM table where col1 = $var1 col2 = $var
3.;
$call_query = mysql_query($query,...
$query_data = mysql_assoc($call_query);
if(!$query_data) { do form }
else echo information already exists in database;
Well, I guess he was just talking to himself.
Please forward this to your pal at [EMAIL PROTECTED]
Cheers!
On 5/17/2005 11:53:20 PM, Jason Motes ([EMAIL PROTECTED]) wrote:
Sorry for this post. A coworker was messing around with my computer and
sent it.
Please direct all flames to [EMAIL
This is a perfect example of the reason why you should lock your screen
when you are away from your desk!!
Jason Motes wrote, On 18/05/05 07:53 AM:
Sorry for this post. A coworker was messing around with my computer
and sent it.
Please direct all flames to [EMAIL PROTECTED]
Sorry!!
Jason
Hello,
on 05/17/2005 11:27 AM Brian Dunning said the following:
My background is mostly with Lasso. One cool feature is the ability to
make LassoApps - single file applications that are secure and can be
sold distributed without providing access to the source. Does PHP
offer any such
* Zzapper [EMAIL PROTECTED]:
I seem to remember that you access/use PHP data in the same/similar
way to Perl data and that you can create complex data structures ie
arrays of arrays, arrays of records etc.
For once Google let me down so can any one point at any doc info.
Did you try building
On Tue, 2005-05-17 at 15:34 -0400, Brent Baisley wrote:
Zend sells a compiler to speed up your PHP code. Since it's compiled,
it also does not contain the source code in readable form. You should
visit the Zend website.
Any free ones?
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
Tonight I installed a new php5 instance.
php5.0.4/apache-1.3.33/mysql-4.1.10. I was getting \Wed May 18 01:59:42
2005] [notice] child pid 1621 exit signal Segmentation fault (11) error
whenever I accessed a PHP enable page. I recompiled a few times and
removed unnecessary modules. Still
Or why sometimes its ok to punch a friend in the mouth...
On 5/18/2005 1:42:30 AM, Mary-Anne Nayler ([EMAIL PROTECTED]) wrote:
This is a perfect example of the reason why you should lock your screen
when you are away from your desk!!
Jason Motes wrote, On 18/05/05 07:53 AM:
Sorry for
Jason,
Thx. Even though I have what I need for the client (I finally got things
to work as desired), I'll rework it and update the client version.
I knew I was doing things poorly and it degenerated into simply get the
damn thing to work.
Thx, Mayo
-Original Message-
From: Jason
Yikes,
Who would have thought something so easy would be such a pain in the
butt.
I solved it with embedded if-else clauses.
Thx all
-Original Message-
From: mayo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 9:19 AM
To: 'php'
Subject: [PHP] array, trouble updating
I
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Robert Meyer wrote:
Hello,
Scenario:
1) User is presented a blank form.
2) User fills in form.
3) User submits form.
4) Record is added to database.
5) Back to 1).
Go really back to 1) - use redirect. After the
As a last resort, I may have to do that, but that is by no means the
preferred method. I want to keep database access to a minimum.
I thought by this time this problem would have had a standard solution. It
would be nice if PHP had a function like refreshed() so one could do ... if
I'm trying to use libxml_set_streams_context() to load a remote xml
file via HTTP conditional GET with DOMDocument::load() by stuffing an
'If-Modified-Since: --- HTTP header into the stream, but no matter
how I try it I always get an HTTP 200 response when I know the last-
modified date is
Danny Brow wrote:
Zend sells a compiler to speed up your PHP code. Since it's compiled,
it also does not contain the source code in readable form. You should
visit the Zend website.
Any free ones?
http://pecl.php.net/package/APC
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
72 matches
Mail list logo