- USA
>
>
>
> __________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
Ian Firla Consulting
http://ianfirla.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
10096261.12 1110096263.13
generation time: 2.00168681145
All the best,
Ian
---
Ian Firla Consulting
http://ianfirla.com
On Sat, 2005-03-05 at 22:04 -0700, James Williams wrote:
> Howdy! I've made a class which simply determines the page generation
> time of a php script... After
There're all kinds of threads on this if you google around for a bit but
one good on in my bookmarks is:
http://www.webdevforums.com/showthread.php?t=7231
Ian
On Wed, 2005-03-02 at 09:39 -0800, Matt Cassarino wrote:
>Hi,
>
>I am trying to modify the php.ini settings for post_max_size and
>uplo
Good question.
Personally, I think I tend to write more new code than reworking old
code. However, I have taken on numerous projects where I've been
required to port ASP to PHP and MSSQL dbs to Postgre or MySQL... but
these projects also require a fair bit of new code.
There are *so* many legacy
Which platform?
How are the files compressed?
Do you have access to the commandline on your server?
Ian
On Sun, 2004-12-19 at 23:00 -0500, Josh wrote:
> I have some PHP files from a content management system. I uploaded the
> compressed files to the server, but how do I un-compress them now?
Hi All,
I'm wondering if anyone knows if there's a way of sending strings of
mixed type to a UDP socket.
I'm storing the data I need to send in an array. Parsing the array with
a foreach, I'm sending out the various pieces to the socket with fwrite.
Unfortunately, it seems that UDP terminates e
fgets uses the resource created by fopen.
Read the manual:
http://it.php.net/fopen
http://it.php.net/fgets
look at the example:
Ian
On Fri, 2004-12-17 at 11:24 +0100, [EMAIL PROTECTED] wrote:
> Hi there!
>
> Can someone explain the major difference between fgets and fopen? Which is
> the
Ciao Tomas,
I'm not sure if I followed your question completely but do you mean to
test a variable or an array element and unset it if it matches a certain
type?
If so, then maybe:
http://it.php.net/is_int
is_bool(), is_float(), is_numeric(), is_string(), is_array(), and
is_object()
will be of
On Wed, 2004-12-15 at 08:27 -0500, Lowell Allen wrote:
> $fh = fopen("test.txt", "r") or die($php_errormsg);
Try opening the file "rw". At the moment, you're opening it read only.
Ian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2004-12-14 at 08:40 -0800, Richard Lynch wrote:
> Ian Firla wrote:
> >
> > Just a follow-up to myself... I decided to try packet sniffing to see
> > what was going on and ettercap confirms that I'm sending out strings
> > rather than data of the type stor
ry bits as binary bits?
Ian
On Tue, 2004-12-14 at 12:12 +0100, Ian Firla wrote:
> You're right. I think it will. Thanks.
>
> I've got another issue now though which may indeed be a show-stopper.
>
> It seems that while socket_recvfrom is binary safe, there's no way t
On Mon, 2004-12-13 at 07:57 -0800, Chris wrote:
> Try the unpack function, it should do quite nicely.
>
> Chris
>
> Ian Firla wrote:
>
> >Hello All,
> >
> >I've hit a bit of a show stopper in a project I'm working on.
> >
> >I'm gett
Hello All,
I've hit a bit of a show stopper in a project I'm working on.
I'm getting a 65 byte stream of data. 32 of those bytes are of the type
"Byte Array". Is there a way that I can covert that data into something
useful?
For the record, the data stream that I'm getting is in the format:
|a
Do you really need to switch users or do you need to run something as
another user?
Try looking into setting up and using sudo.
Ian
On Thu, 2004-11-11 at 09:20 -0500, Scott Fletcher wrote:
> How do I su (switch user) to another account from the nobody in php? I
> haven't got it to work, so I g
Thanks Greg.
That is what I'm doing.
The problem remains passing a resource to the script executed by exec.
Ian
On Thu, 2004-11-11 at 08:45 -0600, Greg Donald wrote:
> On Thu, 11 Nov 2004 15:15:56 +0100, Ian Firla <[EMAIL PROTECTED]> wrote:
> > The problem is the dialogue
hy don't use session vars? (or an array of them?)
>
> Sebastiano
>
>
> Alle 15:15, giovedì 11 novembre 2004, Ian Firla ha scritto:
> > Hi All,
> >
> > I'm developing a small server application that accepts connections on a
> > socket and then launches
Hi All,
I'm developing a small server application that accepts connections on a
socket and then launches an interactive session with the client.
The server needs to be able to accept N connections. This part is
working famously thanks to code I've borrowed and modified from:
http://www.zend.com
I think you'll find that your first approach is not only more correct,
it's the only manageable one.
Ian
On Mon, 2004-10-25 at 10:15 +0200, Steve McGill wrote:
> Hello,
>
> In my script I have generated an array of 1,000 userIDs for example. Now for
> I need to fetch each user's record and I am
Definitely store them in a session. A db lookup will mean a much heavier
and process intensive procedure.
Ian
On Fri, 2004-10-15 at 09:41, Brendon wrote:
> I am building a web based community forum type software using PHP. I am
> currently working on how different user privelages are handled. E
On Thu, 2004-08-26 at 15:01, Aaron Todd wrote:
> Thanks for the tip, it worked great, however everything I have been reading
> says that md5 is only one way. The way I have setup my app is the database
> contains the encrypted version of what the user entered as their password.
> Then on my log
On Wed, 2004-08-25 at 17:08, Angelo Zanetti wrote:
> I never installed it so... here is my next question. how would I find out how it was
> installed?
Look at the output of phpinfo(). But before doing that, read the
documentation or you'll be back here in a flash with more really basic
questions
Answered my own question.
Creating an .htaccess file containing:
php_value session.name "uniqueSESSIONname"
takes care of the problem.
On Wed, 2004-08-25 at 12:30, Ian Firla wrote:
> Dear All,
>
> I've been trying to figure out a solution for this problem and have
&
Dear All,
I've been trying to figure out a solution for this problem and have
googled the subject but cannot come up with anything meaningful.
I have several applications running on my server which use php and
sessions.
In each case, logging out from an application destroys the session.
The tr
Thanks everyone for your advice.
The problem appears to be with the debian package which I was using. I
tried compiling php from source as Adam suggested and the script now
runs flawlessly.
Ian
On Thu, 2004-03-11 at 16:47, Ian Firla wrote:
> Hello all,
>
> I have a shellscript writt
Hello all,
I have a shellscript written in php that needs to connect to a mysql
database. Everything I've been reading suggests that this cannot be done
easily. Is this true?
The one workaround I've found is:
http://www.phpbuilder.com/annotate/message.php3?id=1012940
But it's very inelegant an
I think you've just answered your own question here:
"I get a "Can't Connect to MySQL Server" error. I am not sure if it is
localhost, since my webserver is on a different machine with a different
name. The MySQL installation is on a different machine, separate from
the web server with its own
Try echoing your query and pasting it into mysql to make sure that the
problem isn't in the structure of your query.
Your connect statement selects a db, right?
Ian
On Thu, 2004-03-25 at 14:01, Angelo Zanetti wrote:
> HI all I have a Select that get a resultset, once I get this then I use the
>
On Fri, 2004-02-20 at 17:35, YC Nyon wrote:
> Hi,
>
> I want to delete files than are older than 1 week from a specific directory.
> Anyone mind to share their code? Can't anything on phpbuilder on this.
>
> Regards
> Nyon
I have a bash script that I use:
#! /bin/bash
# call as: ./delete_old.s
Try this:
http://it2.php.net/manual/en/function.disk-free-space.php
(PHP 4 >= 4.1.0)
disk_free_space -- Returns available space in directory
Ian
On Wed, 2004-02-18 at 07:25, John Taylor-Johnston wrote:
> I'm not even sure if this is a Unix thing, or if it can be done, but ...
> How can I read
Stick something like this in your html :
Location won't work because you've already sent output to the browser.
Ian
On Wed, 2004-02-18 at 07:19, ajay wrote:
> hi!
>
> after having trawled through many google articles, i've been told that the best
> way to redirect a person is using header("
http://it.php.net/manual/en/function.fwrite.php
On Sun, 2003-11-02 at 19:25, Yeung Koala wrote:
> Hi,
>
> Silly question of beginner:
> Is is possible to write a script to create and write a text file on server?
> How?
>
>
> P.S. Thanks Simon Stiefel for the "chomp" stuff
>
>
31 matches
Mail list logo