On Wed, Jan 25, 2006 at 05:22:35PM -0800, jonathan wrote:
> hmm is this a mysql 5 feature. could be interesting but haven't
> heard much about it.
No, the link i gave just does a redirect to the current stable
release documentation, mysql has docs for the major releases and
what each one sup
On Thu, Jan 26, 2006 at 02:11:02AM +, James Benson wrote:
> jonathan wrote:
> >hmm is this a mysql 5 feature. could be interesting but haven't
> >heard much about it.
> >
>
>
>
> You cannot see the mysql 5 plastered all over the page?
The link i gave is designed to give information abo
On Wed, Jan 25, 2006 at 09:51:15PM -0500, PHP Superman wrote:
> couldn't you serialize the data and store it?
you could, but the purpose of my reply to the OT is that there are
other solutions to caching instead of inventing your own
Caching things isn't the simplest of things, consider how much
That is some nasty code...
Anything that has repitition like that needs a substantial rewrite, but
I'm guessing that you know that, hence the e-mail.
I just knocked up the following function, powered by the magic of
recursion. It should be close to what you were trying to do.
function count_fil
On Jan 25, 2006, at 10:01 AM, Ahmed Saad wrote:
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
function link_the_links($s) {
return preg_replace('@(http://[^\s]+)@sm', '
$1'
It may be better to go ahead and convert it to an array, or something that
can be handled more quickly when the cache is pulled than interpreting the
result again and again and again... Really dont know, just a thought.
On 1/25/06, jonathan <[EMAIL PROTECTED]> wrote:
>
> is there a way to write a
Bom Demais wrote:
> I wanted to run "php -w" on my include files on the live server to reduce
> overhead. But php -w causes parse errors in the include files. Here's an
> example of what happens:
>
> tanner /php_files
> % php -l misc.inc
> No syntax errors detected in misc.inc
> tanner /php_file
here is what I tried but it doesn't work! any advice suggestions or
something?
$count = 0;
$dir = "/amrs";
$files1 = scandir($dir);
if ($files1 !== '.' && $files1 !== '..') {
foreach ($files1 as $files2){
$dir2 = "/amrs/$files2";
$files3 = scandir($dir2);
if ($files3 !== '.' && $files3 !== '..')
couldn't you serialize the data and store it?
On 1/25/06, David Hall <[EMAIL PROTECTED]> wrote:
>
> James Benson wrote:
> > jonathan wrote:
> >> hmm is this a mysql 5 feature. could be interesting but haven't
> >> heard much about it.
> >>
> >
> >
> >
> > You cannot see the mysql 5 plastered a
I wanted to run "php -w" on my include files on the live server to reduce
overhead. But php -w causes parse errors in the include files. Here's an
example of what happens:
tanner /php_files
% php -l misc.inc
No syntax errors detected in misc.inc
tanner /php_files
% php -w misc.inc > misc.strippe
James Benson wrote:
jonathan wrote:
hmm is this a mysql 5 feature. could be interesting but haven't
heard much about it.
You cannot see the mysql 5 plastered all over the page?
I can see at least 5 different sections that say MySQL 5
you obviously don't use the mysql website enoug
jonathan wrote:
hmm is this a mysql 5 feature. could be interesting but haven't
heard much about it.
You cannot see the mysql 5 plastered all over the page?
I can see at least 5 different sections that say MySQL 5
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
if(isset($_POST['NAME_OF_FORM_VALUE'])) {
// radio button was selected
}
Fernando Anchorena wrote:
I'm stuck trying to get work this :
This is an example
page1.php
===
$sql_pro ="SELECT Sid FROM table";
$res_pro = @mysql_query( $sql_pro);
while ($c
hmm is this a mysql 5 feature. could be interesting but haven't
heard much about it.
-j
On Jan 25, 2006, at 5:24 PM, Curt Zirzow wrote:
On Wed, Jan 25, 2006 at 03:39:38PM -0800, jonathan wrote:
is there a way to write a mysqli result set to disk via
file_put_contents or fwrite. it looks
On Wed, Jan 25, 2006 at 03:39:38PM -0800, jonathan wrote:
> is there a way to write a mysqli result set to disk via
> file_put_contents or fwrite. it looks like we'd have to convert it to
> an array and then handle the array upon bringing it back in. I'm
> interested in writing a simple cachi
Sorry I totally didn't read the question fully
-Original Message-
From: Mark Steudel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 4:28 PM
To: php-general@lists.php.net
Subject: RE: [PHP] Use VAR string value AS VAR Name
Either try:
$sid_pro = "p".$sid_pro;
or try:
> This is an example
> page1.php
> ===
>
> $sql_pro ="SELECT Sid FROM table";
> $res_pro = @mysql_query( $sql_pro);
> while ($campo_pro = @mysql_fetch_array($res_pro)) {
> $sid_pro = $campo_pro["Sid"]; // *sid_pro = 4*
> $sid_pro = 'p'.$sid_pro;
Either try:
$sid_pro = "p".$sid_pro;
or try:
-Original Message-
From: Fernando Anchorena [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 4:12 PM
To: php-general@lists.php.net
Subject: [PHP] Use VAR string value AS VAR Name
I'm stuck trying to get work this :
This is an
I'm stuck trying to get work this :
This is an example
page1.php
===
$sql_pro ="SELECT Sid FROM table";
$res_pro = @mysql_query( $sql_pro);
while ($campo_pro = @mysql_fetch_array($res_pro)) {
$sid_pro = $campo_pro["Sid"]; // *sid_pro = 4*
$sid_pr
I'm stuck trying to get work this :
This is an example
page1.php
===
$sql_pro ="SELECT Sid FROM table";
$res_pro = @mysql_query( $sql_pro);
while ($campo_pro = @mysql_fetch_array($res_pro)) {
$sid_pro = $campo_pro["Sid"]; // *sid_pro = 4*
$sid
Your archive is attached.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have 2 different PHP installs, each are slightly different versions, and
each have different open_basedir restictions.
I have a PHP script that fails on ONE of the installs but NOT the other.
The line that fails is $foo = file_exists("/proc/loadavg");
What I don't understand is why one script
is there a way to write a mysqli result set to disk via
file_put_contents or fwrite. it looks like we'd have to convert it to
an array and then handle the array upon bringing it back in. I'm
interested in writing a simple caching mechanism where sql results
would be cached.
thanks,
jonat
I have used these functions but how would I count them! here is my
attempt that doesn't work!:
$count = 0;
$dir = "/amrs";
$files1 = scandir($dir);
if ($files1 !== '.' && $files1 !== '..') {
foreach ($files1 as $files2){
$dir2 = "/amrs/$files2";
$files3 = scandir($dir2);
if ($files3 !== '.' && $f
Wednesday, January 25, 2006, 2:52:21 PM, S Yang wrote:
> Which method might I use to split the signature I have built in PHP into
> (r,s)? How can I know what the signature looks like?
Run the function http://us2.php.net/openssl_sign and pass it a $signature.
According to the manual, if successfu
On 1/25/06, S Yang <[EMAIL PROTECTED]> wrote:
> Dear Sir/Madam:
>
> I am trying to split a DSA signature that is generated by openssl_sign()
> function in PHP, which should be made up of 2 numbers: r and s, but I don't
> know how to build the structure of the signature generated by PHP and then
> t
"Binay" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Is it possible that we create a virtual email account(no physical
> existence) e.g [EMAIL PROTECTED]
> which will be associated with a real email account e.g. [EMAIL PROTECTED] so
> that if any body sends
> the email to virtual email account [EMAIL
Daevid Vincent wrote:
Thank you, but again, not the problem.
The same code is on both servers. I'm not transfering from one server to
another. Only from page to page ON THE SAME SERVER.
This has to be a configuration problem IMHO.
-Original Message-
From: James Benson [mailto:[EMAIL
You can start with looking at some code examples that do similar things :
Directory browser
http://www.weberdev.com/get_example-1539.html
How to get a dir listing of the current dir of php script in an array
http://www.weberdev.com/get_example-1855.html
filesystem Show Files Script
http://www.
Max Schwanekamp wrote:
Jay Paulson wrote:
> How would I go about getting the timestamp of a day of the week from
7 weeks
> ago?
$lastsunday = strtotime("last Sunday");
$sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days
Oops, that would be the sunday 7 weeks prior to _last_ Sun
Jay Paulson wrote:
> How would I go about getting the timestamp of a day of the week from
7 weeks
> ago?
> $lastSunday = strtotime("last Sunday");
> $Sunday7Weeks = $lastSunday - ???;
$lastsunday = strtotime("last Sunday");
$sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days
Test:
start here: http://www.php.net/readdir
check out as well: 'string functions' for finding 'amrs'
and loops to make recursive search...
t.
Nicholas Couloute wrote:
I want a script where it will count all the amrs in a folder and it's
sub folders like this setup:
amrs >
50 cent > amrs
ni
How would I go about getting the timestamp of a day of the week from 7 weeks
ago?
In my case I'm getting the timestamp of last Sunday (no matter what day of
the week it is currently) and I want to get the timestamp of the Sunday that
happened 7 weeks ago.
$lastSunday = strtotime("last Sunday");
Dear Sir/Madam:
I am trying to split a DSA signature that is generated by openssl_sign()
function in PHP, which should be made up of 2 numbers: r and s, but I don't
know how to build the structure of the signature generated by PHP and then
to split it into two numbers (r,s). Which method might
I want a script where it will count all the amrs in a folder and it's
sub folders like this setup:
amrs >
50 cent > amrs
nitty > amrs
bob > amrs
How would I do this?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com
--
PHP General Mailing List (http://www.php.net/)
Interestingly, I installed mod_security the other day and noticed
error 500 show up. As it turns out, mod_security generates those when
they block nasties.
Gerry
On 1/25/06, Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi there!
>
> I am sitting with something of a mystery and was wondering if there is
For some reason my brain isn't working correctly today.
How would I go about getting the timestamp of a day of the week from 7 weeks
ago?
In my case I'm getting the timestamp of last Sunday (no matter what day of
the week it is currently) and I want to get the timestamp of the Sunday that
happene
version: 4.3.2
the example from:
http://de2.php.net/manual/en/function.parse-str.php
$str = "first=value&arr[]=foo+bar&arr[]=baz";
parse_str($str);
echo $first; // value
echo $arr[0]; // foo bar
echo $arr[1]; // baz
parse_str($str, $output);
echo $output['first']; // value
echo $output['arr'][
They are using oscommerce specifically. An open source PHP shopping cart.
ben:
Not that you said or implied otherwise.
PHP or not, there's no reason I know of for not complying with w3c --
especially if you're high profile like Google. It's clear that they
are not concerned with disability
Does anyone know if there is a way to change permission on a directory
on a Solaris OS through php? And if there is a way authenticate the
owner of
the directory through an rlogin or su.
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
now already I can see the light
thanks for your help,
Denyl.
- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, January 25, 2006 8:30 AM
Subject: Re: [PHP] function preg_match()
> Denyl Meneses Guillén wrote:
> > sorry , what is PCRE ?
> > I looking
I would suggest to keep a simple variable $HOSTNAME in your config file.
Thanks
Richard
On 1/25/06, William Stokes <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I Have a web site on one server and a test site on another. How can I
> build
> the hyperlinks so that they work on both servers without mod
Are you looking for something like this?
SMTP using PHP?
http://www.weberdev.com/get_example-4295.html
Thanks
Richard
On 1/25/06, Binay <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>
> Is it possible that we create a virtual email account(no physical
> existence) e.g [EMAIL PROTECTED] which will be
Hey Denyl,
Simple workaround ...
you can use ereg_replace insted of preg_replace
http://www.weberdev.com/get_example.php3?Function=ereg-replace
You can sort out your PCRE installation/configuration later.
Thanks,
Richard
On 1/26/06, Denyl Meneses Guillén <[EMAIL PROTECTED]> wrote:
>
> When I
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> > On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> >
> > > function link_the_links($s) {
> > > return preg_replace('@(http://[^\s]+)@sm', '$1',
> > > $s);
> > > }
try "looking
I'm not sure why it matters, but the real Google store appears to use ASP:
http://www.googlestore.com/home.asp
My mistake. Apparently there are different sites for different countries.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List (
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
>
> > function link_the_links($s) {
> > return preg_replace('@(http://[^\s]+)@sm', '$1',
> > $s);
> > }
> if ($s[strlen($s)-1] == '.'){
> $s = substr($s, 0, -1);
> }
oops! sorry
On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> function link_the_links($s) {
> return preg_replace('@(http://[^\s]+)@sm', '$1', $s);
> }
> I've got to somehow ignore the trailing period if it is present.
if ($s[strlen($s)-1] == '.'){
$s = substr($s, 0, -1);
}
-ahmed
Dan Lowe wrote:
It's implied right on the front page it's not directly run by Google.
I'm not sure why it matters, but the real Google store appears to use ASP:
http://www.googlestore.com/home.asp
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General M
Denyl Meneses Guillén wrote:
sorry , what is PCRE ?
I looking my configuration with phpinfo() and not exist PCRE or similar .
http://us2.php.net/pcre
I'm using PHPmailer and and inside it calls to function preg_match , but i
want to run a simple example
...:: denyl.php
and I get this :
Binay,
I guess you could set up PHP to listen on port 25 and rewrite the
headers of mail messages containing aliases, but that seems like a lot
of work for what could easily be handled by a (much quicker) MTA.
David
--
David Grant
http://www.grant.org.uk/
--
PHP General Mailing List (http://ww
They are using oscommerce specifically. An open source PHP shopping cart.
I have also come accross php errrors when accessing googles suggest feature,
some strange reaction with greesemonkey.
On 1/25/06, tedd <[EMAIL PROTECTED]> wrote:
>
> >Looks like google are using PHP and oscommerce for their
Denyl,
You need to call the person responsible for maintaining your box.
Denyl Meneses Guillén wrote:
> sorry , what is PCRE ?
Regular Expression Functions (Perl-Compatible)
> I looking my configuration with phpinfo() and not exist PCRE or similar .
That's because someone disabled it in the ./
>
> Hey, I want to change the oil in my car, is this possible in PHP?
if($accumulated_miles<3000){
keep_driving;
}else{
purchase_supplies('oil', 'filter');
drain_crankcase;
replace_filter;
oil_fill(15);
$accumulated_miles=0;
}
--
PHP General Mailing List (http://www.php.net/)
To un
Binay(Local) wrote:
Hi
I think i've been misunderstood here. I meant whether this is achievable
using PHP or not? I know and can be done very easily on server with
either control panel or manual intervene but its integration with PHP is
my main concern. I hope you understand what i mean.
y
sorry , what is PCRE ?
I looking my configuration with phpinfo() and not exist PCRE or similar .
I'm using PHPmailer and and inside it calls to function preg_match , but i
want to run a simple example
...:: denyl.php
and I get this :
Fatal error: Call to undefined function preg_match() in
/u
John Nichel wrote:
Binay wrote:
Hi All,
Is it possible that we create a virtual email account(no physical
existence) e.g [EMAIL PROTECTED] which will be associated with a real
email account e.g. [EMAIL PROTECTED] so that if any body sends the email
to virtual email account [EMAIL PROTECTED
When I try to use preg_match(), I get this...
Fatal error: Call to undefined function preg_match() in
/usr/home/www/library/defines.php on line 25
I have php5.0.4 ,web server Apache (Linux) .
as I can solve it?
Thanks,
Denyl.
--
This message has been scanned for viruses and
dangerous c
Binay wrote:
Hi All,
Is it possible that we create a virtual email account(no physical existence)
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g.
[EMAIL PROTECTED] so that if any body sends the email to virtual email account
[EMAIL PROTECTED] will be automatical
Binay wrote:
> Is it possible that we create a virtual email account(no physical
> existence) e.g [EMAIL PROTECTED] which will be associated with a real email
> account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual
> email account [EMAIL PROTECTED] will be automatically for
On Wednesday 25 January 2006 15:04, Binay(Local) wrote:
> Hi
>
> I think i've been misunderstood here. I meant whether this is achievable
> using PHP or not? I know and can be done very easily on server with either
> control panel or manual intervene but its integration with PHP is my main
> conce
Hi
I think i've been misunderstood here. I meant whether this is achievable
using PHP or not? I know and can be done very easily on server with either
control panel or manual intervene but its integration with PHP is my main
concern. I hope you understand what i mean.
Thanks,
Binay
- Origi
On 25 Jan 2006 at 15:22, Barry wrote:
> Geoff wrote:
> > On 25 Jan 2006 at 15:19, William Stokes wrote:
> >
> >
> >>Hello,
> >>
> >>I Have a web site on one server and a test site on another. How can I build
> >>the hyperlinks so that they work on both servers without modification.
> >>
> >>F
Geoff wrote:
On 25 Jan 2006 at 15:19, William Stokes wrote:
Hello,
I Have a web site on one server and a test site on another. How can I build
the hyperlinks so that they work on both servers without modification.
For example build this link dynamically:
"http://www.domain.com/www/test.php
On 25 Jan 2006 at 15:19, William Stokes wrote:
> Hello,
>
> I Have a web site on one server and a test site on another. How can I build
> the hyperlinks so that they work on both servers without modification.
>
> For example build this link dynamically:
> "http://www.domain.com/www/test.php
>
Looks like google are using PHP and oscommerce for their web store:
http://www.google-store.com
Nice to see :)
James
It would be nice to see them being w3c compliant, but they aren't.
tedd
--
http://sperling.co
Hi Jochem,
PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause
some server id10t error (if indeed the issue is on my side).
Thomas
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: 25 January 2006 03:00 PM
To: Thomas
Cc: php-general@lists.php.ne
> Hello,
>
> I Have a web site on one server and a test site on another.
> How can I build
> the hyperlinks so that they work on both servers without modification.
>
> For example build this link dynamically:
> "http://www.domain.com/www/test.php
>
> In test server the same should be:
> "http:
Binay wrote:
Hi All,
Is it possible that we create a virtual email account(no physical existence)
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g.
[EMAIL PROTECTED] so that if any body sends the email to virtual email account
[EMAIL PROTECTED] will be automatica
Hello,
I Have a web site on one server and a test site on another. How can I build
the hyperlinks so that they work on both servers without modification.
For example build this link dynamically:
"http://www.domain.com/www/test.php
In test server the same should be:
"http://internalserver/www/te
Binay wrote:
Hi All,
Is it possible that we create a virtual email account(no physical existence)
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g.
[EMAIL PROTECTED] so that if any body sends the email to virtual email account
[EMAIL PROTECTED] will be automatical
Daevid Vincent wrote:
No no no. I'm NOT passing data between servers. It's just two pages on the
same server. One that sets up the session/class and the other page just
re-loads the session.
When I talk about two different servers, I copy the entire source/db schema
from one server to the othe
Thomas wrote:
Hi there!
I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:
I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as
php5.WHAT?
check MAX_FILE_SIZE attribute of file tag.
Also does your webserver impose any file upload limit?
Thanks
Richard
On 1/25/06, Daniel Lahey <[EMAIL PROTECTED]> wrote:
>
> A client has started experiencing problems with uploading files
> larger than the default 2M set in php.ini. The problem only
thanks all for your help.. i have upgraded to php5.1.2 and the problem has
resolved itself...as it stands for me php5.0.5 cannot handle multiple
include statments..
regards alex
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> David Hall wrote:
>> Jochem Maas wrote:
>>
Thomas wrote:
> I had a look at the Apache log file I got from the SP ... no clue. All I
> know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).
Did you look at the access_log or error_log?
The error_log should give you an indication of why it is happening.
Do you try to access system files or
But how can i get the next key in a foreach loop?
Can't see how i can use a continue statement in that circumstance?
Am Mittwoch, den 25.01.2006, 11:28 +0200 schrieb Geoff:
> Possibly the continue statement would help you?
>
> Geoff.
>
>
> On 25 Jan 2006 at 10:12, Sascha Braun - immosky AG wro
Hi there!
I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:
I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as
Cache_Lite.
The site has b
Derrick,
Derrick Shoemake wrote:
> It appears that the error I was getting wasn't really related to my
> problem. I'm getting a error in httpd-error.log
>
> httpd in free(): error: junk pointer, too high to make sense
> [Tue Jan 24 17:11:32 2006] [notice] child pid 22665 exit signal Abort
> trap
Dan Lowe wrote:
On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote:
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't
think this is a google owned site.
It's implied right on the front page it's not directly run by Google.
"Produced for Google Inc. by Merchandise Mania Lim
Hi,
I started to write an E-Mail Parser so E-Mails from different Internet
Plattforms can be sorted automatically into an customer database.
Everything is working pretty fine, but only if all expected fields
appear in the Mail from the sending plattform.
But sometimes the Mails send out by a pla
On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote:
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't
think this is a google owned site.
It's implied right on the front page it's not directly run by Google.
"Produced for Google Inc. by Merchandise Mania Limited"
My guess is t
82 matches
Mail list logo