[PHP] PHP 5, LDAP/Active Directory

2005-09-13 Thread Joe Wollard
Greetings all: I've looked through php.net and scoured Google for a solution to an issue I'm having with PHP and LDAP but have so far found nothing. I'm trying to build an intranet site that uses the company LDAP (Active Directory really) service but I can't seem to get around the

Re: [PHP] can't connect to mysql

2005-09-13 Thread Gustav Wiberg
Hi there! What code are you using? Try with the mysqli... http://se2.php.net/manual/en/ref.mysqli.php /G - Original Message - From: blackwater dev [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, September 13, 2005 3:09 AM Subject: [PHP] can't connect to mysql I

[PHP] Re: Best way to mass mail

2005-09-13 Thread Joshua May
You have to be careful, though, because I had this problem.. I had PHP running as a CGI on the host with Apache, and Apache had a nasty habit of terminating the CGI communicationg before PHP had finished mailing everyone, even if set_time_limit(0); was set (well, even if

Re: [PHP] can't connect to mysql

2005-09-13 Thread viraj
if i'm not mistaken, there is nothing to do with the php coding. this is totally because of your mysql server, simply your mysql server is not started yet. sometimes this may be a bug. http://bugs.mysql.com/bug.php?id=11380 or try this http://www.faqts.com/knowledge_base/view.phtml/aid/3948

[PHP] Re: Problem w/ reading a txt file.

2005-09-13 Thread David Robley
[EMAIL PROTECTED] wrote: Problem w/ reading a txt file. The error I get is Warning: opendir(/home/pudlz/public_html ): failed to open dir: No such file or directory Here's my code:: $main = file('folders.txt'); $counter = count($main); for($i=0;$i$counter;$i++) {

Re: [PHP] Problem w/ reading a txt file.

2005-09-13 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Problem w/ reading a txt file. The error I get is Warning: opendir(/home/pudlz/public_html ): failed to open dir: No such file or directory Here's my code:: $main = file('folders.txt'); $counter = count($main); for($i=0;$i$counter;$i++) { if

[PHP] [from internals] Re: ref fix revisited

2005-09-13 Thread Jochem Maas
hello Rasmus, sorry to interrupt ... but ... could you possibly spare a moment to explain why the SquirrelMail example you gave is 'dumb' code? (I for one would like to avoid writing dumb code wherever possible, and it looks a lot like I line I could have written!) many thanks and regards,

Re: [PHP] [from internals] Re: ref fix revisited

2005-09-13 Thread Jasper Bryant-Greene
Jochem Maas wrote: hello Rasmus, sorry to interrupt ... but ... could you possibly spare a moment to explain why the SquirrelMail example you gave is 'dumb' code? (I for one would like to avoid writing dumb code wherever possible, and it looks a lot like I line I could have written!) many

[PHP] Re: PHP - LDAPS query

2005-09-13 Thread Vedanta Barooah
is it a wrong question? please help... On 9/12/05, Vedanta Barooah [EMAIL PROTECTED] wrote: Hello All, I think documentation is very sparse on PHP LDAPS (LDAP over SSL). I am in a situation where I need to auth against the LDAP server over SSL. I have the server's certificate database in

[PHP] Re: PHP 5, LDAP/Active Directory

2005-09-13 Thread Mark Rees
I've looked through php.net and scoured Google for a solution to an issue I'm having with PHP and LDAP but have so far found nothing. I'm trying to build an intranet site that uses the company LDAP (Active Directory really) service but I can't seem to get around the Operations error and other

[PHP] Re: [please ignore!] Re: [PHP] [from internals] Re: ref fix revisited

2005-09-13 Thread Jasper Bryant-Greene
Jochem Maas wrote: Jasper Bryant-Greene wrote: ?php $value_parts = split('/\w/', trim($value)); $value = strtolower($value_parts[0]); ? ... which has the advantage of being a bit more readable too. debatable ... no bog deal either way ... $value = split('/\w/', trim($value)); $value =

[PHP] [please ignore!] Re: [PHP] [from internals] Re: ref fix revisited

2005-09-13 Thread Jochem Maas
Rasmus please ignore my last mail, I was being blind and stupid. Jasper Bryant-Greene wrote: Jochem Maas wrote: hello Rasmus, sorry to interrupt ... but ... could you possibly spare a moment to explain why the SquirrelMail example you gave is 'dumb' code? (I for one would like to avoid

[PHP] CBL Partial Updater Released!

2005-09-13 Thread Kazuho Oku
Hi all, This is the initial announcement of CBL Partial Updater, an PHP/AJAX library. Unlike other libraries, all operations are controlled at the server side. BY using the library, you can convert existing PHP scripts into AJAX apps in less than a minute, just by adding a few lines of code.

Re: [PHP] STDERR not opened with php 5.0.5

2005-09-13 Thread Edin Kadribasic
Hi, Perhaps your /usr/local/bin/php505 is a cgi instead of cli? Edin Florent Monnier wrote: Hi, on http://www.php.net/manual/en/features.commandline.php is writen: STDERR - An already opened stream to stderr. This saves opening it with: ?php $stderr = fopen('php://stderr', 'w'); ?

[PHP] CBL Partial Updater Released!

2005-09-13 Thread Kazuho Oku
Hi all, This is the initial announcement of CBL Partial Updater, an PHP/AJAX library. Unlike other libraries, all operations are controlled at the server side. BY using the library, you can convert existing PHP scripts into AJAX apps in less than a minute, just by adding a few lines of code.

RE: [PHP] mktime

2005-09-13 Thread Ford, Mike
On 13 September 2005 00:08, Dan Brow wrote: A little confused with mktime, I'm trying to get how many days are in a year. $year = 2006; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 You're asking for the 0th day of the first month here, which is (guess what!) the last day of

Re: [PHP] incrementing in a for loop

2005-09-13 Thread Burhan Khalid
Peppy wrote: I've searched online and am unable to find how to increment by more than one in a for loop. for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? Everyone has responded with the correct answer, but you do realize that this loop will only run twice? It will print 1,

[PHP] ADODB vs PHP extension

2005-09-13 Thread Dean Maunder
Hi, Can someone tell me what are the differences between ADODB and using the compiled-in MSSQL extension? Which one is faster? What are the benefits/pitfalls of using either? Thanks Dean.

Re: [PHP] Problem with PEAR:SOAP [solved]

2005-09-13 Thread -k.
--- Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Install the HTTP_Request package. That did it. Anyone know why the SOAP package didn't complain about this when i installed it? -k. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best

[PHP] Re: ADODB vs PHP extension

2005-09-13 Thread Jens Schulze
Do you mean the ADODB database abstraction layer for PHP or the original ADODB technology of Microsoft? Jens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session.gc_maxlifetime

2005-09-13 Thread Gustav Wiberg
- Original Message - From: Shaw, Chris - Accenture [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED]; PHP General php-general@lists.php.net Sent: Friday, September 09, 2005 7:21 PM Subject: RE: [PHP] session.gc_maxlifetime -Original Message- From: Gustav Wiberg

Re: [PHP] Problem w/ reading a txt file.

2005-09-13 Thread sub
Yeah, I just cut out almost the code that was working fine. My the full code does a bit more than than that. Thanks all, Andrew Darrow Kronos1 Productions www.pudlz.com - Original Message - From: Burhan Khalid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent:

Re: [PHP] Re: PHP 5, LDAP/Active Directory

2005-09-13 Thread Joe Wollard
On Sep 13, 2005, at 4:17 AM, Mark Rees wrote: I've looked through php.net and scoured Google for a solution to an issue I'm having with PHP and LDAP but have so far found nothing. I'm trying to build an intranet site that uses the company LDAP (Active Directory really) service but I can't seem

[PHP] Modifying data in forms with values

2005-09-13 Thread Robert Sossomon
I have to create registration forms all the time for people in the office and what I keep running into is that I need a way for when they edit a field that the drop-down list of choices is automatically set for the right now. I have 100+ counties in one list, but I don't want to write 100+ if

[PHP] Accessing images in a protected directory

2005-09-13 Thread Brian
I haven't used .htaccess before and am currently having an issue with it. I have a site that has photos from various events on it. Some of the events need to be password protected to view the photos. They enter a password, it gets checked in the MYSQL database and then the php page tries to

[PHP] Re: Accessing images in a protected directory

2005-09-13 Thread M. Sokolewicz
Brian wrote: I haven't used .htaccess before and am currently having an issue with it. I have a site that has photos from various events on it. Some of the events need to be password protected to view the photos. They enter a password, it gets checked in the MYSQL database and then the php

RE: [PHP] Modifying data in forms with values

2005-09-13 Thread Murray @ PlanetThoughtful
I have to create registration forms all the time for people in the office and what I keep running into is that I need a way for when they edit a field that the drop-down list of choices is automatically set for the right now. I have 100+ counties in one list, but I don't want to write 100+

[PHP] Re: Modifying data in forms with values

2005-09-13 Thread Aaron Greenspan
Robert, The Lampshade framework (and I'm sure others, too) handles pretty much all of the form controls for you. There' also a specific country() function used to make a drop-down of countries. Using Lampshade, you would only need one line of code in your form: dropdownBox('country',

[PHP] Entering foreign characters into MySQL

2005-09-13 Thread php @ net mines
Hi all I have a bulgarian/spanish excel file that I have to import to a mysql database. Since I can't save it as csv without replacing the foreign chars with (???) I saved it as unicode text. Next, I thought I would replace the (\t) with (;) and all the foreign chars with the #xxx;. The

[PHP] date parsing

2005-09-13 Thread Philippe Reynolds
Greetings all, I am trying to find a function or a way to parse a date that has the following format 2005124 or 20051204. When I have a date that has a single digit (ie month, day) all the date/time function seem to go bizarre. When it is a full 8 digit string everything is fine. When

RE: [PHP] date parsing

2005-09-13 Thread Jim Moseby
Greetings all, I am trying to find a function or a way to parse a date that has the following format 2005124 or 20051204. When I have a date that has a single digit (ie month, day) all the date/time function seem to go bizarre. When it is a full 8 digit string everything is fine.

[PHP] Generating PHP (Admin) Tables

2005-09-13 Thread Lst Recv
One usage of PHP I find over and over is to create table interfaces, usually used by the admin if a site. It's really a shame to have to redo this code over and over. Is there any library or class that can handle it? Good features would include: * Given a SQL SELECT, create an HTML table *

Re: [PHP] date parsing

2005-09-13 Thread Dragan Stanojevic - Nevidljivi
Philippe Reynolds wrote: Greetings all, I am trying to find a function or a way to parse a date that has the following format 2005124 or 20051204. Well, the truth is, computers are stupid, and you need to explain this kind of date format to him by rewriting such date in a way that a

Re: [PHP] Modifying data in forms with values

2005-09-13 Thread Al
Murray @ PlanetThoughtful wrote: I have to create registration forms all the time for people in the office and what I keep running into is that I need a way for when they edit a field that the drop-down list of choices is automatically set for the right now. I have 100+ counties in one list,

[PHP] ini_set()

2005-09-13 Thread Gustav Wiberg
Hi there! I don't get it... From the manual... string ini_set ( string varname, string newvalue ) Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and

Re: [PHP] date parsing

2005-09-13 Thread Philippe Reynolds
Much appreciated all, I was kindda hopping that I missed something, some mysterious function... My solution to this is: if a value like 2005416 to ignore it and only look for 2005/4/16 or 20050416. Cheers Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Accessing images in a protected directory

2005-09-13 Thread Niels Ganser
Unfortunately, you can't pass along a username/password to apache in a simple way. Well, what about http://user:[EMAIL PROTECTED] I personally wouldn't send cleartext passwords to a client's browser which might cache them and stuff, but possible it is. -- PHP General Mailing List

[PHP] glob behavior on OSX

2005-09-13 Thread Luis Magaña
Hi, am using glob in linux to match files like this with no problems: glob(../dbimages/banners/{*.[jJ][pP][gG],*.[gG][iI][fF]},GLOB_BRACE); that matches gif o jpg case insensitive, now this works on linux with no problems, but it does not in OSX. //This works nice in OSX

Re: [PHP] ini_set()

2005-09-13 Thread Richard Lynch
On Tue, September 13, 2005 2:11 pm, Gustav Wiberg wrote: Hi there! I don't get it... From the manual... string ini_set ( string varname, string newvalue ) Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will

[PHP] Deny access from certain hosts

2005-09-13 Thread David Pollack
Hello, I have a problem where someone is illegally linking to my site. There site is in another language so I'm having trouble contacting them. Is there any way that I can use PHP or Apache to stop them from linking to these files directly on there website. This is an example of a log entry

Re: [PHP] Deny access from certain hosts

2005-09-13 Thread Jordan Miller
you need to do it like this: Order Allow,Deny Allow from all Deny from 85.65.154 http://httpd.apache.org/docs/1.3/mod/mod_access.html Jordan On Sep 13, 2005, at 2:30 PM, David Pollack wrote: Hello, I have a problem where someone is illegally linking to my site. There site is in

[PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
hi... anybody have pointers to trying to tell who/how long someone is logged into a system/site. i've thought about setting a session var, but i'm not sure how to read/tabulate this var across the entire group of people who'd be logged in. i've also thought about keeping track in a db tbl..

RE: [PHP] Deny access from certain hosts

2005-09-13 Thread Jim Moseby
Hello, I have a problem where someone is illegally linking to my site. There site is in another language so I'm having trouble contacting them. Is there any way that I can use PHP or Apache to stop them from linking to these files directly on there website. This is an example of a log

Re: [PHP] Deny access from certain hosts

2005-09-13 Thread Aaron Greenspan
Jordan, I have a similar problem where someone is using copyrighted images on my site in a bulletin board. It's not that one specific host is requesting the files--it's people from all over--but rather that I want to block one referring URL using Apache, rather than PHP, since the images are

Re: [PHP] Deny access from certain hosts

2005-09-13 Thread David Pollack
Look at it this way, they have graciously given you full control over a small portion of their website. You should reciprocate with some creative ideas. What I would do first is replace /fonts/images/austrise.jpg on my site with a picture of something REALLY disgusting, and use a different

Re: [PHP] ini_set()

2005-09-13 Thread Gustav Wiberg
- Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Sent: Tuesday, September 13, 2005 9:26 PM Subject: Re: [PHP] ini_set() On Tue, September 13, 2005 2:11 pm, Gustav Wiberg wrote: Hi there! I don't

[PHP] error message while mysqling on php

2005-09-13 Thread Michal Krezolek
I have received an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/mksystem.net when trying to execute $num = mysql_num_rows($result); Please go to http://mksystem.net/phpinfo.php and tell me whether it is due to the version of php I have on

RE: [PHP] error message while mysqling on php

2005-09-13 Thread Jay Blanchard
[snip] I have received an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/mksystem.net when trying to execute $num = mysql_num_rows($result); [/snip] Post a little code and we might be able to help you. It is likely that $result is not the

RE: [PHP] error message while mysqling on php

2005-09-13 Thread Murray @ PlanetThoughtful
I have received an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/mksystem.net when trying to execute $num = mysql_num_rows($result); Please go to http://mksystem.net/phpinfo.php and tell me whether it is due to the version of php I

[PHP] array simple question

2005-09-13 Thread matt VanDeWalle
hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you don't use more command or a pipe of some kind that could be useless in some cases, but I am just wondering,

[PHP] asynchronous PHP to PHP call

2005-09-13 Thread James
I have a PHP script running on server 1. I want it to call another script on server 2 to clean up some files. There may be tons of files and I don't want to wait until the second script is finished. Is there a way to asynchronously call the second PHP script? Right now I'm using fopen() to

Re: [PHP] array simple question

2005-09-13 Thread [EMAIL PROTECTED]
tray print the array this way: echo 'pre'; print_r($array); echo '/pre'; -afan matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you

Re: [PHP] asynchronous PHP to PHP call

2005-09-13 Thread Jasper Bryant-Greene
James wrote: I have a PHP script running on server 1. I want it to call another script on server 2 to clean up some files. There may be tons of files and I don't want to wait until the second script is finished. Is there a way to asynchronously call the second PHP script? Right now I'm

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Jason Barnett
Close: You mix both of these ideas. Create a custom session handler. This handler creates user entries in a database. Then when you want to know how many are online you do a count on the number of user entries in the table. Play around with different gc_probability values to tune the

RE: [PHP] error message while mysqling on php

2005-09-13 Thread Alan Fullmer
I see two things that could be it. #1 your $result is not $result = mysql_query(queryline); Or #2 your syntax on your query line is bad. You can try doing something like this: $query = SELECT * FROM table etc blah; $result = mysql_query($query) or die(mysql_error()); $num =

Re: [PHP] array simple question

2005-09-13 Thread Jordan Miller
please provide code and an example output, and say how this is different than you would like. what you describe is unclear. Jordan On Sep 13, 2005, at 4:04 PM, matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will

Re: [PHP] array simple question

2005-09-13 Thread Jasper Bryant-Greene
matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you don't use more command or a pipe of some kind that could be useless in some cases, but

Re: [PHP] array simple question

2005-09-13 Thread Mike Bellerby
If you want to print the keys for all the arrays in the main array then use allkeys. matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Gustav Wiberg
- Original Message - From: Jason Barnett [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, September 13, 2005 11:25 PM Subject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site.. Close: You mix both of these ideas. Create a custom

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
any code/pointers to this... i've been doing the google/search thing and haven't come across anything which relates to what i'm searching for... so.. any help in this area would be greatly appreciated!! i would have thought there would be articles/open course code/apps on this!! -thanks bruce

[PHP] array question: fixed

2005-09-13 Thread matt VanDeWalle
hey, thanks for jogging my memory about the array_keys ; that was exactly what i wanted, now I don't have to run the program through the more program now, and i got all the names of the arrays in the big array without having half of the info scrolling off the screen. thanks matt -- PHP

[PHP] string tokenization

2005-09-13 Thread babu
Hi, I have different types of main strings seperated by commas(,). I want to tokenize the main string using php's string token function. I have substrings in the main string which are seperated by -. examples: 1. 20,21-24 2. 21-24,20 3. 10,20,21-24,25,26,30 so on the whole the main string is

Re: [PHP] string tokenization

2005-09-13 Thread Luis Magaña
Git the first set of tokens to an array, then walk that array retrieving the subtokens. Regards babu wrote: Hi, I have different types of main strings seperated by commas(,). I want to tokenize the main string using php's string token function. I have substrings in the main string which

[PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ryan A
Hi, I work for a company that makes websites and does custom programming for private indviduals and companies, I also freelance (like many on this list) I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Philip Hallstrom
any code/pointers to this... i've been doing the google/search thing and haven't come across anything which relates to what i'm searching for... so.. any help in this area would be greatly appreciated!! i would have thought there would be articles/open course code/apps on this!! -thanks

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Issues with News sites again...

2005-09-13 Thread Death Gauge
I tried what people recommended but I am having major issues because everyone misunderstood about what I was trying to do. My site has a What's New news poster, which is on every page and just posts two things at a time. Then a have a comic book site, game site, novel site, animation site, and

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Issues with News sites again...

2005-09-13 Thread Jasper Bryant-Greene
Death Gauge wrote: I tried what people recommended but I am having major issues because everyone misunderstood about what I was trying to do. My site has a What's New news poster, which is on every page and just posts two things at a time. Then a have a comic book site, game site, novel site,

[PHP] Re: Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 07:52 PM Ryan A said the following: I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have not seen all that many hosts actually having support for it, so I thought of this little poll

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
ok still have questions regarding how to handle a user/session of a user who kills their browser. in this case, the user's session information would still be in the db for the session handler... am i correct in understanding/assuming that i could iterate through the list of sessions in the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Dragan Stanojevic - Nevidljivi
Ryan A wrote: I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have not seen all that many hosts actually having support for it, so I thought of this little poll :-) [x] blah blah Don't think you'll get

[PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
I suspect I'm far from the first person to have this problem, but I can't seem to find the right search terms to locate the solution. Basically, I'm doing a database query and dumping the results into an array. Then, later, when I try to display the contents of the array, I run into problems.

[PHP] whats wrong in this program.

2005-09-13 Thread babu
$str=10,12,14-18; $tok = strtok($str, ','); while ($tok !== false) { $toks[] = $tok; $tok = strtok(','); } foreach ($toks as $token){ if (strpos($token,'-')){ stringtokenize($token); }else{ $finaltokens[]= $token; } } function stringtokenize($nstr){ $ntok1= strtok($nstr,'-');

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Ben
bruce wrote: as an exercise, i took a look at mambo (the cms) and realized that it doesn't handle users who simply shut down their browser while on the system... thoughts/comments... The only way to deal with such situations is through a garbage collection routine that periodically deletes

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Chris
Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the code you posted produces this problem, then the only possiblities I see are that the mssql

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ryan A
Hey all, Hehe, sorry, didnt mean to ruffle anyones feathersjust reply to me and not the list if you want to. Thanks to everyone who replied, esp those like Manuel Lemos who wrote a pretty long explanation for his reasons, as did [EMAIL PROTECTED] (sorry mate, you didnt leave your name in the

RE: [PHP] trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-13 Thread bruce
i kind of get this!!! however, no one has been able to point me to any kind of code sample/site that actually illustrates how to do this. even from a psuedo code implementation. and as far as i can tell, i still don't have a way of knowing when a session is valid/alive. the session handler

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Issueswith News sites again...

2005-09-13 Thread Death Gauge
In night college courses right now. I'll supply full code and everything when I get home in about 2 hours or so. (Had to re-reply cause for some reason my mail client keeps putting the repliers email in the to box instead of PHP's mailing list url. --Death Gauge How do you gauge your death?!

[PHP] .htaccess

2005-09-13 Thread blackwater dev
I am using .htaccess files throughout my code directory tree to set certain directives such as php_value auto_prepend_file ../lib/libmatrix.php The problem is, they don't work. I have this in apache: Directory usr/local/apache/htdocs/realtors/ Options FollowSymLinks AllowOverride None

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
On 9/13/05, Chris [EMAIL PROTECTED] wrote: Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the code you posted produces this problem, then the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 09:54 PM Ryan A said the following: Manuel also gave me a very good link: http://www.nexen.net/interview/index.php?id=49 although the percentages there might not be totally accurate as is today, coz that may have been a survey some time back, dont know for sure as I dont

RE: [PHP] Re: ADODB vs PHP extension

2005-09-13 Thread Dean Maunder
My apologies, I meant the PEAR ADODB abstraction layer/ -Original Message- From: Jens Schulze [mailto:[EMAIL PROTECTED] Sent: Wednesday, 14 September 2005 12:05 AM To: php-general@lists.php.net Subject: [PHP] Re: ADODB vs PHP extension Do you mean the ADODB database abstraction layer

[PHP] Re: Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
I've changed to PHP5 and not experienced any problems with old code. In fact, the differences and incompatibilities are very minor and most projects should work without any changes. PHP5 features the new Zend Engine 2. It's not yet really faster than the one in PHP4 but has large potential.

Re: [PHP] trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-13 Thread Ben
bruce wrote: my question is still how do i determine for a given session, that a user is still on the site, or that the user is no longer on the site/system. i don't see an automated/system way of doing this. The web is stateless... There is no automated/system way of doing this. You know

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Jasper Bryant-Greene
J B wrote: I've been playing with it and it looks like mssql_fetch_row may be the problem. Right after this line: $line = mssql_fetch_row($result); ...I inserted this line: var_dump($line[0]); ...and this is what I got back: string(20) 3.67124100206018e+17 The actual contents of that

[PHP] Re: .htaccess

2005-09-13 Thread David Robley
blackwater dev wrote: I am using .htaccess files throughout my code directory tree to set certain directives such as php_value auto_prepend_file ../lib/libmatrix.php The problem is, they don't work. I have this in apache: Directory usr/local/apache/htdocs/realtors/ Options

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ben
Manuel Lemos wrote: I guess this should ring a lot of bells for those that expect to develop products targetted to PHP 5, because the numbers seem to show that PHP 5 is a flop, despite PHP 5.0.0 was released more than 1 year ago. I think it points more to hosting providers who don't want to

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Always this stuff about breaking backward compatibility. People seem to think that the change from 4 to 5 means such a lot. In fact the changes from PHP4.0 to PHP4.4 are much more numerous. The backwarr incompatible changes between 4 and 5 fit on asingle page of screen:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Oliver Grätz
Ben schrieb: [...] Hosting providers, which account for the vast majority of hosted domains, are pretty conservative. In Germany they're no that conservative. One of the biggest hosters in Germany (several million domains) allows to chosse between PHP 3, 4.0.6 4.3.x and 5.x via .htaccess

Re: [PHP] Re: .htaccess

2005-09-13 Thread blackwater dev
Thanks David, I just set it to AllowOverride All and restarted apache but it still doesn't seem to work. On 9/13/05, David Robley [EMAIL PROTECTED] wrote: blackwater dev wrote: I am using .htaccess files throughout my code directory tree to set certain directives such as php_value

Re: [PHP] whats wrong in this program.

2005-09-13 Thread Jordan Miller
I think I finally understand what you are trying to do. I don't see any reason why you need to use the token functions, and I would recommend using array functions instead (also, it is exceedingly easy to sort the elements of an array... see the end). I believe this will do what you are

RE: [PHP] trying to figure out the best/efficient way to tell whoislogged into a site..

2005-09-13 Thread bruce
ben... your statements/approach is pretty much what i've been thinking of. however, with regards to the forums/cms apps.. i've yet to find one that actually keeps a track of the logged in users, that works when the user kills the browser.. the ones that i've seen, that allow an admin to see

[PHP] launch app

2005-09-13 Thread Ed Lazor
What's the best way to send an executable to a client desktop in PHP? I'm doing a project where we need to check and see which files need to be updated on a client-desktop. The idea is for a user to visit the website, an executable launches, checks the files on the drive, and then sends the

Re: [PHP] Re: .htaccess

2005-09-13 Thread David Robley
blackwater dev wrote: Thanks David, I just set it to AllowOverride All and restarted apache but it still doesn't seem to work. On 9/13/05, David Robley [EMAIL PROTECTED] wrote: blackwater dev wrote: I am using .htaccess files throughout my code directory tree to set certain

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam]Issueswit

2005-09-13 Thread Death Gauge
Sorry had to eat too. Ok here is the source that is giving me problems. I'd dropped a few things from it cause they weren't working either but this gives the just of what I'm trying to do. I'm renaming the poster.php files to more appropriate names but you get the idea of what I'm trying but

[PHP] RE: Issues with News sites again...

2005-09-13 Thread Jasper Bryant-Greene
On Wed, September 14, 2005 3:15 pm, Death Gauge said: Sorry had to eat too. Ok here is the source that is giving me problems. I'd dropped a few things from it cause they weren't working either but this gives the just of what I'm trying to do. I'm renaming the poster.php files to more

Re: [PHP] DOM XML compatible PHP4 PHP5

2005-09-13 Thread Stephen Leaf
On Monday 12 September 2005 02:08 pm, Florent Monnier wrote: Hi, Is there a way to make dom xml applications compatible PHP4 and PHP5? Thanks You can use the PHP_VERSION predefined constant or the function_exists(string) http://us2.php.net/manual/en/function.function-exists.php What I did

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 10:39 PM Ben said the following: I guess this should ring a lot of bells for those that expect to develop products targetted to PHP 5, because the numbers seem to show that PHP 5 is a flop, despite PHP 5.0.0 was released more than 1 year ago. I think it points more to

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Manuel Lemos
Hello, on 09/13/2005 10:46 PM Oliver Grätz said the following: Always this stuff about breaking backward compatibility. People seem to think that the change from 4 to 5 means such a lot. In fact the changes from PHP4.0 to PHP4.4 are much more numerous. The backwarr incompatible changes between

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ed Lazor
It seems that PHP 5 is not that much compelling to most people to justify the change. I'm sure you're right, but I also think it's a question of work load for the ISP. Many server upgrades don't occur unless it's urgent and even then they sometimes get missed. Plus... the last time I

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] RE: Issues with News sites again...

2005-09-13 Thread Death Gauge
I'll try that...But why shouldn't I have register_globals on (which my ISP does and every tutorial I've ever read says to do in order to use several different features of PHP:-/). --Death Gauge How do you gauge your death?! Original Message Follows From: Jasper Bryant-Greene

  1   2   >