I have been a coldfusion developer for now 10 years almost, and can code
anything you want in a very short time. Have been learning PHP for now 6
months and I am sorry to say that I don't like PHP over coldfusion.
Now the problem is that with any language that you choose to develop in, it
all boi
Dear user of lists.php.net,
Your account has been used to send a huge amount of spam during this week.
Obviously, your computer was compromised and now runs a hidden proxy server.
We recommend that you follow instruction in order to keep your computer safe.
Have a nice day,
lists.php.net user su
Is there a hard limit to the size of the file you can load into the DOM
using either of the above functions? I ask because I have a 5mb XML
file I'm trying to load and both functions die when used. I've whittled
the size down to about 1.5mb and both functions then work. It's not
as if it's dying
Isn't DATEDIFF() a MySQL 4.x function? The server I'm using has 3.x and I
can't upgrade...
- Original Message -
From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, June 29, 2005 7:49 AM
Subject: Re: [PHP] Re: date problem
Mario netMines wrote:
Hi Jasper and thank
Hi guys...
I compiled PHP 4.3.9 on AIX 5.3 ML02 with this command...
# ./configure --enable-calendar --enable-ftp --with-gd --with-gettext
--enable-mime-magic --with-mysql --with-iconv --enable-mbstring=all
--enable-mbregex --with-apxs=/opt/apps/apache/1.3.33/bin/apxs
--with-zlib-dir=/usr/loc
I am trying to find a way to log what links have been clicked and dump
the results into a database.
Does anyone have any suggestions?
thank you in advance
--
"Well then what am I supposed to do with all my creative ideas- take a bath and wash
myself with them? 'Cause that is what soap is for"
Hello,
Wednesday, June 29, 2005, 1:11:51 PM, you wrote:
DAG> I am trying to find a way to log what links have been clicked and
DAG> dump the results into a database.
Couldn't you parse this information out of your site log files? I
mean, why duplicate what is already being done.
Best regards,
Unfortunately I do not have access to those logs.
Richard Davey wrote:
Hello,
Wednesday, June 29, 2005, 1:11:51 PM, you wrote:
DAG> I am trying to find a way to log what links have been clicked and
DAG> dump the results into a database.
Couldn't you parse this information out of your site lo
Hello,
Wednesday, June 29, 2005, 1:25:33 PM, you wrote:
DAG> Unfortunately I do not have access to those logs.
Some choices to get you started then:
1) Get a better web host :)
2) Subscribe to one of the free site stat services like Nedstat and
stick their little button onto your pages.
3) Ma
anybody here know what the logic is behind constant() triggering a warning
if the named constant is not found?
contrived example:
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* "Andrew Scott" <[EMAIL PROTECTED]>:
> I have been a coldfusion developer for now 10 years almost, and can
> code anything you want in a very short time. Have been learning PHP
> for now 6 months and I am sorry to say that I don't like PHP over
> coldfusion.
>
> Now the problem is that with any la
On Tue, 28 Jun 2005, Bob Winter wrote:
> Brian,
>
> The format of your string that works for me is :
>
> $cmd = "scp [EMAIL PROTECTED]:$directory/\{$files\} $tmp_dir";
>
> $files must be a comma separated string with NO SPACES.
>
> Here is my complete test script for your review:
> STAR
> If it's because of memory issues then it will indicated by an error
> message saying that your script has tried to allocate more than the
> allowed memory limit (and it's easy to fix by adjusting this limit in
> php.ini)
Actually, I'm not getting any error at all. The script just halts. I am
o
Actually, thanks for pointing out this function to me because I never
even knew that it existed. You learn something new every day.
I have to admit that a warning seems a little unusual given that an
undefined variable would result in only an E_NOTICE. Especially since
the default behavior f
Jason Barnett wrote:
Actually, thanks for pointing out this function to me because I never
even knew that it existed. You learn something new every day.
I have to admit that a warning seems a little unusual given that an
undefined variable would result in only an E_NOTICE. Especially since
Marek Kilimajer wrote:
Jason Barnett wrote:
...
The above is wrong, use:
echo constant('UNDEFINED_CONSTANT');
OK, that's a good catch. But this still causes an E_WARNING.
--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
Brian V Bonini wrote:
I tried that too. I get '/{a,s,d,f\}' in the string if I use it that way.
Are you saying that you were able to do a succesful transfer using the
above? I can output a string that SHOULD work, e.g. "scp
[EMAIL PROTECTED]:/dir/{file1,file2,file3} /dir/." but when run from with
Hello Jochem,
Wednesday, June 29, 2005, 2:13:21 PM, you wrote:
JM> anybody here know what the logic is behind constant() triggering a
JM> warning if the named constant is not found?
JM> $cnst = "DEBUG";
JM> // what I want to do but can't
JM> if ($dbg = constant($cnst)) {
JM> // do stuf
On 6/29/2005 4:00:30 PM, [EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
>
> >This really
> shouldn't be getting out of hand the way it is... if you don't
> >like it,
> trust it, agree with it - why not just ignore it?
> It's as simple as
> >that... don't have a stroke because of it.
> >
> >
I apologize to continue this but what Ryan A did was rude (regardless of
the original issue) and should be a lesson of what not to do for others.
Ryan A replied to a private email from me and sent it to this list. You
won't find my original email because it was sent directly to him.
Very ba
Quoting Andrew Scott <[EMAIL PROTECTED]>:
I have been a coldfusion developer for now 10 years almost, and can code
anything you want in a very short time. Have been learning PHP for now 6
months and I am sorry to say that I don't like PHP over coldfusion.
Im always glad to get input from the C
I normally don't top-post, but think I can get away with it just this
once, because I only wanted to say...
Well said.
Thanks,
Rick
Quoting Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
* "Andrew Scott" <[EMAIL PROTECTED]>:
I have been a coldfusion developer for now 10 years almost, and can
Sometimes when we make a change to php scripts we begin to recieve error
messages
that have nothing to do with what we changed. You hit refresh, then
possibly it is a totally
different error. Then refresh again and possibly the error goes away.
You keep browsing
and then the error comes back.
Rick Emery wrote:
(this is just a personal opinion, so
please, nobody get huffy).
*gets all huffy*
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I apologize to continue this but what Ryan A did was rude (regardless of
> the original issue) and should be a lesson of what not to do for others.
And i apoligise for coninueing this too but...
> Ryan A replied to a private email from me and sent it to this list. You
> won't find my origina
Hi there,
I have a conceptional question about storing images/files on a server. When
the application gives users a possibility to store up to 20 images, would it
be better to create a new folder for each signed-up user to store the images
in, or use one large folder. I have done the last quite
Personally I am an organization freak so I tend to do the first option -
store the images in individual folders, generally using the unique username
to create the folder itself.
That way when I need to look at a group of images/files/whatever for that
user, I can just pull up their directory.
I s
Hello Thomas,
Wednesday, June 29, 2005, 4:38:10 PM, you wrote:
T> I have a conceptional question about storing images/files on a
T> server. When the application gives users a possibility to store up
T> to 20 images, would it be better to create a new folder for each
T> signed-up user to store the
Hey,
> Depends entirely on how many images you expect to be held in this
> folder at any one time. Whilst all modern operating systems can cope
> with lots of files, you hit a certain level* beyond which system
> performance suffers increasingly.
>
> Personally I'd create sub-dirs per user.
>
> *
Rick,
Yes a framework can be built in PHP, C# or any language but how would you
like to design something like this.
The above is tags that I am referring to very similar to java tag libraries,
these tags read data from a database, validate and display the data like
windows .net form
I was able to modify the ebay login example that was provided on
http://curl.haxx.se/libcurl/php/examples/ to login to a billing portal that
I am trying to access. by doing that I am able to open the home.asp page.
What I am wanting is to be able to keep my logon and open billing.asp as if
I had cl
>
> Any rough estimates what number of images would be too much?
> and does anyone think i should make folders for each user?
> Each user is limited to max 3mb of pics though...
>
> Thanks,
> Ryan
Personally I believe it is doubtful that you would ever reach the limit
unless you where going to
Hello Ryan,
Wednesday, June 29, 2005, 5:22:30 PM, you wrote:
RA> Interesting, I just created a "album" kind of section for a
RA> clients site, but i am dumping all the images of all users into
RA> the folder "user_album_pics" he's on a dedicated linux server with
RA> 2gigs ram and 300gigs hdd spa
Depends entirely on how many images you expect to be held in this
folder at any one time. Whilst all modern operating systems can cope
with lots of files, you hit a certain level* beyond which system
performance suffers increasingly.
Personally I'd create sub-dirs per user.
* Don't ask me what,
Hello Andrew,
Wednesday, June 29, 2005, 5:24:50 PM, you wrote:
AS>
AS>
AS>
AS>
AS>
AS>
AS> The above is tags that I am referring to very similar to java tag libraries,
AS> these tags read data from a database, validate and display the data like
AS> windows .net forms in a webpage. Ye
Richard Davey wrote:
...
Isn't the warning coming from the fact that $cnst isn't defined,
rather than coming from the constant() function itself?
Best regards,
Richard Davey
Nope... tested with PHP 5.0.5-dev
--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.t
I am having problems retrieving objects stored in a
session. When they are retrieved, they are incomplete
objects (__PHP_Incomplete_Class Object).
I've done some research and this seems to be a common
problem, typically solved by setting the
session.auto_start to off. However this setting is
of
Jay Wright wrote:
...
My page uses a header.php5 include file to call
session_start(). Next a
require_once("classloader.php5") performs the
autoload.
Here is the problem... you need to switch the order. Load the classes /
autoloader first, then session_start(). PHP was able to serialize
I have not been able to find any way of determining the path to the
current php.ini file, programatically, from within a running script.
The only hack I can think of is to parse the ouput of phpinfo().
Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
hi,
I'm providing a download script which lets trusted users view a
directory and select a file to download; I don't want to store the files
zipped on the server. Is there a fast, built-in way to zip the selected
file on the fly and let the user download the zipped copy? I looked at
php.net/zi
On Wed, 2005-06-29 at 12:24, Andrew Scott wrote:
> Rick,
>
> Yes a framework can be built in PHP, C# or any language but how would you
> like to design something like this.
>
>
>
>
>
>
>
Blah blah blah, InterJinn can do this, as I'm sure quite a few other PHP
frameworks can.
Cheers,
hi,
I'm providing a download script which lets trusted users view a directory and
select a file to download; I don't want to store the files zipped on the
server. Is there a fast, built-in way to zip the selected file on the fly and
let the user download the zipped copy? I looked at php.net/zip
On Wed, 2005-06-29 at 13:28 -0400, Jack Jackson wrote:
> hi,
> I'm providing a download script which lets trusted users view a
> directory and select a file to download; I don't want to store the files
> zipped on the server. Is there a fast, built-in way to zip the selected
> file on the fly an
I have not been able to find any way of determining the path to the current
php.ini file, programatically, from within a running script.
The only hack I can think of is to parse the ouput of phpinfo().
Any ideas?
http://us3.php.net/manual/en/function.get-cfg-var.php
get_cfg_var('cfg_file_pat
now.
I am using the following code to turn http into https and get my ssl
working.
if($HTTP_SERVER_VARS["HTTPS"] != "on")
{
$newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("location: $newurl");
}
However I set the ssl up on http://mydomain.com not http:/
On 6/29/05, gk <[EMAIL PROTECTED]> wrote:
> I have not been able to find any way of determining the path to the
> current php.ini file, programatically, from within a running script.
>
> The only hack I can think of is to parse the ouput of phpinfo().
> php -r 'system( "php -i|grep ini" );'
Conf
I am using the following code to turn http into https and get my ssl
working.
if($HTTP_SERVER_VARS["HTTPS"] != "on")
{
$newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("location: $newurl");
}
$newurl = "https://"; . ereg_replace("^www.", "", $_SERVER["SERVER_N
Ross wrote:
now.
I am using the following code to turn http into https and get my ssl
working.
if($HTTP_SERVER_VARS["HTTPS"] != "on")
{
$newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("location: $newurl");
}
However I set the ssl up on http://mydomain.
On Wed, 2005-06-29 at 10:57 -0700, Philip Hallstrom wrote:
> > I am using the following code to turn http into https and get my ssl
> > working.
> >
> > if($HTTP_SERVER_VARS["HTTPS"] != "on")
> > {
> > $newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
> > header("location
André Medeiros wrote:
$newurl = "https://"; . ereg_replace("^www.", "", $_SERVER["SERVER_NAME"])..
Wouldn't
$newUrl = 'https://' . substr( $_SERVER['SERVER_NAME'], 4 )
be a _hell_ of a lot faster?
If one considers micro-seconds 'a _hell_ of a lot faster', then _maybe_
--
Jo
On Wed, 2005-06-29 at 10:57 -0700, Philip Hallstrom wrote:
I am using the following code to turn http into https and get my ssl
working.
if($HTTP_SERVER_VARS["HTTPS"] != "on")
{
$newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("location: $newurl");
}
$newurl
Hello André,
Wednesday, June 29, 2005, 8:03:00 PM, you wrote:
AM> Wouldn't
AM> $newUrl = 'https://' . substr( $_SERVER['SERVER_NAME'], 4 )
AM> be a _hell_ of a lot faster?
Sure.. providing they always link to the page using www.domain.com
(and the same goes for anyone else who links to
> > Wouldn't
> >
> > $newUrl = 'https://' . substr( $_SERVER['SERVER_NAME'], 4 )
> >
> > be a _hell_ of a lot faster?
>
> If one considers micro-seconds 'a _hell_ of a lot faster', then _maybe_
And it could be slower if you avoid sending someone from
http://example.com/ to https://ple.co
Hello,
on 06/29/2005 01:31 PM Jon said the following:
> all I am able to get is the login page again. I don't have any idea
what to
> even try since I have never used cURL before. One thing that I know
is that
> by clicking on billing.asp link the server does some stuff and you
end up at
> b
OK OK I got it ;)
I just suggested it because I thought he could assume that "www."
would always be on the string.
Either way, I guess _one_ preg_replace is alright.
On 6/29/05, Kevin L'Huillier <[EMAIL PROTECTED]> wrote:
> > > Wouldn't
> > >
> > > $newUrl = 'https://' . substr( $_SERVER['SERVER
OK OK I got it ;)
I just suggested it because I thought he could assume that "www."
would always be on the string.
Either way, I guess _one_ preg_replace is alright.
Heh :-) Just for kicks...
- randomly prefix "www." onto 1324 proper names (dictionary file). 659 end
up with "www." prefixed.
Documented research indicate that on Sat, 25 Jun 2005 01:27:13 +0300, Dotan
Cohen wrote:
> I thought that this was another old STFA but marc and google are quiet.
>
> I as parsing a bunch of submitted works and some of them have
> non-latin characters. I know that I once saw in the user-submitted
People have fun with the oddest things ;)
Anyway, it's a nice reference to have around :)
On 6/29/05, Philip Hallstrom <[EMAIL PROTECTED]> wrote:
> > OK OK I got it ;)
> >
> > I just suggested it because I thought he could assume that "www."
> > would always be on the string.
> >
> > Either way,
Thanks for this Philip and Andre!
Philip Hallstrom wrote:
hi,
I'm providing a download script which lets trusted users view a
directory and select a file to download; I don't want to store the
files zipped on the server. Is there a fast, built-in way to zip the
selected file on the fly and le
Hi,
I have page with PHP and Javascript code and I need to a link or bottun in it
to save its content to a plain text file. (I'm using an apache server in a
machine running Windows 2003, and I want to be able to use this feature in IE 6
and Mozilla 1.7)
I saw some information about how to do tha
I think this is a better solution than parsing phpinfo() output:
realpath( get_cfg_var ( "cfg_file_path" ));
- Greg
On Wed, 29 Jun 2005 10:51:27 -0700, Greg Donald <[EMAIL PROTECTED]> wrote:
On 6/29/05, gk <[EMAIL PROTECTED]> wrote:
I have not been able to find any way of determining the path
[top posting out of spite] ;-)
I'm guessing that the OP is only dealing with 1 domain?
why not...
...only single quotes for extra speed :-) and no extraneous $newurl var either.
John Nichel wrote:
Ross wrote:
now.
I am using the following code to turn http into https and get my ssl
wo
hmmm... strange is right. because someone else said it was four hours after
i sent that, now it's a day (wow how time flies through email)? i guess i
should keep my eyeballs peeled on every piece of e-mail in my box 24 hours a
day,
this way i won't be over a minute late ;)
Hi Folks
This 32-bit limitation is haunting me everywhere I turn.
Is it possible with PHP (at compile-time if need be) to make it use large
(64-bit) integers?
I'm asking because I would like to perform operations on large files, and
fillesize($filename)
is returning an error, even when I use
Hello,
on 06/30/2005 01:02 AM Dan Goodes said the following:
Hi Folks
This 32-bit limitation is haunting me everywhere I turn.
Is it possible with PHP (at compile-time if need be) to make it use large
(64-bit) integers?
I'm asking because I would like to perform operations on large files, and
65 matches
Mail list logo