Hello Evan,
I imagined that the PHP LDAP functions would work, however, this would
only work on LDAP compliant directory servers, such as Microsoft and Novell.
This would not work however for a local NT machine which is not joined to a
domain. ADSI has a 'WinNT:// provider for this, where as
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
---
?
session_start();
$_SESSION[name]= Manisha;
?
--
following is the second php
?
session_start();
echo $_SESSION[name];
?
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
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
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
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
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:
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
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 KR, for what it's worth.
that confused the heck out of me.
Mailer problem?
This
Luis Lebron wrote:
Here is the frameset:
frameset rows=80,*,30 cols=* frameborder=NO border=0
framespacing=0
frame src=header.php name=topFrame scrolling=NO noresize
frameset rows=* cols=250,* framespacing=0 frameborder=NO
border=0
frame src=browse.php name=leftFrame scrolling=AUTO
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:
?
session_start();
var_dump(ini_get('variables_order'));
var_dump(isset($_SESSION));
var_dump($_SESSION);
?
angel
On Sun, 26 Oct 2003 17:47:38 +0800
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 part.
I
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
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
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
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
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:
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=enie=UTF-8oe=UTF-8q=php+filesize
Mark Roberts wrote:
snip
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
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,
* 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 = On
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 most 7
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,
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
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
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
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
Any help appreciated.
Regards,
Bas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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 I
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
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]
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:
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.
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
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:
recordset
record id=1 name=Mr Smith purchases=2/
record id=2 name=Mr Jones
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
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
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 number
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 --
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
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
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
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. It
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.
I do
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 as
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?)
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
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
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
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
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
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
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
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
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
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
* 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 closer,
recordset
record id=1 name=Mr Smith purchases=2/
record id=2 name=Mr Jones purchases=25/
record id=3 name=Mr Davis purchases=7/
/recordset
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
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
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
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)
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
?php
$var1 = Hello;
$var2
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 stored
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?
What have
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
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
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
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 :
Hey people,
Something odd is happening :) I've this form on a page:
form method=post action=\basics\quotation-add
table
tr
thAuthor
tdinput type=text size=30 name=author_name
/tr
tr
thNew Category
tdinput type=text size=30 name=new
/tr
tr
thCategory
tdselect name=category
?php
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
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, 2003
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
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 location to
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:
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
76 matches
Mail list logo