On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Sat, April 14, 2007 12:12 pm, Tijnema ! wrote:
>> try putting an @ sign before this line. something like this:
>> @$conn = pg_connect($conn_string);
>
> According to the manual:
> http://www.php.net/manual/en/language.operators.errorcontrol.
Thanks all I manged to fix it.
The headers were already sent by a validation class I was using and needed a
bit of output buffering to get it working.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
# [EMAIL PROTECTED] / 2007-04-17 18:41:46 -0400:
> Hi,
>
> I've developed a simple script that among other things sends a fax using
> hylafax's sendfax program. If I test it calling directly from the command
> line it works fine.
>
> If I let it run from cron it executes everything fine except
Tijnema ! wrote:
On 4/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
Richard Lynch wrote:
> On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote:
>> [PS - I've the pleasure of listening to a colleague do a manual
>> install
>> of Vista over an existing copy of XP and then get the really tricky
>> st
At 4/17/2007 07:54 PM, Robert Cummings wrote:
You say "Using tables for layout *is* a hack".
I believe what he meant was that using tables for layout of
non-tabular data is a hack.
tables were intended for laying out tabular data.
This is an interesting assertion. Perhaps it would be a
On Tue, 2007-04-17 at 22:20 -0500, Anna V wrote:
> On 4/17/07, Paul Novitski <[EMAIL PROTECTED]> wrote:
> >
> > At 4/17/2007 07:53 PM, Robert Cummings wrote:
> > >On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> > > > I've never never had used tables for layouts (I worked on pretty
> > > > compl
On Tue, 2007-04-17 at 22:04 -0500, Larry Garfield wrote:
> On Tuesday 17 April 2007 9:54 pm, Robert Cummings wrote:
> >
> > You say "Using tables for layout *is* a hack". Unfortunately for you
> > tables were intended for laying out tabular data. Thank you, thank you
> > very much.
>
> Tabular dat
On 4/17/07, Paul Novitski <[EMAIL PROTECTED]> wrote:
At 4/17/2007 07:53 PM, Robert Cummings wrote:
>On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> > I've never never had used tables for layouts (I worked on pretty
> > complicated projects)... Heck, http://espn.com is CSS based, and it
looks
At 4/17/2007 07:53 PM, Robert Cummings wrote:
On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> I've never never had used tables for layouts (I worked on pretty
> complicated projects)... Heck, http://espn.com is CSS based, and it looks
> pretty darn amazing. Just my quick thought on this. :)
Richard Lynch wrote:
>
> On Tue, April 17, 2007 6:59 am, Tim wrote:
>>
>>> > The count is maintained internally as items are
>>> added/removed, and it
>>> > is an O(1) operation for PHP to "count" the array, as it
>>> already knows
>>> > the answer and just returns it.
>>
>>
>> Hi nothing to d
On Tue, 2007-04-17 at 22:03 -0500, Anna V wrote:
>
>
> On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> > On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > >
> > > On Tue, 2007-04-17 at 18:53 -0500
On Tuesday 17 April 2007 9:54 pm, Robert Cummings wrote:
> On Tue, 2007-04-17 at 21:21 -0500, Larry Garfield wrote:
> > On Tuesday 17 April 2007 8:14 pm, Robert Cummings wrote:
> > > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> > > > On Tuesday 17 April 2007 3:40 pm, Robert Cummings w
On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> > > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
> > >
>
On Tue, 2007-04-17 at 21:21 -0500, Larry Garfield wrote:
> On Tuesday 17 April 2007 8:14 pm, Robert Cummings wrote:
> > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> > > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
> > > > > BTW, any web developer worth his or her salt with
On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote:
> On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> > > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
> > >
> > > > > BTW, any web developer worth his or her salt with
Hello again;
I have a directory that I am opening and reading to produce an
array of contents; files and subdirectories. There are a number
of subdirectories that I do not want to open and read the contents
of, and others that I do want to open and read the contents of.
This code is supposed to pr
On 4/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
>
> > > BTW, any web developer worth his or her salt with a reasonable
amount of
> > > practice can make CSS layouts that res
On Tuesday 17 April 2007 8:14 pm, Robert Cummings wrote:
> On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
> > > > BTW, any web developer worth his or her salt with a reasonable amount
> > > > of practice can make CSS layouts tha
On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote:
> On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
>
> > > BTW, any web developer worth his or her salt with a reasonable amount of
> > > practice can make CSS layouts that resize as well as table based layouts
> > > everyday of the
It's PHP_INI_PERDIR, but php takes the MINIMUM(php.ini, .htaccess,
FORM:MAX_FILE_UPLOAD_SIZE_THINGIE)
So it's no less secure than the webhost/sysadmin chooses to make it.
Or, at least, that's how I understood it to work when I tested it ages
ago...
No promise it hasn't changed.
On Tue, April 17
On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote:
> > BTW, any web developer worth his or her salt with a reasonable amount of
> > practice can make CSS layouts that resize as well as table based layouts
> > everyday of the week. I will refer you to http://www.csszengarden.com/
>
> Only wit
On Mon, April 16, 2007 8:06 pm, Robert Cummings wrote:
> On Mon, 2007-04-16 at 19:05 -0500, Richard Lynch wrote:
>> On Mon, April 16, 2007 6:10 pm, Jochem Maas wrote:
>> > if I know it's an array I'll definitely use empty() over count()
>>
>> > count() needs to actually count the items where a
Hi,
I've developed a simple script that among other things sends a fax using
hylafax's sendfax program. If I test it calling directly from the command
line it works fine.
If I let it run from cron it executes everything fine except the fax.
I am using the system call and in order to debug I a
On Tue, April 17, 2007 6:59 am, Tim wrote:
>
>> > The count is maintained internally as items are
>> added/removed, and it
>> > is an O(1) operation for PHP to "count" the array, as it
>> already knows
>> > the answer and just returns it.
>
>
> Hi nothing to do with the actual topic, i am just wo
On Tue, April 17, 2007 1:21 am, Leo Jokinen wrote:
> Problem solved:
> I restarted my computer and after that apache loaded ibm_db2
> extension.
>
> My conclusion:
> 1. When you add some extensions to php.ini, you need to restart
> windows
> in order to get those extensions available through apache
On Tue, April 17, 2007 1:40 am, Christian Haensel wrote:
> Whenever I see people put their code up for review, I realize they
> mostly
> use print instead of echo, while I am using echo 99% of the time.
> Actually,
> I can't even remember when I last used the regular print.
There used to be a diff
On Tue, April 17, 2007 9:12 am, tedd wrote:
> I start building from inside httpdocs folder where I place an
> index.php file and then branch out from there. Now, where is "OUTSIDE
> the web-tree"?
Not inside httpdocs folder is OUTSIDE.
If you put a file there, nobody can surf to it.
But PHP can
On Tue, April 17, 2007 9:28 am, Tim wrote:
>> > That was my assumption when I first read it...
>> >
>> > But maybe I've just hung out with too many stoner musicians... :-v
>> >
>
> Just musicians? ;P
In my personal experience, yes, just musicians...
I know a LOT of musicians, though, so it's a sk
On Tue, April 17, 2007 10:02 am, Ross wrote:
> Right,
>
> Have tried the full url for the header and it still doesn't work. I
> may have
> to resort to...javacript redirects unless someone can suggest a way
> around
> it.
>
> Here is the phpinfo();
>
> http://s202801613.websitehome.co.uk/info.php
>
On Tue, April 17, 2007 1:31 pm, Hans wrote:
> I'm trying to post variables to a parent frame, I'm working from a
> page that
> is in an iFrame. However, I don't know how to accomplish this. I tried
> target='top' to include in the form tag (
> target="top">) but this didn't succeed.
>
> Can you
On Tue, April 17, 2007 4:41 pm, Colin Guthrie wrote:
> Robert Cummings wrote:
>>> BTW, any web developer worth his or her salt with a reasonable
>>> amount of
>>> practice can make CSS layouts that resize as well as table based
>>> layouts
>>> everyday of the week. I will refer you to
>>> http://ww
Richard Lynch wrote:
On Tue, April 17, 2007 4:01 pm, Chris wrote:
Tijnema ! wrote:
On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote:
Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.
I'm not
On Tue, April 17, 2007 2:45 pm, Jay Blanchard wrote:
> [snip]
> From the CSS discussion of the WWE job posting thread.
>
> There is one question that shows that a table based layout in 99% of
> cases is superior to a CSS layout.
>
> Try resizing most any CSS based page.
>
> Tables are 99% of the ti
On Tue, April 17, 2007 4:01 pm, Chris wrote:
> Tijnema ! wrote:
>> On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote:
>>> Dang. There is no remote access to the server, no way to remotely
>>> edit php.ini - everything is blocked by the firewall. It's running
>>> IIS not Apache.
>>
>> I'm not tota
Talk to your webhost.
Nobody here can do anything useful for you on this...
Other than to recommend abandoning your current host for a better one.
:-)
On Tue, April 17, 2007 3:46 pm, Brian Dunning wrote:
> Dang. There is no remote access to the server, no way to remotely
> edit php.ini - everyth
On Tue, April 17, 2007 4:00 pm, Otto Wyss wrote:
> I want move all database access into separate PHP files so I could use
> these files either through an Ajax call from the client or in another
> PHP files (require_once) on the server. Is this possible? What
> interface
> would be needed? Has any
On Tue, April 17, 2007 4:40 pm, Jochem Maas wrote:
> Richard Lynch wrote:
>> On Mon, April 16, 2007 10:20 am, Tijnema ! wrote:
>>> And btw, I think it's better not to create a new link to the class
>>> each time the function is called, but just use ::
>>> if (!function_exists('json_encode')) {
>>>
On Tue, April 17, 2007 4:43 pm, Brian Dunning wrote:
> I got everything configured on my server and uploads working great,
> max_input_time=3600, upload_max_filesize=30M, post_max_size=30M, and
> anything I upload up to 30M works great on Safari. IE7 and Firefox
> choke, returning broser-generated
Could it be that IE7 and FF are timing the request out, and Safari
isn't?
That's what it sounds like to me. (connection reset on files larger
that a couple megs)
What to do about it server-side I have no idea (some kind of keep-
alive setting or header or something?), but maybe it gives yo
I got everything configured on my server and uploads working great,
max_input_time=3600, upload_max_filesize=30M, post_max_size=30M, and
anything I upload up to 30M works great on Safari. IE7 and Firefox
choke, returning broser-generated "page not found, connection reset"
if the file is big
Robert Cummings wrote:
>> BTW, any web developer worth his or her salt with a reasonable amount of
>> practice can make CSS layouts that resize as well as table based layouts
>> everyday of the week. I will refer you to http://www.csszengarden.com/
>
> Only with hacks.
The hacks fix buggy browser
Richard Lynch wrote:
> On Mon, April 16, 2007 10:20 am, Tijnema ! wrote:
>> And btw, I think it's better not to create a new link to the class
>> each time the function is called, but just use ::
>> if (!function_exists('json_encode')) {
>>function json_encode($data) {
>>ret
Em Terça 17 Abril 2007 18:18, William Lovaton escreveu:
> Any idea with this one? please??
>
> El lun, 02-04-2007 a las 07:51 -0500, William Lovaton escribió:
> > Hi there,
> >
> > I'd like to know a way to detect the file encoding from PHP and Linux
> > command line too.
> >
> > In PHP I tried mb
Any idea with this one? please??
El lun, 02-04-2007 a las 07:51 -0500, William Lovaton escribió:
> Hi there,
>
> I'd like to know a way to detect the file encoding from PHP and Linux
> command line too.
>
> In PHP I tried mb_detect_encoding() but it doesn't work reliable, first
> I have to spe
On Apr 17, 2007, at 4:00 PM, Otto Wyss wrote:
I want move all database access into separate PHP files so I could
use these files either through an Ajax call from the client or in
another PHP files (require_once) on the server. Is this possible?
What interface would be needed? Has anybody
Tijnema ! wrote:
On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote:
Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.
I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can
also
I want move all database access into separate PHP files so I could use
these files either through an Ajax call from the client or in another
PHP files (require_once) on the server. Is this possible? What interface
would be needed? Has anybody else tried something similar?
Since I plan use Jso
On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote:
Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.
I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can
also be set in .htacces
On Tue, April 17, 2007 3:43 pm, Sebe wrote:
> Brian Dunning wrote:
>> If I do this:
>>
>> ini_set('upload_max_filesize', 30720);
>> echo ini_get('upload_max_filesize');
>>
>> it returns 2M. Why is it not accepting the ini_set? The server is
>> Windows, PHP 5.2.
>
> probably because upload_max_files
Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.
On Apr 17, 2007, at 1:40 PM, Daniel Brown wrote:
That particular variable is a PHP_INI_SYSTEM variable, which
means it can only be set
Brian Dunning wrote:
If I do this:
ini_set('upload_max_filesize', 30720);
echo ini_get('upload_max_filesize');
it returns 2M. Why is it not accepting the ini_set? The server is
Windows, PHP 5.2.
probably because upload_max_filesize is PHP_INI_PERDIR not PHP_INI_ALL
use:
http://us.php.net/ma
On Tue, 2007-04-17 at 14:45 -0500, Jay Blanchard wrote:
> [snip]
> >From the CSS discussion of the WWE job posting thread.
>
> There is one question that shows that a table based layout in 99% of
> cases is superior to a CSS layout.
>
> Try resizing most any CSS based page.
>
> Tables are 99% of
If I do this:
ini_set('upload_max_filesize', 30720);
echo ini_get('upload_max_filesize');
it returns 2M. Why is it not accepting the ini_set? The server is
Windows, PHP 5.2.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I'm trying to post variables to a parent frame, I'm working from a page
that
is in an iFrame. However, I don't know how to accomplish this. I tried
target='top' to include in the form tag (
target="top">) but this didn't succeed.
Can you please help me?
[/snip]
JavaScript
--
PHP Gener
Hi there,
I'm trying to post variables to a parent frame, I'm working from a page that
is in an iFrame. However, I don't know how to accomplish this. I tried
target='top' to include in the form tag (
target="top">) but this didn't succeed.
Can you please help me?
Thanks in advance!
Hans
--
[snip]
>From the CSS discussion of the WWE job posting thread.
There is one question that shows that a table based layout in 99% of
cases is superior to a CSS layout.
Try resizing most any CSS based page.
Tables are 99% of the time superior as it will resize properly whereas
99% of most CSS base
HI All,
From the CSS discussion of the WWE job posting thread.
There is one question that shows that a table based layout in 99% of
cases is superior to a CSS layout.
Try resizing most any CSS based page.
Tables are 99% of the time superior as it will resize properly whereas
99% of most CSS
Ross wrote:
> Have tried the full url for the header and it still doesn't work.
I forget what your exact issue is, but a good first step to take when
debugging a problem with header() is to replace it with echo. For example:
echo "Location: $url";
Instead of:
header("Location: $url");
Almost e
Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any expe
I'm not looking for a response... but this thread that opened up
several days ago would now considered to be OT. Maybe take it
offline? :)
The ironic thing... when I put [OT] in the subject line, the list
rejected it. This is the 2nd attempt. So, the moral is to talk about
whatever the he
Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any expe
Read about output buffering, it's your solution and well worth time learning
about.
Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http:
>
> Have tried the full url for the header and it still doesn't
> work. I may have
> to resort to...javacript redirects unless someone can suggest
> a way around
> it.
>
> Here is the phpinfo();
>
> http://s202801613.websitehome.co.uk/info.php
>
>
> Is is 1and1 hosting if anyone had had an
That is, unless you use output buffering. It may not be the most elegant
solution (using header() to redirect users increases server calls), but I
built a template-driven php site that calls:
...depending on certain conditions which means I can then use header() even
after I have started output
Richard Lynch wrote:
> On Fri, April 13, 2007 8:14 pm, Robert Cummings wrote:
peacepipe in one hand, broadsword in the other - lets hack on :-)
>>> ***BIG SMILE***
>> And WHAT are you smiling at??? Staves beat peacepipes and broadswords
>> anyday!
>
> Maybe he's smiling because of what's IN h
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any experience of them.
> -Message d'origine-
> De : Jochem Maas [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 17 avril 2007 16:19
> À : [EMAIL PROTECTED]
> Cc : Robert Cummings; Tim; 'Jarrel Cobb'; 'tedd';
> php-general@lists.php.net
> Objet : Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!
>
> R
Can you re-iterate what is happening - I have a site with 1and1 and use
header() with no issues.
At 6:24 PM -0500 4/16/07, Richard Lynch wrote:
index.php is also accessible, if I can guess the login, which I did on
my first try...
Well, I did provide the log on and password on a subsequent post.
BUT, I didn't try to make it hard to guess, that wasn't the point of
the post. I was trying t
On Tue, 2007-04-17 at 13:14 +0100, Stut wrote:
> Tim wrote:
> >
> >>> The count is maintained internally as items are
> >> added/removed, and it
> >>> is an O(1) operation for PHP to "count" the array, as it
> >> already knows
> >>> the answer and just returns it.
> >
> >
> > Hi nothing to d
Tim wrote:
The count is maintained internally as items are
added/removed, and it
is an O(1) operation for PHP to "count" the array, as it
already knows
the answer and just returns it.
Hi nothing to do with the actual topic, i am just wondering how you get this
"internals" information you
> > The count is maintained internally as items are
> added/removed, and it
> > is an O(1) operation for PHP to "count" the array, as it
> already knows
> > the answer and just returns it.
Hi nothing to do with the actual topic, i am just wondering how you get this
"internals" information
Thanks mate, that clarifies that. And now I know why I use echo all the time
*g*
Have a great day,... greetings from sunny germany :o)
Chris
- Original Message -
From: "Dimiter Ivanov" <[EMAIL PROTECTED]>
To: "Christian Haensel" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, April 17, 2007
On 4/17/07, Christian Haensel <[EMAIL PROTECTED]> wrote:
Good morning fellow coders
I've been working with PHP for a little over 5 years now, and it even got me
a cute office and a good salary... but even though I can make a living off
of it, I am still wondering about a few little things.
When
Me too. I use echo. Print is a function.
There's no significant difference between them. My advice: choose one,
and stick with it.
On 4/16/07, clive <[EMAIL PROTECTED]> wrote:
> What do you guys use, and what is the advantage (if ther is any) of
> print over echo? And I am not talking about pr
What do you guys use, and what is the advantage (if ther is any) of
print over echo? And I am not talking about print_r or anything, just
the regular print. :o)
print returns a result, echo doesn't. This makes echo slightly faster
than print, but I doubt theres any significant speed improvem
76 matches
Mail list logo