On Monday 27 October 2003 12:58 am, Shawn McKenzie wrote:
> Thanks, but I was looking for a multi-platform way via a function.
rename()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2003-10-26 at 15:30, Raditha Dissanayake wrote:
> are you getting any 1xx status codes from the web server?
here are the full headers:
HTTP/1.1 200 OK
Date: Mon, 27 Oct 2003 06:15:30 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.3
X-Powered-By: PHP/4.3.3
Transfer-Encoding: chunked
Content-Type:
Thanks, but I was looking for a multi-platform way via a function.
I just bit the bullet and looped thru with readdir() and copied the files.
-Shawn
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Shawn McKenzie wrote:
>
> > I need to copy a directory from one locat
Hi All,
I've written a digital asset management system and my dilema is, to save a file from
the sytem, i pass the files through a php script so i can change file names and keep
the files out of the web tree.
I use a little popup window so they can select what format they want to download the
Change 'new' to something else say 'new1' as new is an operator so that
might be causing the problem which in turn affecting the category also ..
Hope this helps
cheers
Binay
- Original Message -
From: "Joao Andrade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 20
I'm retrieving results from a MySQL database - they would be of the form
(form table 'usergroup'):
+--+--+
| username | group_id |
+--+--+
| tparker |3 |
| tparker |6 |
| tparker |7 |
| tparker |8 |
+--+--+
This
Hey people,
Something odd is happening :) I've this form on a page:
Author
New Category
Category
".$cat ; //and place it in the select
$lincat = mysql_fetch_row ($categorias);# pega uma linha
}
?>
Quotation
And then I have in quotation
Shawn McKenzie wrote:
I need to copy a directory from one location to the other. I didn't find a
function for this. Is copy() supposed to work on directories as well as
files, or is there another?
Unix :
cp -r /old/dir /new/dir
Windows :
xcopy /E c:\old\dir c:\new\dir
Use those with :
http:
php-general Digest 27 Oct 2003 04:50:51 - Issue 2379
Topics (messages 167633 through 167674):
Re: How can i count time it taked to render the page?
167633 by: Mike Brum
167634 by: rush
167664 by: Justin French
baffled on error_reporting
167635 by: Gerard Samu
Larry E. Ullman wrote:
I was feeling generous so I went back in time and added this
functionality to PHP as of version 3. I call it the "strcasecmp"
function. I placed the description and usage of the function in the
PHP manual: http://www.php.net/strcasecmp
That was nice of you, but he wanted
Ian Williams wrote:
I want to write a function that will take any SQL query as a parameter, and
generate XML that represents the recordset.
If you are lucky enough to be using mysql ver 4.x+ -- it has this
functionality built-in, using the --xml command line option.
Sample run :
$ mysql -u usern
On Mon, 27 Oct 2003 13:29:47 +1100, you wrote:
>> What is the best approach to the unique page ID? I thought I would store
>the
>> dept. mgrs. email address and the session ID in a db, and use the session
>ID in
>> the URL. Do I even need the mgr's email address? Is another approach
>better?
>> Wh
> i have 2 problems in 2 dimensional array
>
> 1. how to declare global 2 dimensional array in php
> 2. how to pass 2 dimensional array in function as an
> arrgument
In the context of your questions, 2-Dimensional arrays are no different to
1-dimensional arrays.
All global vairables in PHP are st
On Sunday, October 26, 2003 5:40 PM Al wrote:
> Is it just me, or would everybody else like to see a case-insensitive
> string comparison operator introduced into PHP?
You could use the strcasecmp() function as well:
http://ca3.php.net/manual/en/function.strcasecmp.php
Cheers,
Pablo
--
PHP G
Hey!
i did few upgrades on my server and i got into some weird problem.
what i did was:
Upgraded to: Apache2
Upgraded to: php 4.3.3
and after that GD stoped working...
i did check on phpinfo(); and it came up with:
gd
GD Support enabled
GD Version bundled (2.0.15 compatible)
G
I need to copy a directory from one location to the other. I didn't find a
function for this. Is copy() supposed to work on directories as well as
files, or is there another?
TIA
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it just me, or would everybody else like to see a case-insensitive
string
comparison operator introduced into PHP? It is a type of comparison
that I
use a lot, and having to strtolower() everything before comparison can
impact code readability, not to mention the angst, pain and trauma of
hav
>
>
>
>
>
>
> There are two approaches I think. One is to use the XML DOM, the other is
> simply to join lots of strings together. What is the best approach?
What i have done in the past is use the dbx extension in php to do my
queries. Then i have iterated over the multi-dimens
* Thus wrote Evan Nemerson ([EMAIL PROTECTED]):
>
> [tadpole tadpole]$ php -q ./bench.php
> Averages:
> substr: 3.5071199059486
> pcre: 4.2237901210785
Averages:
substr: 5.1445327162743
pcre: 5.6803694009781
posix: 8.0486606121063
Interesing that my results of substr vs. pcre came in close
Afternoon all,
Is it just me, or would everybody else like to see a case-insensitive string
comparison operator introduced into PHP? It is a type of comparison that I
use a lot, and having to strtolower() everything before comparison can
impact code readability, not to mention the angst, pain and
> What is the best approach to the unique page ID? I thought I would store
the
> dept. mgrs. email address and the session ID in a db, and use the session
ID in
> the URL. Do I even need the mgr's email address? Is another approach
better?
> What have you used?
I'd concatenate the employee's email
You can't find out how long the pages takes to RENDER at all --
rendering is something that happens client-side.
You can find out how long it takes to execute a script (on the server),
which is what I assume you mean.
See Example 1 on http://www.php.net/microtime
Justin French
--
PHP General
Tim Thorburn wrote:
Is there an IF LIKE statement in PHP? I've got a MySQL database setup
with headings and text (think a news article site) - headings in one
field, text in another. In some cases, I don't want the contents of
the heading field to appear on the site - in these cases, the head
strstr() and it's variants
ereg() if you need more logic
Martin
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]
Sent: Monday, 27 October 2003 12:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] if and like together?
Hi,
Is there an IF LIKE statement in PHP? I've got a MyS
Hi,
Is there an IF LIKE statement in PHP? I've got a MySQL database setup with
headings and text (think a news article site) - headings in one field, text
in another. In some cases, I don't want the contents of the heading field
to appear on the site - in these cases, the headings begin with
I started writting an install script that would talk to a PHP script on one
server while being used on another.
So you would have http://www.someserver.com/install.php -->
http://www.homesever.com/install.php via CURL without the users knowledge.
The script would pass certain variables and if one
P M wrote:
Hello all!
I need to host several websites from the same server (physical computer), and thus require PHP to be configured for more than one directory with PHP files. Does anyone know how to specify several target directories for the doc_root directive in the configuration file?
Try A
Hi!
I never knew that something like that is needed. It works fine without
any additional configuration. Does it work for your primary hosted
domain?
angel
On Sun, 26 Oct 2003 16:15:50 +0100
"P M" <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> I need to host several websites from the same server
OrangeHairedBoy wrote:
Hi all,
I'm trying to write a script to get the next last friday of the month and I
am failing miserably. It keeps giving me October 10th. So, I scrapped it.
Basically, I just want to show what the last friday of the month is, and if
that date has already passed, show the l
hi, I have the warning message below.
In which conf file can I set session.bug_compat_42 or
session.bug_compat_warn to off?
And where can I find this conf file?
(annexe question: Is it possible to get the warnings in a variable so I
could print it in html comment, or write it in a log file?)
th
If I were you I'd just join strings- it's much less resource intensive. Just
make sure you're using valid XML.
On Sunday 26 October 2003 12:08 pm, Ian Williams wrote:
> Apologies to anyone also subscribed to php.xml.dev, who will have read this
> earlier, but it doesn't seem as frequently read a
You can try Xdebug. http://www.xdebug.org/
Can you send some code to reproduce the error?
On Sunday 26 October 2003 10:24 am, Fabio Rotondo wrote:
> Hi,
>
> I am experiencing a strange error while using PHP 4.3.4RC2.
> In the apache2 log, I read:
>
> fatal: cannot realloc() 1937201923 bytes.
>
Search for 'doomsday algorithm' on google. Once you grok it, you should be
able to figure out the last friday quite easily.
On Sunday 26 October 2003 11:37 am, OrangeHairedBoy wrote:
> Hi all,
>
> I'm trying to write a script to get the next last friday of the month and I
> am failing miserably.
Hi,
As Ray has also mentioned sprintf() is the best approach. I would also
like to point out that you would be doing three iteration over your data
so please make sure that your queries are not just 'select * from
customers' but 'select * from customers where something=something'
all the best
I haven't tried this before, but I need to now and wanted to get a couple of
pointers.
I have a client that maintains a MySql database on a webserver. They want to
import data into the database by uploading a Excel spreadsheet (most likely
saved in a .csv format). I want to import the data directl
Hiya fellow PHP coders!
I have a problem. I need a function to parse mIRC-colorcodes with PHP.
Unfortunaly, I'm not capable to do this myself (or I'm thinking too
advanced or something).
The code is built like this; chr(3) starts the color formating. After
that sign, a series of numbers will c
On Sunday 26 October 2003 07:12 pm, Dan McCullough wrote:
> No I believe that is a feature the ability to turn off error reporting.
> You can do the same with mysql functions.
>
> @mysql_
Yes I know about turning off error reporting, but what happens after that
point.
An example.
-- common.php
Bob wrote:
> The last friday of the following month will be the last friday of the current
> month + the number of day in the current month > 28 ( date("t") - 28 ).
OOPS! I meant the The last friday of the following month will be the *date*
of the last friday of the current month MINUS the num
I have a common included file with error_reporting set to 0
If I do a var_dump(error_reporting()) right after it it returns 0
In a file that includes this common file, if I var_dump(error_reporting())
there it return 2047, which I believe is E_ALL
It that the correct behaviour of error_reporting??
Hello all!
I need to host several websites from the same server (physical computer), and thus
require PHP to be configured for more than one directory with PHP files. Does anyone
know how to specify several target directories for the doc_root directive in the
configuration file?
Video Populare
Hello,
On 10/26/2003 06:08 PM, Ian Williams wrote:
I want to write a function that will take any SQL query as a parameter, and
generate XML that represents the recordset.
e.g. "SELECT * FROM Customers"
returns:
There are two approaches I think. One is to use the XML DOM, the oth
No I believe that is a feature the ability to turn off error reporting. You
can do the same with mysql functions.
@mysql_
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 7:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] baffled on error_repo
Apologies to anyone also subscribed to php.xml.dev, who will have read this
earlier, but it doesn't seem as frequently read as this news group... so I
am reposting...
Hi
I want to write a function that will take any SQL query as a parameter, and
generate XML that represents the recordset.
e.g. "
"Bas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Any help appreciated.
here is one general article about it:
http://www.phpbuilder.com/columns/akent2926.php3
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Grab the time at the beginning of the page execution and then grab the time
at the very end. Subtract the two and you have the amount of time the page
took to execute.
-M
-Original Message-
From: Bas [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 11:50 AM
To: [EMAIL PROTECTED]
On Sunday 26 October 2003 12:19 pm, Gerard Samuel wrote:
> I have a common included file with error_reporting set to 0
> If I do a var_dump(error_reporting()) right after it it returns 0
> In a file that includes this common file, if I var_dump(error_reporting())
> there it return 2047, which I bel
On Sunday 26 October 2003 06:45 pm, Gerard Samuel wrote:
> On Sunday 26 October 2003 12:19 pm, Gerard Samuel wrote:
> > I have a common included file with error_reporting set to 0
> > If I do a var_dump(error_reporting()) right after it it returns 0
> > In a file that includes this common file, if
php-general Digest 26 Oct 2003 16:50:32 - Issue 2378
Topics (messages 167605 through 167632):
Re: ADSI & PHP
167605 by: Evan Nemerson
167608 by: Pc Technics, Inc.
Re: reading/parsing file names
167606 by: Evan Nemerson
167627 by: Curt Zirzow
Re: limits on va
Any help appreciated.
Regards,
Bas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am experiencing a strange error while using PHP 4.3.4RC2.
In the apache2 log, I read:
fatal: cannot realloc() 1937201923 bytes.
I do NEVER try to allocate such memory.
I think the problem is related to some serialize/unserialize() code I am
using (in fact, removing serialize/unserialize bl
Hi all,
I'm trying to write a script to get the next last friday of the month and I
am failing miserably. It keeps giving me October 10th. So, I scrapped it.
Basically, I just want to show what the last friday of the month is, and if
that date has already passed, show the last friday of the next
Evan Nemerson wrote:
Search for 'doomsday algorithm' on google. Once you grok it, you should be
able to figure out the last friday quite easily.
On Sunday 26 October 2003 11:37 am, OrangeHairedBoy wrote:
Hi all,
I'm trying to write a script to get the next last friday of the month and I
am f
if you want to use xml and php you can use soap and then you can
incorporate other languages as well...making soap the common protocol
via http.
most languages support soap implementations of one sort. should be
worth your time to look into soap.
--
Ray
On Sun, 2003-10-26 at 12:44, Dan McCull
Simon Fredriksson wrote:
Hiya fellow PHP coders!
I have a problem. I need a function to parse mIRC-colorcodes with PHP.
Unfortunaly, I'm not capable to do this myself (or I'm thinking too
advanced or something).
The code is built like this; chr(3) starts the color formating. After
that sign, a
> OrangeHairedBoy wrote:
> >Basically, I just want to show what the last friday of the month is, and if
> >that date has already passed, show the last friday of the next month.
>
> You can get the number of days in a month from date()
>
> Now you know that the last Friday of the month will be at
* Thus wrote Decapode Azur ([EMAIL PROTECTED]):
> hi, I have the warning message below.
> In which conf file can I set session.bug_compat_42 or
> session.bug_compat_warn to off?
> And where can I find this conf file?
Just add the lines to the php.ini that is being used:
session.bug_compat_42 = O
Hi,
I got a small question concerning a parser I'm working on.
While the parser goes through the text it hits different tokens, which are
the processed by functions.
There are global settings which set if a function should be called or not.
(For example one time I do not want to edit token A, th
Mark Roberts wrote:
I have a client that maintains a MySql database on a webserver. They want to
import data into the database by uploading a Excel spreadsheet (most likely
saved in a .csv format). I want to import the data directly into the data
table via a php script. It appears that I should be
On Sun, 26 Oct 2003 14:01:36 -, you wrote:
>How can I get the file size of an image in KB, I know how to get the width
>and height of an image using the getimagesize(); but not sure how to get the
>image file size.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=php+filesize
http://www
How can I get the file size of an image in KB, I know how to get the width
and height of an image using the getimagesize(); but not sure how to get the
image file size.
Many thanks in advance.
awlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
What i meant was
Web , ftp, ssh, telnet, jabber, imap, pop, smtp etc or proprietory? :-)
if you are talking about a web server, there were two threads on POST to
a web serving using PHP this week. You might find them usefull. You
might be interested to know that fopen can also work with urls
D
Linux box to Linux box. Running PHP 4.1+ The script its connecting to
would reside on one of my servers.
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 8:32 AM
To: Dan McCullough
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] CURL remote s
What kind of server?
Dan McCullough wrote:
I have an install script that verifies someones registration key and
information against my client database and installs or patches, or whatever
else. I'm new with CURL but is there away to get back a response from the
server that your are querying back
are you getting any 1xx status codes from the web server?
Cosmin wrote:
I'm trying to make an application using XML-RPC, and I have the
following problem: I use fsockopen() to simulate a POST to my local
web-server. All goes very well except it's very very slow. Here is my
code maybe someone coul
Hi Chris,
Nachricht vom Samstag, 25. Oktober 2003, 19:06:10:
> --- Timo Boettcher <[EMAIL PROTECTED]> wrote:
>> > http://shiflett.org/dev/php-general/ampersand.php
>>
>> can you put the source of that online, too?
> You can view the source in your browser to see the HTML, which is
> the relevant
Hi,
session_start has to be the first command this time. try again and the result will
look better, maybe explaining.
so it should look like:
angel
On Sun, 26 Oct 2003 17:47:38 +0800
"Manisha Sathe" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> do u mean to say put this codes in php ?
> I tried to
Luis Lebron wrote:
Here is the frameset:
and here is the form:
1
2
3
4
and here is the relevant lines of browse.php
$category=$_POST["category"];
$query="Select username, age, height, eyeColor, haircolor, build, id from
users where category='$category'";
Well y
David Otton wrote:
On Sat, 25 Oct 2003 08:55:15 -0700, you wrote:
my god man, do you know what indenting is?
Uhm... it's that thing I did with 4-space tabs, all the way down.
Allman-style, not K&R, for what it's worth.
that confused the heck out of me.
Mailer problem?
This
David Otton wrote:
On Sat, 25 Oct 2003 11:52:53 +0300, you wrote:
I'm getting output from program I run (exec) to the web page.
How can I avoid this ?
Did you even look at the manual?
http://uk.php.net/manual/en/ref.exec.php
escapeshellarg -- escape a string to be used as a shell argument
esc
Hi,
do u mean to say put this codes in php ?
I tried to put it in second.php following is the msg -
--
string(5) "EGPCS" bool(false)
Notice: Undefined variable: _SESSION in C:\Project
Codes\Vanderveer\www\testPHP\second.php on line 4
NULL
Warning
It works well on linux means it shows me o/p as 'Manisha' but on local
Win2kserver, it gives error.
I tried to make use of error_reporting(0); in second.php but then screen
becomes blank, it does not show me the output as "Manisha"
manisha
"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message
n
Your Linux server probably has error_reporting set to 0, which is usually a
good idea for production environments. To supress the error messages without
modifying your php.ini, do error_reporting(0). Take a look in your php.ini
file- the error_reporting directive will have lots of comments aroun
mail function cannot do stmp-auth, but there are classes that can, check
out www.phpclasses.org/mimemessage
Trell wrote:
Hello, first time on the list, and I'm trying to learn PHP.
Here is my setup, 2 servers, 1 is the MTA and 1 is the Web Server.
The MTA is a qmail server with smtp-auth that ne
Hello, first time on the list, and I'm trying to learn PHP.
Here is my setup, 2 servers, 1 is the MTA and 1 is the Web Server.
The MTA is a qmail server with smtp-auth that needs to have a user
name and password supplied to it to accept the mail for delivery.
How do I tell php to send the a usern
var_dump(ini_get('variables_order'));
var_dump(isset($_SESSION));
var_dump($_SESSION);
?
On Sunday 26 October 2003 01:43 am, Manisha Sathe wrote:
> It works well on linux means it shows me o/p as 'Manisha' but on local
> Win2kserver, it gives error.
>
> I tried to make use of error_reporting(0);
I am trying to use session but it seems it does not work on win2k server,
the same runs on linux.
following is my first php
---
--
following is the second php
-
but it is always giving me following error msg
Notice: Undefined index: name in
76 matches
Mail list logo