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
Hmmm I _think_ it depends on size_t, which (IIRC) is typically typdef'd as an
unsigned long int. I say that because there are macros (like ZEND_SET_SYMBOL)
that do strlen(name) all over the place. Here's an except from limits.h:
/* Maximum value an `unsigned long int' can hold. (Minimum is 0.)
A little something I whipped up to avoid my zoology homework (I /really/ don't
care that the damn sperm of nematodes are unusual because they lack a
flagellum and acrosome). Conclusion: substr is faster than preg_match
[tadpole tadpole]$ php -q ./bench.php
substr: 3.6424000263214
PCRE: 5.12138
Okay I'm no expert for windows- I had to look up ADSI and found
http://www.microsoft.com/windows2000/techinfo/howitworks/activedirectory/adsilinks.asp
which mentions LDAP. Take a look at php.net/ldap and see if it does what you
need.
On Saturday 25 October 2003 09:24 am, Pc Technics, Inc. wro
Hi,
Are there any limits on the length a variable or classname may be in
PHP? I was unable to find anything in the manual, and my tests found
that a variable over 2000 characters long still caused no error or problems.
This is important because phpDocumentor 2.0 will be using a database to
ca
>My query output is about 20 to 30 records only. Instead of making the
>visitors scroll the whole page, can I make a scrolling table with the
>page such that the visitor scroll the results output table only?
This isn't strictly a PHP question, but you may want to look into the HTML
iframe element,
$ telnet localhost 80
Cheba wrote:
That's what I've try to tell You... And figure ot for myself.
BTW, How did You get the headers?
Marek Kilimajer wrote:
No, I copypasted as it is, only chaged the charset. But if I comment
it out I get garbage. Now that I checked the headers apache sends I
see
On Sat, Oct 25, 2003 at 04:16:49PM -0700, koly wrote:
:
: [EMAIL PROTECTED] (Koly) wrote:
: >
: > I've got a list of files in a directory, and I'd like to get a only of
: > filenames that end in ".jpg", however, exlude the files that end in
: > ".thumb.jpg"
: >
: > ex:
: > file.php
: > index.h
That's what I've try to tell You... And figure ot for myself.
BTW, How did You get the headers?
Marek Kilimajer wrote:
No, I copypasted as it is, only chaged the charset. But if I comment
it out I get garbage. Now that I checked the headers apache sends I
see why it it's so:
HTTP/1.1 200 OK
Date
koly wrote:
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Koly) wrote:
my problem:
I've got a list of files in a directory, and I'd like to get a only of
filenames that end in ".jpg", however, exlude the files that end in
".thumb.jpg"
ex:
file.php
index.htm
photo.jpg
photo.thumb.jpg
etc
No, I copypasted as it is, only chaged the charset. But if I comment it
out I get garbage. Now that I checked the headers apache sends I see why
it it's so:
HTTP/1.1 200 OK
Date: Sat, 25 Oct 2003 23:21:58 GMT
Server: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) PHP/4.3.3
X-Powered-B
php.net/substr
php.net/ereg
php.net/preg_match
foreach ( $files as $filename )
if ( substr($filename, -4) == '.jpg' )
array_push($jpegs, $filename);
Keep in mind, though, that not all JPEG files end with jpg. There is also jpe
and jpeg, and you have to consider case sensi
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Koly) wrote:
> my problem:
> I've got a list of files in a directory, and I'd like to get a only of
> filenames that end in ".jpg", however, exlude the files that end in
> ".thumb.jpg"
>
> ex:
> file.php
> index.htm
> photo.jpg
> photo.thumb.
Jonathan Villa wrote:
$msg .= "From: [EMAIL PROTECTED]
Content-Type: text/plain\r\n"
PHP is retaining the implicit linefeed in the text so there is a
blank line between From and Content-Type, the end-of-header indicator.
(You must have a dos-ish system.)
Change it to:
$msg .= "From: [
Have You commented out Header() function?
Marek Kilimajer wrote:
Please reply to the list, your chance of getting answer will increase.
Use reply all button if Netscape/7.02 has it.
I tried you example, except that my editor saved the page in unicode,
so I had to change windows-1251 to utf-8.
Your question has been answered, I just want to add that you should lock
your table before this query and release the lock after the new row is
inserted.
Joao Andrade wrote:
Aloha!
I have a script that inserts a new row in a table called "quotations",
which has a primary key called "quo
Frank Tudor wrote:
I restart the server and then go to another computer and put in
the URL and no password box comes up.
Add this to the [virtual]host's section:
AllowOverride AuthConfig Options
and restart httpd.
--
jimoe at sohnen-moe dot com
--
PHP General Mailing List (http://www.php.n
Please reply to the list, your chance of getting answer will increase.
Use reply all button if Netscape/7.02 has it.
I tried you example, except that my editor saved the page in unicode, so
I had to change windows-1251 to utf-8. Then it displayed correctly.
Cheba wrote:
Ok. Try Yourself.
Hea
DvDmanDT --
...and then DvDmanDT said...
%
...
% Example:
% $zipfile="uploaded.zip";
% $zip=new PclZip($zipfile);
% $file_list= $zip->listContent();
[snip]
Aha! Now I see!
Thanks *so* much! I'll try it out and let you know how it goes :-)
HAND
:-D
--
David T-G * There
On Sat, 25 Oct 2003 20:31:37 -0200, you wrote:
>When I enter:
>
>SELECT MAX(quotation_id)+1 from quotations
>
>I get simply the number 7 (which is ok)
>
>But when I do:
>
>$new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations")
>
>I get $new_key = Resource id #3
L
my problem:
I've got a list of files in a directory, and I'd like to get a only of
filenames that end in ".jpg", however, exlude the files that end in
".thumb.jpg"
ex:
file.php
index.htm
photo.jpg
photo.thumb.jpg
etc
how can I count only those files that end with ".jpg" ?
Any help appreciate
Joao Andrade wrote:
Aloha!
I have a script that inserts a new row in a table called "quotations",
which has a primary key called "quotation_id". "quotation_id" is an int(11)
type. When I enter:
SELECT MAX(quotation_id)+1 from quotations
I get simply the number 7 (which is ok)
But
- Original Message -
From: "Joao Andrade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 26, 2003 12:31 AM
Subject: [PHP] manual key generation
>
> Aloha!
>
> I have a script that inserts a new row in a table called "quotations",
> which has a primary key call
That was the first mistake I noticed, now I see it was completely wrong,
it should be:
Cheba wrote:
It does'nt work.
Marek Kilimajer wrote:
Try
;)
Cheba wrote:
Hi!
I have to use windows-1251 encoding for my pages. But just inserting
is not enough. What shold I do?
--
PHP General Mail
Aloha!
I have a script that inserts a new row in a table called "quotations",
which has a primary key called "quotation_id". "quotation_id" is an int(11)
type. When I enter:
SELECT MAX(quotation_id)+1 from quotations
I get simply the number 7 (which is ok)
But when I do:
Try
;)
Cheba wrote:
Hi!
I have to use windows-1251 encoding for my pages. But just inserting
is
not enough. What shold I do?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 25 Oct 2003 23:19:33 +0300, you wrote:
>I have to use windows-1251 encoding for my pages. But just inserting
> is
>not enough. What shold I do?
Meta tags are generally substitutes for headers. Declare the content-type
with a header() statement. Oh, and you have a typo in "enncoding".
(
Hi!
I have to use windows-1251 encoding for my pages. But just inserting
is
not enough. What shold I do?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I have a internet community running which is getting pretty popular. The
problem is, that my knowledge ends at certain points and I cant find any
info on the net on that. For example what to do with all the apache
logdata (200MB each day). The stats tool I am using (sawmill 6.4.x)
ta
I have an application that does not require a user to log in. But, they do
enter their email address and their dept. manager's email address. I want to
send an email to the dept. manager that contains a personalized URL so they can
click on that and see a page relevant to what the employee entered.
Okay for those interested the reason session_start()
wasn't working was b/c in OpendBSD Apache runs in a
chroot by default. So you have to change put a 'tmp/
directory in the ServerRoot of the web server. You
also have to change your include paths and stuff to
something inside the ServerRoot.
-
and I suppose you think pine or mutt is a manly mans mail program?
Well I happen to use those clients also, but not for this list
Jim
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 25, 2003 9:09 AM
Subject: Re: [PHP] Trying to
Jesus. How drunk were you when you concocted this mess?
Joachim
Tom Wollaston wrote:
I have been trying to write some code for a simple menu system. The idea was
that every item on a menu should be tied to anouther to give a menu
structure.
To do this I have tried to use the following code. Some
--- 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. If you see the HTML entity for an ampersand in your browser's loc
Hi Chris,
Nachricht vom Samstag, 25. Oktober 2003, 18:28:27:
> --- Timo Boettcher <[EMAIL PROTECTED]> wrote:
>> > I find that *very* hard to believe. I'm not aware of any browser
>> > that mishandles HTML entities. Basically, when you say this:
>> >
>> > action="/mypage.php?para1=val1¶2=val2"
Hi All,
I have a login page that which verifies he username & password against a
MySql database and then passes the username to another page as a session.
I created this on my PC, which is running PHP version 4.3.2, and it works
with no problem.
My host has the following set on the server which
Timo Boettcher wrote:
It will not work. One of the requirements of my app is that I can
place a bookmark on any page and return to it. That wouldn't work with
hidden fields, would it?
BTW, I am using http-post.
It will work. Change your form method from post to get, and drop your
variables from
--- Timo Boettcher <[EMAIL PROTECTED]> wrote:
> It will not work. One of the requirements of my app is that I can
> place a bookmark on any page and return to it. That wouldn't work
> with hidden fields, would it?
It would if you use the GET method as someone had suggested. Basically, this is
how
Timo Boettcher wrote:
Marek's right, and this is the case for every browser I know of.
In this case, you can specify para1 and para2 as hidden form
variables, and it will work.
It will not work. One of the requirements of my app is that I can
place a bookmark on any page and return to it. That w
Hi Chris,
Nachricht vom Samstag, 25. Oktober 2003, 18:13:10:
> --- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
>> >
>>
>> Get variables in action URL don't work with get method, at least in
>> Mozilla.
> Marek's right, and this is the case for every browser I know of.
> In this case, you can s
--- Timo Boettcher <[EMAIL PROTECTED]> wrote:
> > I find that *very* hard to believe. I'm not aware of any browser
> > that mishandles HTML entities. Basically, when you say this:
> >
> > action="/mypage.php?para1=val1¶2=val2"
> >
> > Your browser's HTTP request line will appear as:
> >
> > /my
Anyone know if its possible to use ADSI with PHP? I can not seem to find any
good articles which explain how to convert ASP to PHP using the COM
properties of PHP. I would really like to write this in PHP, rather than
ASP.
Thanks in advance
- Jeremy
Pc Technics, Inc.
www.pc-technics.com
1
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?
Thisparagraph
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> >
>
> Get variables in action URL don't work with get method, at least in
> Mozilla.
Marek's right, and this is the case for every browser I know of.
In this case, you can specify para1 and para2 as hidden form variables, and it
will work.
Hope
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
escapeshellcmd -- esca
* Thus wrote Jim Lucas ([EMAIL PROTECTED]):
> my god man, do you know what indenting is?
>
> that confused the heck out of me.
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
Use a real email client and you wont be so confused. His
indentation was perfectly fine.
Now, top posting over 114 li
my god man, do you know what indenting is?
that confused the heck out of me.
Jim Lucas
- Original Message -
From: "David Otton" <[EMAIL PROTECTED]>
To: "Tom Wollaston" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, October 25, 2003 8:53 AM
Subject: Re: [PHP] Trying to organ
On Sat, 25 Oct 2003 09:17:46 +0100, you wrote:
>I have made this function which should be quite simple but doesn't seem to
>do what it is meant to.
>What I want it to do is create an array where there is a numbered key (the
>rows of the table) and the colume headings as the second key.
First, you
Hi Marek,
Nachricht vom Samstag, 25. Oktober 2003, 16:42:49:
> Hi, I'm not sure if this was asked, but what browser are you using?
Opera 7.21
IE 6.0.2800.1106
> I get everything correctly and I don't remember any browser with
> this kind of bug. Also, can you post the relevant part of page source
php-general Digest 25 Oct 2003 15:32:34 - Issue 2376
Topics (messages 167518 through 167559):
Re: Post form variables to a frame
167518 by: Luis Lebron
167519 by: Evan Nemerson
167520 by: Pablo Gosse
167546 by: Luis Lebron
Re: Code optimization: single vs. do
Aha, I'm using PHP 4.1.2 with trans-sid enabled for browsers that don't
use cookies.
Now that I know where to look, I found that putting ob_start() at the
beginning seems to help.
kind regards,
bill
David Otton wrote:
On Fri, 24 Oct 2003 15:42:45 -0400, you wrote:
Tried breaking up the e
header() refresh/redirect with delay.
---
http://www.example.com');
exit();
}
ob_end_flush();
?>
---
header() refresh/re-direct without delay
---
http://www.example.com');
exit();
}
ob_end_flu
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 through CURL?
--
PHP General Mailing List
On Saturday 25 October 2003 10:54 am, Joao Andrade wrote:
> Hi there people,
>
> I'm looking for a function that will redirect a browser to another page
> after a PHP scrip has run. I tried serching for it in the doc but found
> nothing. It shall be similar to Tcl's "ns_returnredirect".
>
http://us2.php.net/manual/en/function.header.php
Joao Andrade wrote:
Hi there people,
I'm looking for a function that will redirect a browser to another page
after a PHP scrip has run. I tried serching for it in the doc but found
nothing. It shall be similar to Tcl's "ns_returnredirect"
Hi there people,
I'm looking for a function that will redirect a browser to another page
after a PHP scrip has run. I tried serching for it in the doc but found
nothing. It shall be similar to Tcl's "ns_returnredirect".
Thanx.
Joao Penna Andrade
Undergraduate, Mechanical Engineering
On Sat, 2003-10-25 at 17:42, Curt Zirzow wrote:
> * Thus wrote Cosmin ([EMAIL PROTECTED]):
> > 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
Hi, I'm not sure if this was asked, but what browser are you using? I
get everything correctly and I don't remember any browser with this kind
of bug. Also, can you post the relevant part of page source?
Timo Boettcher wrote:
Yes. When I use
everything works ok, the form is submitted to th
* Thus wrote Cosmin ([EMAIL PROTECTED]):
> 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 could tell me what I'm doing
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 could tell me what I'm doing wrong:
=
$url
* Thus wrote Jough Jeaux ([EMAIL PROTECTED]):
>
> There is room left on /tmp. Now that means the 'tmp'
> directory under the root directory on the filesystem
> right? I don't have to make a directory called 'tmp'
> in the DirectoryRoot or someplace else do I?
df -h /tmp will ensure you are loo
Hi Chris,
Nachricht vom Freitag, 24. Oktober 2003, 21:12:06:
> --- Timo Boettcher <[EMAIL PROTECTED]> wrote:
>> I am trying to get my pages through the w3c-validator for html.
>> It doesn't like my
>>
>> Changing & to & got my page through the validator, but broke my
>> app, which seems not to b
Hi Marek,
Nachricht vom Freitag, 24. Oktober 2003, 19:17:36:
> Whoops. The first sentense should be a question.
> Marek Kilimajer wrote:
>> It breaks your server side scripts. & should be translated to & by
>> the browser and never get to php.
>>
>> Timo Boettcher wrote:
>>
>>> Hi,
>>>
>>>
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'";
thanks,
Luis
---
I'm not using Windows, I'm using OpenBSD.
--- Ed van der Mark <[EMAIL PROTECTED]> wrote:
> If you are using Windows try C:\windows\temp as /tmp
> directory.
> Ed
>
> "Jough Jeaux" <[EMAIL PROTECTED]> schreef in
> bericht
>
news:[EMAIL PROTECTED]
> > The very simple following script:
> > > sessio
There is room left on /tmp. Now that means the 'tmp'
directory under the root directory on the filesystem
right? I don't have to make a directory called 'tmp'
in the DirectoryRoot or someplace else do I?
I also went ahead and chmod 777 /tmp to see if that
would help. It didn't. I had never use
Please, i d like to compile the php because i need to use Interbase
I really dont know how to do it !
Has anyone a tutorial to compile it correctly ?
thanks a lot any help
Gugao
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Shmuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm getting output from program I run (exec) to the web page.
> How can I avoid this ?
>
> These I've tried:
>
> error_reporting = E_ERROR
>
> and even this:
> error_reporting = ~E_ALL
>
> display_errors = Off
>
> Any ideas
Marek Kilimajer wrote:
John Nichel wrote:
Sure it is. Change the method of the form from a 'post' to a 'get'
Get variables in action URL don't work with get method, at least in
Mozilla.
Right, my bad. He'd have to move them into hidden fields to be in the
URL query string
...
Can you upload the problematic page somewhere. I don't believe &
entity is the real problem.
Timo Boettcher wrote:
Hi Marek,
Nachricht vom Samstag, 25. Oktober 2003, 13:02:06:
Timo Boettcher wrote:
Its not easy to get the value of a hidden field in a bookmark.
Don't use & in bookmarks, use ju
John Nichel wrote:
Sure it is. Change the method of the form from a 'post' to a 'get'
Get variables in action URL don't work with get method, at least in Mozilla.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Timo Boettcher wrote:
Hi John,
Nachricht vom Freitag, 24. Oktober 2003, 19:06:33:
Timo Boettcher wrote:
Hi,
I am trying to get my pages through the w3c-validator for html.
It doesn't like my
Changing & to & got my page through the validator, but broke my
app, which seems not to be getting
Hi Marek,
Nachricht vom Samstag, 25. Oktober 2003, 13:02:06:
> Timo Boettcher wrote:
>> Its not easy to get the value of a hidden field in a bookmark.
> Don't use & in bookmarks, use just &.
But when I say "Bookmark this Page" (in any browser) that gets me a
bookmark on the url, and not on hidde
Timo Boettcher wrote:
Its not easy to get the value of a hidden field in a bookmark.
Timo
Don't use & in bookmarks, use just &.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are using Windows try C:\windows\temp as /tmp directory.
Ed
"Jough Jeaux" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> The very simple following script:
> session_start();
> ?>
>
> Produces an error that says it can't write the file
> for the session.
>
> The permissions
// -
---
// Function : PclZip()
// Description :
// Creates a PclZip object and set the name of the associated Zip
archive
// filename.
// Note that no real action is taken, if the archive does not exist i
I'm getting output from program I run (exec) to the web page.
How can I avoid this ?
These I've tried:
error_reporting = E_ERROR
and even this:
error_reporting = ~E_ALL
display_errors = Off
Any ideas ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Hi Pablo,
Nachricht vom Freitag, 24. Oktober 2003, 19:14:31:
> Hi, Timo. Why can't use use hidden fields instead of appending the
> values to the url? It would be the same to access them via
> $_GET['para1'] $_GET['para2] (unless you were using post as your method,
> in which case it would simp
Hi John,
Nachricht vom Freitag, 24. Oktober 2003, 19:06:33:
> Timo Boettcher wrote:
>> Hi,
>>
>> I am trying to get my pages through the w3c-validator for html.
>> It doesn't like my
>>
>> Changing & to & got my page through the validator, but broke my
>> app, which seems not to be ge
I have made this function which should be quite simple but doesn't seem to
do what it is meant to.
What I want it to do is create an array where there is a numbered key (the
rows of the table) and the colume headings as the second key.
It doesn't seem to work. If I set $pid=0 then I get no results
It is not clear if you want to print on the server or client side. If on
the server side use lpr command. Client side use javascript to prompt
user to print. What do you mean window.print() is inconsistent?
Manilal K M wrote:
Hello everybody,
Can anyone give information regarding how to print
Denis L. Menezes wrote:
My query output is about 20 to 30 records only. Instead of making the
visitors scroll the whole page, can I make a scrolling table with the page
such that the visitor scroll the results output table only?
This has nothing to do with PHP. This is a HTML question. This list
Hello everybody,
Can anyone give information regarding how to print a file in plain text format
using PHP. I am using RedHat Linux9.0, httpd-2.0.40-21 and php-4.2.2-17.
I think that print support is not given to linux. I want to know that whether there is
any developments in this reg
Is there any space left on /tmp partition?
Jough Jeaux wrote:
The very simple following script:
Produces an error that says it can't write the file
for the session.
The permissions for /tmp are rwxrwxrwt
Any ideas on how I can fix this?
Thanks!
These are the exact errors:
Warning:
open(/tmp/
84 matches
Mail list logo