php-general Digest 3 Apr 2006 12:10:08 - Issue 4050
Topics (messages 233091 through 233112):
Re: microsoft PHP ?
233091 by: Chris Shiflett
233092 by: Joe Wollard
233093 by: Matt Richards
233094 by: Matt Richards
233095 by: Joe Wollard
233108
ok, but how to make a non-logged user executes some stored procedures or
Queries ?
MySQL will need some login and password for that.
so, that's why i've asked such question...how and where to store this
non-logged user's info (login, password) to not make physical user type them
? (this must be
Hey,
Just as long as everyone knows that everything I said was all in good
fun. Next time I'll be sure to use sarcasam just to be sure nothing
is taken the wrong way ;-)Its quite strange actually how touchy so many
people have gotten... becauseas I read the whole comeback joke I thought
it was
Hi,
Anyone can suggest me which PHP AJAX framework you are using, for what
reason(s), what are pros and cons of your particular choice.
I found many, and now facing difficult choice.
BTW, how do you pass session id between calls to PHP from JavaScript
(cookies
or explicit
On 4/3/06, Alain Roger [EMAIL PROTECTED] wrote:
ok, but how to make a non-logged user executes some stored procedures or
Queries ?
MySQL will need some login and password for that.
so, that's why i've asked such question...how and where to store this
non-logged user's info (login, password)
I suppose that this config file should be included in all PHP file via
include command.
is it true ?
On 4/3/06, chris smith [EMAIL PROTECTED] wrote:
On 4/3/06, Alain Roger [EMAIL PROTECTED] wrote:
ok, but how to make a non-logged user executes some stored procedures or
Queries ?
MySQL
chris said:
Time. Opening a db connection is time consuming. There are many levels
involved (making the connection, authentication, etc).. Even worse if
the connection is over tcp/ip because that overhead comes in on top as
well.
I replied:
Have you timed it?
Maybe I'll do that tomorrow.
i am creating a forum and i am having trouble getting the database
information in to an html table
i believe it has somthing to do with the placement of the while
loops because they repeat the segment of code over untill the
statment returns false, thus adding extra html.. you guys are the
On 4/3/06, tedd [EMAIL PROTECTED] wrote:
chris said:
Time. Opening a db connection is time consuming. There are many levels
involved (making the connection, authentication, etc).. Even worse if
the connection is over tcp/ip because that overhead comes in on top as
well.
I replied:
Have
On 4/3/06, Alain Roger [EMAIL PROTECTED] wrote:
I suppose that this config file should be included in all PHP file via
include command.
is it true ?
Yes.
I'd actually use 'require' not 'include' since you always want it to be there.
--
Postgresql php tutorials
http://www.designmagick.com/
Hello,
on 04/01/2006 12:00 PM Andrei Verovski (aka MacGuru) said the following:
Anyone can suggest me which PHP AJAX framework you are using, for what
reason(s), what are pros and cons of your particular choice.
I found many, and now facing difficult choice.
BTW, how do you pass session
I am trying to upload a file to a remote server using curl and post method
here is what I have:
$file = $dir..$dbfile[0];
$this-invoiceno = $dbfile[1];
$uploadpath = http://www.website.com;
$postvar = array ();
$postvar['cboFileType'] = 837;
$postvar['txtDesc'] = Invoice
The best and simplest for me is prototype.js
Is much more than ajax ! 100% cross browser! ang GPL!
http://www.sergiopereira.com/articles/prototype.js.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings.
I'm having a problem with my upload handler. If I send small files
(under 1M or so), it works fine. if I send larger files, I get the
following error in Firefox:
The connection was reset.
The connection to the server was reset while the page was loading.
When using Internet
[snip]
The connection was reset.
The connection to the server was reset while the page was loading.
[/snip]
Script timeout
Max upload size
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am currently working on a project using SQL Server 2000. I don't
think there would be a big advantage to switching to sql server 2005
for this project, but is anyone using 2005 (or one of the Express
versions) with PHP? Looks like it only uses the native client?
--
Thanks,
Mike Smith
--
PHP
Hi there,
I am trying to encode output with php with uft8_encode(); and then output it to
an xml file. Unfortunatelly this does not work as the string that has been
encoded by utf8_encode is not valid utf8?!
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
That was my first thought, but two things: 1. the error occurs
IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think that
arbitrarily high number would prevent that error?
Jay Blanchard wrote:
[snip]
The connection was reset.
The connection to the server was reset while the
neglected to mention:
upload_max_filesize = 200M
post_max_size = 250M
Kenn wrote:
That was my first thought, but two things: 1. the error occurs
IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think that
arbitrarily high number would prevent that error?
Jay Blanchard
Hi,
This is come thing that I have struggled with now and again. I usaually
us php code to make it work, but was wondering how others deal with this
I use includes in most of the web applications that I work on to include
the header, footer, menu etc.
The problem that I always run into as
Hello,
I refer to the target file like this:
?php
include $_SERVER['DOCUMENT_ROOT'] . '/menu_dir/menu.php';
?
Solves the problem.
Sudheer. S
On Mon, 2006-04-03 at 09:54 -0600, Mace Eliason wrote:
Hi,
This is come thing that I have struggled with now and again. I usaually
us php code to
I tend to stick /nav/header.php in for my includes, since I control
the server.
As long as the site translates root to the main directory of your
website and not somewhere else, you can always have your links be
/menu.php as server-speak / means rootme.
I also use / in my href links in my menus
On Apr 3, 2006, at 10:54 AM, Mace Eliason wrote:
Hi,
This is come thing that I have struggled with now and again. I
usaually us php code to make it work, but was wondering how others
deal with this
I use includes in most of the web applications that I work on to
include the header,
Jay Blanchard wrote:
[snip]
Jay Blanchard wrote:
[snip]
That was my first thought, but two things: 1. the error occurs
IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think
that
arbitrarily high number would prevent that error?
[/snip]
If it occurs
I'm not exactly sure... but I think that include() may not work this
way:
? include (/menu.php); ?
I don't think it knows to go to the root and then look for menu.php.
That's why you have to tell it exactly where the menu.php is found -
1 level back:
? include (../menu.php); ?
Maybe it
I wonder how long this is gonna go on for, its ironic that the name
'Microsoft' seems to spread through this mailing list just like it
spreads through peoples computers ...
humm another thing that implies the same rule is a virus ! derm derm
drm...
Ryan A wrote:
Hey,
Just as long
?php include(/nav/menu.html) ? works like a charm for me, but your
mileage may vary depending on who has set up your website and what
server it is being run on.
FYI: I build my menu's with HTML and javascript, hence the .html call,
but it should be fine as php as well.
Robert
Philip Thompson
I'm very interested to see the best option for this.
Currently I set 2 variables in the include file (header.inc)
$siteurl = http://www.yourdomain.com/ http://www.yourdomain.com/psp/;
$pathto = /home/location_on_server/public_html/;
Then for includes I do something like:
I wonder if I may trouble you'all for some advice.
I'm having a problem bringing along text variables with more than one
word in them from form to form.
The project is an on-line baseball score pitching log submission
form that I'm trying to make a little more automated.
The first form asks
You aren't encapsulating your data with quotes, so it is thinking the
next word is another variable.
input type = hidden name = IDFIELD value = $thearray[id]
input type = hidden name = yourleague value = $league
input type = hidden name = yourteam value = $team
chris said:
Just out of interest, could you re-run the test using persistent connections?
change mysql_connect to mysql_pconnect..
In doing so, the overall results dropped from a tenth of a second
difference between both methods to three-one-hundredths of a second
difference. In other
Hi!
I have a very big problem with GD.
I want to make a picture which includes two pictures. And anybody can
download it by right click and save as.
How can i do this?
Please help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, April 3, 2006 1:33 pm, tedd wrote:
Just out of interest, could you re-run the test using persistent
connections?
change mysql_connect to mysql_pconnect..
In doing so, the overall results dropped from a tenth of a second
difference between both methods to three-one-hundredths of a
At 5:39 PM +0200 4/3/06, Merlin wrote:
Hi there,
I am trying to encode output with php with uft8_encode(); and then
output it to an xml file. Unfortunatelly this does not work as the
string that has been encoded by utf8_encode is not valid utf8?!
Merlin
Merlin:
I'm not sure as to what
At 10:20 AM -0500 4/3/06, Kenn wrote:
Greetings.
I'm having a problem with my upload handler. If I send small files
(under 1M or so), it works fine. if I send larger files, I get the
following error
If nothing else works, send smaller segments. Nothing wrong with
appending to a file, is
Paul Goepfert wrote:
function determineDay ()
{
$return = ;
$query1 = mysql_query(SELECT months FROM Month WHERE m_id =
month(curdate()));
$query2 = mysql_query(SELECT dayNum FROM Days WHERE dayNum =
day(curdate()));
I put all the generic include files such as the header and menu in their
own directory. Then I put that directory in the include_path ini
variable. I would normally set it in the virtualhost file but .htaccess
should work as well, you can even set it in the script.
This means I can simply
At 9:54 AM -0600 4/3/06, Mace Eliason wrote:
Hi,
This is come thing that I have struggled with now and again. I
usaually us php code to make it work, but was wondering how others
deal with this
I use includes in most of the web applications that I work on to
include the header, footer,
I have a very big problem with GD.
I want to make a picture which includes two pictures. And anybody can
download it by right click and save as.
How can i do this?
Please help!
Please go away and re-write the question so that we have an idea of what
you are after. Without more information
Nobody else has mentioned it, so I thought I would.
http://smarty.php.net - PHP Templating Engine
Mace Eliason wrote:
Hi,
This is come thing that I have struggled with now and again. I
usaually us php code to make it work, but was wondering how others
deal with this
I use includes in
Hello,
I've got some weird behavior using PHP 4.3.9. I use the function of
strtotime(last Sunday); and it's returning the timestamp for last
Saturday. However, if I use strtotime(-1 day); (I'm running this program
on a Monday) it returns the correct timestamp for Sunday.
Is this a bug in PHP
I've got some weird behavior using PHP 4.3.9. I use the function of
strtotime(last Sunday); and it's returning the timestamp for last
Saturday. However, if I use strtotime(-1 day); (I'm running this program
on a Monday) it returns the correct timestamp for Sunday.
Is this a bug in PHP 4.3.9?
Ok. I'm sorry.
I will try to explain my problem in a better way.
I wan't to make a page which can makes secret writting. It would
translate the normal characters into my special characters.
And I want to put the result into one JPG file.
So. I want to join together some JPEGs.
And this is my
[snip]
Ok. I'm sorry.
I will try to explain my problem in a better way.
I wan't to make a page which can makes secret writting. It would
translate the normal characters into my special characters.
And I want to put the result into one JPG file.
So. I want to join together some JPEGs.
And this
At 5:56 AM +1000 4/4/06, Peter Hoskin wrote:
Nobody else has mentioned it, so I thought I would.
http://smarty.php.net - PHP Templating Engine
And that goes somewhere?
tedd
--
http://sperling.com
--
PHP
Hello all, how i search duplicates records on a TXT file ?
Thanks in Advance.
--
bet0x
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alberto Ferrer wrote:
Hello all, how i search duplicates records on a TXT file ?
Thanks in Advance.
Use your imagination. Try starting with the filesystem functions.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--
PHP
Site must be down... search google for site:smarty.php.net
Believe me, it does exist.
tedd wrote:
At 5:56 AM +1000 4/4/06, Peter Hoskin wrote:
Nobody else has mentioned it, so I thought I would.
http://smarty.php.net - PHP Templating Engine
And that goes somewhere?
tedd
--
PHP General
Well, it did, looks like someone's having server issues or forgot to pay
the bill.
Anyways, here's Google's cache of it:
http://72.14.203.104/search?q=cache:cFUJ1uuABpkJ:smarty.php.net/+php+SMARTYhl=engl=usct=clnkcd=1client=firefox-a
tedd wrote:
At 5:56 AM +1000 4/4/06, Peter Hoskin wrote:
[snip]
Yeah. I read that.
But I don't want to learn the whole GD. I thought someone could help me.
Someone, who knows GD.
[/snip]
Someone can help you, but they probably will not write your code for you. You
have only asked general questions, and so you have gotten general answers. If
you are
Hi,
Many thanks for everyone who have replied. Its seems Manuel's suggestion
regarding iFrame sounds really good. BTW, I am using Savant as template
engine, and integrate it with Manuel Forms Generation and Validation would be
a good idea (there is a Smarty plugin for this class, but I am
On Sun, Apr 02, 2006 at 10:34:48PM -0700, [EMAIL PROTECTED] wrote:
The same as before:
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 03 Apr 2006 00:35:34 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
tedd wrote:
chris said:
Just out of interest, could you re-run the test using persistent
connections?
change mysql_connect to mysql_pconnect..
[snip]
Thanks -- does the persistent connection thing hold the server up
until released? How does that work?
MySQL is threaded so will not be
Hi guys!
If I've got this right, there will be some kind of tag that is saved in a
picture (hidden). Is it possible to retrieve this information from PHP and
what it is called? Any ideas / suggestions would be approciated!
/Gustav Wiberg
--
PHP General Mailing List (http://www.php.net/)
Hello,
on 04/03/2006 06:25 PM Andrei Verovski (aka MacGuru) said the following:
Many thanks for everyone who have replied. Its seems Manuel's suggestion
regarding iFrame sounds really good. BTW, I am using Savant as template
engine, and integrate it with Manuel Forms Generation and Validation
Hi,
I am trying to read form a database and place everything in a
multi-dimentional array
This is what I am doing and the output (for testing) seems correct
while($row=mysql_fetch_array($result))
{
$banner= array($arrayIndex = $row);
echo $banner[$arrayIndex][image]. br;
echo
I am trying to read form a database and place everything in a
multi-dimentional array
This is what I am doing and the output (for testing) seems correct
while($row=mysql_fetch_array($result))
{
$banner= array($arrayIndex = $row);
echo $banner[$arrayIndex][image]. br;
echo
I included the or die function on the end of my query statement. When
I tested this on my web page I got the following error
Query2 Failed: You have an error in your SQL syntax near '(curdate())' at line 1
When this code executed:
$query2 = mysql_query(SELECT dayNum FROM Days WHERE dayNum =
Paul,
Try TO_DAYS(curdate()) instead - if not you can't say we didn't try! ;-)
If that doesn't work you may want to try a MySQL list.
- Joe
On 4/3/06, Paul Goepfert [EMAIL PROTECTED] wrote:
I included the or die function on the end of my query statement. When
I tested this on my web page
Maybe try NOW() or CURRENT_DATE()?
Just a guess and sorry if it's already been mentioned
Dan
---
http://chrome.me.uk
-Original Message-
From: Joe Wollard [mailto:[EMAIL PROTECTED]
Sent: 04 April 2006 00:38
To: Paul Goepfert
Cc: Jon Drukman;
Hi,
Tuesday, April 4, 2006, 8:37:18 AM, you wrote:
ME Hi,
ME I am trying to read form a database and place everything in a
ME multi-dimentional array
ME This is what I am doing and the output (for testing) seems correct
ME while($row=mysql_fetch_array($result))
ME {
ME $banner=
At 06:25 PM 4/3/2006, Andrei Verovski (aka MacGuru) wrote:
Hi,
Many thanks for everyone who have replied. Its seems Manuel's suggestion
regarding iFrame sounds really good. BTW, I am using Savant as template
engine, and integrate it with Manuel Forms Generation and Validation would be
a good
Alain Roger wrote:
ok, but how to make a non-logged user executes some stored procedures or
Queries ?
MySQL will need some login and password for that.
so, that's why i've asked such question...how and where to store this
non-logged user's info (login, password) to not make physical user type
webmaster wrote:
I am trying to upload a file to a remote server using curl and post method
here is what I have:
$file = $dir..$dbfile[0];
$this-invoiceno = $dbfile[1];
$uploadpath = http://www.website.com;
$postvar = array ();
$postvar['cboFileType'] = 837;
Has anyone worked with ptys using proc_open? I want to try it out but
it appears to be disabled at the source level and I don't know how to
re-enable it. Any info at all is appreciated.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to modularize a Web Page using one of Dremweaver's CSSes.
It works in Firefox but it falls about in IE.
Is IE at fault or the modularization?
--
Member - Liberal International
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Jon wrote:
Has anyone worked with ptys using proc_open? I want to try it out but
it appears to be disabled at the source level and I don't know how to
re-enable it. Any info at all is appreciated.
Stupid question - you're using php5 right? It should already be there:
I'm trying to parse a Makefile, (FreeBSD Ports)
I plan on dumping the Makefile vars to a MySQL Database.
Would I parse the make file like a ini file?
Or would I have to use something different?
Maybe someone knows a tool that can do this for me?
Thanks
Ben
--
PHP General Mailing List
Merlin wrote:
Hi there,
I am trying to encode output with php with uft8_encode(); and then
output it to an xml file. Unfortunatelly this does not work as the
string that has been encoded by utf8_encode is not valid utf8?!
Depending on the string you might also need to htmlspecialchars it
Hi Alain.
On the authentication front, you can use HTTP basic authentication for
this kind of thing too - and it means you're not having to re-invent the
wheel in a lot of ways. The Auth_HTTP PEAR module makes this pretty
simple to implement:
http://pear.php.net/package/Auth_HTTP/
You can
You are better off using the 5th paramater to mail() instead..
mail($to, $sub, $msg, $headers, -f $return);
And what if that doesn't work? Is there a 3rd way of doing it that might
work?
~Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[EMAIL PROTECTED] wrote:
You are better off using the 5th paramater to mail() instead..
mail($to, $sub, $msg, $headers, -f $return);
And what if that doesn't work? Is there a 3rd way of doing it that might
work?
Ask your host if they allow you to change it on the fly. Explain what
you're
Mace Eliason wrote:
Hi,
This is come thing that I have struggled with now and again. I usaually
us php code to make it work, but was wondering how others deal with this
I use includes in most of the web applications that I work on to include
the header, footer, menu etc.
The problem that
Lack of information means no answer for you.
More to the point, this is a CSS question... not a PHP one. There is a
difference.
The Doctor wrote:
I am trying to modularize a Web Page using one of Dremweaver's CSSes.
It works in Firefox but it falls about in IE.
Is IE at fault or the
Gustav Wiberg wrote:
Hi guys!
If I've got this right, there will be some kind of tag that is saved in
a picture (hidden). Is it possible to retrieve this information from PHP
and what it is called? Any ideas / suggestions would be approciated!
Depends on what information you are after.
Makefile's are not ini files.
ini files have the structure
[section]
variable=value
[section2]
variable2=value2
Makefiles have the structure
variable=value
Benjamin D Adams wrote:
I'm trying to parse a Makefile, (FreeBSD Ports)
I plan on dumping the Makefile vars to a MySQL Database.
Would I
Benjamin D Adams wrote:
I'm trying to parse a Makefile, (FreeBSD Ports)
I plan on dumping the Makefile vars to a MySQL Database.
Would I parse the make file like a ini file?
Or would I have to use something different?
Maybe someone knows a tool that can do this for me?
Thanks
Ben
Try
Ruben Rubio Rey wrote:
The best and simplest for me is prototype.js
Is much more than ajax ! 100% cross browser! ang GPL!
http://www.sergiopereira.com/articles/prototype.js.html
Note that quite a few people who know a lot about Javascript really
don't like the fact that prototype.js extends
My RHES4 configuration omits the timestamp when generating a PHP error
message in the (Apache) error log.
But regular apache errors *do* have a timestamp.
Is this normal?
How can I get the timestamp for the PHP errors as well?
Thanks,
John
--
PHP General Mailing List (http://www.php.net/)
Paul Goepfert wrote:
I included the or die function on the end of my query statement. When
I tested this on my web page I got the following error
Query2 Failed: You have an error in your SQL syntax near '(curdate())' at line 1
When this code executed:
$query2 = mysql_query(SELECT dayNum
80 matches
Mail list logo