Dear all.
I have a script that is called by an AJAX popup. Now I use an image
file to get the path of an image for an tag
eg:
the $getImageURL is composed as follows:
$getImageURL = "getImage.php?imageid=".
$imageID."&height=275&width=375&quality=65";
However when I look at t
ok, I read the whole thread and it seems it went absolutely nowhere.
Sorry...
--
itoctopus - http://www.itoctopus.com
""itoctopus"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hope this helps:
> http://forum.mamboserver.com/showthread.php?t=55&page=6
>
> --
> itoctopus - http
Hope this helps:
http://forum.mamboserver.com/showthread.php?t=55&page=6
--
itoctopus - http://www.itoctopus.com
"Sn!per" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Am currently running Plesk 8.0.1 . A php script with phpinfo() will give:
> ...
> ...
> '--with-kerberos' '--wit
I think what you need is simply something like this:
function get_day($int_day){
$arr_day_of_week = array('1'=>'Sunday', '2'=>'Monday', '3'=>'Tuesday',
'4'=>'Wednesday', '5'=>'Thurdsay', '6'=>'Friday', '7'=>'Saturday');
}
echo(get_day(1)); //will print Sunday
--
itoctopus - http://www.ito
Hello again;
(Blush);
I was looking at the wrong line. Somehow the line numbers changed on me
and the error was actually at a suspect line that I had changed. But the
file that was giving the error was a file that was not updated.
Now it works,
I was trying to do $list_length -1 in the middle of
Hello again;
In my frustration and laziness (tired of probing around to solve syntax
errors that are not obvious)
I have encountered the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
groups_proc.php on line 585
The two lines immediately proceeding the
Em Terça 22 Maio 2007 22:39, Robert Cummings escreveu:
> On Tue, 2007-05-22 at 21:13 -0400, [EMAIL PROTECTED] wrote:
> > Mom! Dad! Stop fighting!
>
> In case anyone is wondering... I'm the Dad!! >:)
>
Just read my sig... =)
Time to sleep... Good bye! =)
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL
On Tue, 2007-05-22 at 21:13 -0400, [EMAIL PROTECTED] wrote:
> Mom! Dad! Stop fighting!
In case anyone is wondering... I'm the Dad!! >:)
Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
:---
Mom! Dad! Stop fighting!
= = = Original message = = =
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> Yours is the least maintainable.
Hehe.. with 4 times as many lines of code and 160% more bytes of code overall?
> cat locale.php|grep -v ^$|wc -l
16
> cat simple.php|grep -v
On Tue, 2007-05-22 at 19:17 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > They didn't teach PHP where I attended kindergarten. Is that a Canadian
> > > thing?
> >
> > Exactly, and I'm not about to learn PHP from you now *lol*.
>
> Next time you should s
Hi,
Wednesday, May 23, 2007, 2:46:38 AM, you wrote:
BD> How can I convert the numerical day of week to the string version?
BD> Example, if the day of the week is 1 I would like to print out 'Sunday'.
BD>
BD> Thanks,
BD> Dave
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> They didn't teach PHP where I attended kindergarten. Is that a Canadian
thing?
Exactly, and I'm not about to learn PHP from you now *lol*.
Next time you should say so up front, I would have spotted you 10% on
the benchmarks.
--
Greg
On Tue, 2007-05-22 at 17:54 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > Yours is the least maintainable.
>
> Hehe.. with 4 times as many lines of code and 160% more bytes of code
> overall?
>
> > cat locale.php|grep -v ^$|wc -l
> 16
>
> > cat si
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
Yours is the least maintainable.
Hehe.. with 4 times as many lines of code and 160% more bytes of code overall?
cat locale.php|grep -v ^$|wc -l
16
cat simple.php|grep -v ^$|wc -l
4
ls -lavh
-rw-r--r--1 destiney de
On Tue, 2007-05-22 at 17:13 -0500, Greg Donald wrote:
>
> My solution stands as the best one, for memory usage and speed.
> Please benchmark it so you will learn from this experience.
Yours is the least maintainable. I have nothing to learn from you that I
didn't learn in kindergarten.
Cheers,
R
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
No, your solution is bloated. Mine may run a tad slower,
Two function calls wrapped in a function will be slower. Tad or a
lot, slower is still slower.
but it consumes
less memory since it uses the weekday names already defined in the
lo
Tijnema wrote:
On 5/22/07, Myron Turner <[EMAIL PROTECTED]> wrote:
> On Sat, May 19, 2007 10:22 pm, Shannon Whitty wrote:
>
>> I'm looking for a piece of software or coding that will let me post a
>> form
>> to another URL, accept the response, search it for a specific
>> "success"
>> string an
What I ended up doing was to make a dir with ftp_mkdir(). Then test it with file_exists() to see if it is where I
expected. If not, I post a die() error msg and say "tech support required". Tech support can then figure out where the
ftp root dir is. and set a config file accordingly.
Thanks..
Ok, somehow I did this again (posted to pear-general instead of
php-general). pear-general and php-general look alike...
Thank everyone for their suggestion. I would like to see a __static()
version of __call(), but this is the wrong place to bring that feature
request up.
To answer Greg Beaver'
You amuse me, but it's not worth getting into a discussion over.
Enjoy the rest of your day!
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
On Tue, 2007-05-22 at 15:00 -0400, Daniel Brown wrote:
>
> :: yawns ::
>
> After all the bickering, I wouldn't be surprised if the OP never
> asks a question here again.
Who's bickering? When did a simple discussion become bickering? Maybe
you should take a nap... you're obviously tired.
:: yawns ::
After all the bickering, I wouldn't be surprised if the OP never asks a
question here again.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
On Tue, 2007-05-22 at 13:47 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > Nothing said it was important, but why implement a half-assed solution
> > when you can implement a superior solution in as much time?
>
> Your solution contains overhead you don't ev
On Tue, 2007-05-22 at 14:32 -0400, Daniel Brown wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2007-05-22 at 12:58 -0500, Greg Donald wrote:
> > > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > > I saw a bunch of bad examples given to you that complete
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
Nothing said it was important, but why implement a half-assed solution
when you can implement a superior solution in as much time?
Your solution contains overhead you don't even know you need. Coding
for locales is an edge case since most
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-05-22 at 12:58 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > I saw a bunch of bad examples given to you that completely ignore any
> > available locale information... so here's a better v
Don Don wrote:
> Hi all, am trying to run a regular expression to a list of user entered data
> on some forms.
>
> I've creating what i think is a matching pattern for each category as shown
> below:
>
> function validateEntry($regularExpression, $fieldValue)
> {
> if(preg_match($regularExp
On Tue, 2007-05-22 at 12:58 -0500, Greg Donald wrote:
> On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > I saw a bunch of bad examples given to you that completely ignore any
> > available locale information... so here's a better version:
>
> I seem to have missed the part of the questio
Al wrote:
Can I assume that all ftp_connect()s will make the current dir the
DOC_ROOT?
First of all - what do you mean with DOC_ROOT? If it is the document
root (of what?!).
If not, how can I insure the ftp root dir is the same as DOC_ROOT?
Define DOC_ROOT :)
if you ftp_chdir() and it's
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
I saw a bunch of bad examples given to you that completely ignore any
available locale information... so here's a better version:
I seem to have missed the part of the question where it said
considering locale was important.
--
Greg Donal
On Tue, 2007-05-22 at 12:46 -0400, Bosky, Dave wrote:
> How can I convert the numerical day of week to the string version?
>
> Example, if the day of the week is 1 I would like to print out 'Sunday'.
I saw a bunch of bad examples given to you that completely ignore any
available locale informatio
On 5/22/07, Myron Turner <[EMAIL PROTECTED]> wrote:
> On Sat, May 19, 2007 10:22 pm, Shannon Whitty wrote:
>
>> I'm looking for a piece of software or coding that will let me post a
>> form
>> to another URL, accept the response, search it for a specific
>> "success"
>> string and then let me co
On 5/22/07, Greg Donald <[EMAIL PROTECTED]> wrote:
On 5/22/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
> function num2day($num) {
> if($num == "1") {
> $day = "Sunday";
> } elseif($num == "2") {
> $day = "Monday";
> } elseif($num == "3") {
> $day = "Tuesday";
On 5/22/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
PHP does automatic type conversions, even if $num is passed in as a
string all those quotes around the integers are not necessary. There
is no variable interpolation required in the day names so all those
double quotes should be single quote
In that case, one simple way (though not the most economical way, and
really hacky, reinventing the wheel in the process) would be to create a
function like so:
On 5/22/07, Bosky, Dave <[EMAIL PROTECTED]> wrote:
I'm not really sure. I've got a numerical interpretation of the day of
the we
On 5/22/07, Bosky, Dave <[EMAIL PROTECTED]> wrote:
How can I convert the numerical day of week to the string version?
Example, if the day of the week is 1 I would like to print out 'Sunday'.
$days = array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
'Friday', 'Saturday' );
$day =
Hi Dave,
Tuesday, May 22, 2007, 5:46:38 PM, you wrote:
> How can I convert the numerical day of week to the string version?
> Example, if the day of the week is 1 I would like to print out 'Sunday'.
$days = array(1 => 'Sunday', 2 => 'Monday', 3 => 'Tuesday', etc ...);
then just
$today = $days[
Do you mean by using the date() function?
On 5/22/07, Bosky, Dave <[EMAIL PROTECTED]> wrote:
How can I convert the numerical day of week to the string version?
Example, if the day of the week is 1 I would like to print out 'Sunday'.
Thanks,
Dave
How can I convert the numerical day of week to the string version?
Example, if the day of the week is 1 I would like to print out 'Sunday'.
Thanks,
Dave
**
HTC Disclaimer: The information contained in this message may b
On Sat, May 19, 2007 10:22 pm, Shannon Whitty wrote:
I'm looking for a piece of software or coding that will let me post a
form
to another URL, accept the response, search it for a specific
"success"
string and then let me continue processing the rest of my program.
http://php.net/cur
On Tue, 2007-05-22 at 11:19 -0400, Al wrote:
> I know that; but, I writing a script, that can be used on different servers,
> which creates a directory and I want to
> make certain it is created on the DOC ROOT. I don't want the user to have to
> test the ftp connection with a ftp utility
> pr
Hi Al,
Tuesday, May 22, 2007, 4:19:22 PM, you wrote:
> I know that; but, I writing a script, that can be used on different
> servers, which creates a directory and I want to
> make certain it is created on the DOC ROOT. I don't want the user
> to have to test the ftp connection with a ftp utili
I know that; but, I writing a script, that can be used on different servers, which creates a directory and I want to
make certain it is created on the DOC ROOT. I don't want the user to have to test the ftp connection with a ftp utility
program first.
Jim Moseby wrote:
r?
Can I assume tha
r?
>
>
> Can I assume that all ftp_connect()s will make the current
> dir the DOC_ROOT?
>
> If not, how can I insure the ftp root dir is the same as DOC_ROOT?
>
> You can't use the absolute path with ftp.
>
> chdir() doesn't change the ftp current dir.
>
> if you ftp_chdir() and it's already
Can I assume that all ftp_connect()s will make the current dir the DOC_ROOT?
If not, how can I insure the ftp root dir is the same as DOC_ROOT?
You can't use the absolute path with ftp.
chdir() doesn't change the ftp current dir.
if you ftp_chdir() and it's already on the root, it posts an err
Don Don wrote:
Hi all, am trying to run a regular expression to a list of user entered data on
some forms.
I've creating what i think is a matching pattern for each category as shown
below:
function validateEntry($regularExpression, $fieldValue)
{
if(preg_match($regularExpression, $fieldV
Le Tue, 22 May 2007 14:18:31 +0200,
Tijnema <[EMAIL PROTECTED]> a écrit :
> On 5/22/07, David BERCOT <[EMAIL PROTECTED]> wrote:
> > Hi Mike,
> >
> > And thank you for your help...
> >
> > Le Mon, 21 May 2007 13:21:35 -0400,
> > "Mike Smith" <[EMAIL PROTECTED]> a écrit :
> > > On 5/21/07, David BER
My pleasure, Arno!
On 5/22/07, Arno Kuhl <[EMAIL PROTECTED]> wrote:
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: 18 May 2007 10:27
To: Al
Cc: php-general@lists.php.net
Subject: Re: [PHP] Security Question, re directory permissions [long
answer]
On 5/18/07,
On 5/22/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
2007. 05. 22, kedd keltezéssel 03.35-kor Don Don ezt írta:
> Hi all, am trying to run a regular expression to a list of user entered data
on some forms.
>
> I've creating what i think is a matching pattern for each category as shown
below:
>
On 5/21/07, Tim Donnelly <[EMAIL PROTECTED]> wrote:
I should preface this by saying, I am not a PHP person. I have been able to
install php in the past and get things to work, but this time I am having fits.
I am running php 5.2.1, apache 1.3.34, OpenSuSE 10.0 on a 64bit AMD platform.
I have
On 5/22/07, Ligaya A. Turmelle <[EMAIL PROTECTED]> wrote:
There are a number of ways to help depending upon what you want to do.
Any help is always appreciated. An incomplete listing -
http://www.khankennels.com/blog/index.php/archives/2006/08/10/25-ways-to
-help-out-php/
Lig
I have no proble
On Tue, 2007-05-22 at 11:00 +0200, clive wrote:
> itoctopus wrote:
> > I have tried both, and I tell you that I really felt that the filesystem is
> > a more convenient way of doing it.
> >
> I have to agree, filesystems were after all designed to store files. I
> reckon reading a file from disk
On 5/22/07, clive <[EMAIL PROTECTED]> wrote:
itoctopus wrote:
> I have tried both, and I tell you that I really felt that the filesystem is
> a more convenient way of doing it.
>
I have to agree, filesystems were after all designed to store files. I
reckon reading a file from disk is much quicker
On May 22, 2007, at 6:26 AM, Don Don wrote:
Just the general method of implementing a poke, and then any
application specific requirements can then be tailored to the
application.
If a user is not logged in, whenever they do, they'll get a
notification that they have been poked by a par
On 5/22/07, David BERCOT <[EMAIL PROTECTED]> wrote:
Hi Mike,
And thank you for your help...
Le Mon, 21 May 2007 13:21:35 -0400,
"Mike Smith" <[EMAIL PROTECTED]> a écrit :
> On 5/21/07, David BERCOT <[EMAIL PROTECTED]> wrote:
> > Hi Mike,
> >
> > Le Mon, 21 May 2007 10:24:52 -0400,
> > "Mike Smi
Hi,
I'm trying to make PHP5's soap implementation play nice with my web
service, and I'm having a problem.
Part of my schema contains a complexType, containing an xsd:choice of
several different element types, which can be repeated many times
(maxOccurs=unbounded)
e.g.:
Just the general method of implementing a poke, and then any application
specific requirements can then be tailored to the application.
If a user is not logged in, whenever they do, they'll get a notification that
they have been poked by a particular user, and when they are logged in they'l
2007. 05. 22, kedd keltezéssel 03.35-kor Don Don ezt írta:
> Hi all, am trying to run a regular expression to a list of user entered data
> on some forms.
>
> I've creating what i think is a matching pattern for each category as shown
> below:
>
> function validateEntry($regularExpression, $fie
Many ideas, all of them completely dependent on exactly what your
requirements are - should a poke be delivered to the target in real-time or
when they next load a page?
This is an extremely general question, like "I want users to be able to view
each other's profiles, how?"...
--rob
On 5/22/07,
Hi all, am trying to run a regular expression to a list of user entered data on
some forms.
I've creating what i think is a matching pattern for each category as shown
below:
function validateEntry($regularExpression, $fieldValue)
{
if(preg_match($regularExpression, $fieldValue))
{
Hi All, am trying to integrate a poke me poke you functionality to a web 2.0
application am developing. I've got some ideas of how to do this but am not
sure if its the best aproach. i am using the idea of a PM system since i've
done that earlier.
Does anyone have any way of implementing a po
Hi Mike,
And thank you for your help...
Le Mon, 21 May 2007 13:21:35 -0400,
"Mike Smith" <[EMAIL PROTECTED]> a écrit :
> On 5/21/07, David BERCOT <[EMAIL PROTECTED]> wrote:
> > Hi Mike,
> >
> > Le Mon, 21 May 2007 10:24:52 -0400,
> > "Mike Smith" <[EMAIL PROTECTED]> a écrit :
> > > David,
> > >
>
itoctopus wrote:
I have tried both, and I tell you that I really felt that the filesystem is
a more convenient way of doing it.
I have to agree, filesystems were after all designed to store files. I
reckon reading a file from disk is much quicker than reading from a
database, maybe only fract
63 matches
Mail list logo