Re: [PHP] Form verification

2006-11-01 Thread Joe Wollard
Captcha http://en.wikipedia.org/wiki/Captcha On 11/1/06, Ron Piggott (PHP) [EMAIL PROTECTED] wrote: I am wondering if any of you know what it is called when letters come up for the user to key in for form entry verification. Ron -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Query question

2006-10-28 Thread Joe Wollard
Agreed, this should go to a MySQL list. But in the spirit of helping I think the following should give you a good starting point. SELECT `year`, COUNT(`year`) AS `count` FROM `tbl` GROUP BY `year` ASC On 10/28/06, Ed Lazor [EMAIL PROTECTED] wrote: Use the mysql list :) On Oct 28, 2006, at

Re: [PHP] Query question

2006-10-28 Thread Joe Wollard
-Original Message- From: Joe Wollard [mailto:[EMAIL PROTECTED] Sent: October 28, 2006 10:30 PM To: Ed Lazor Cc: Beauford; PHP Subject: Re: [PHP] Query question Agreed, this should go to a MySQL list. But in the spirit of helping I think the following should give you a good starting point. SELECT

Re: Re: [PHP] OPTION

2006-10-25 Thread Joe Wollard
...and if you wanted to go an extra step you could try an alternate syntax of the exact same code: ?php foreach (range(1, 31) as $day) print 'option value=' . $day . '' . ($selected_day_of_month == $day ? ' selected' : '') . '' . $day . '/option'; ? Either way, Stut is correct. Don't

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread Joe Wollard
1. mysqldump will only keep the connection open for as long as it needs it. Once your calling script is allowed to continue mysqldump has either exited successfully or with an error, but either way the connection should no longer be active. 2. I don't think that would be a good idea. 30

Re: [PHP] PHP5 object construct

2006-09-22 Thread Joe Wollard
http://us2.php.net/class On 9/22/06, Chris Boget [EMAIL PROTECTED] wrote: I read about a feature of PHP5 OOP that is something like this in a book or a magazine a while back. But now I don't remember exactly how this works and I can't find any reference to it in the online docs. The basic

Re: Re: [PHP] PHP5 object construct

2006-09-22 Thread Joe Wollard
well, perhaps I'm not seeing what it is that you're looking for. The page I sent you is a basic introduction to classes and OOP in PHP, which based on the example that you've provided seemed like what you wanted. It seems obvious that you want to learn more about OOP, but are you trying to find a

Re: Re: Re: [PHP] PHP5 object construct

2006-09-22 Thread Joe Wollard
ok, so if we were talking Java, perhaps you are looking for information that allows you to build 'accessor' and 'mutator' methods? If so, then your example should work (syntax aside). Here's another 'test' example that I just whipped up and tested that shows you can use any method name you wish.

Re: [PHP] Error: Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot restore segment prot after reloc: Permission denied

2006-09-20 Thread Joe Wollard
Since Fedora is popular, can I assume that's what you're running? Even if it's not I'll bet it's a Linux distro that's employing SELinux. 11,500 web pages agree ;-) http://www.google.com/search?q=%22reloc:+Permission+denied%22 On 9/20/06, Kelly McCoy [EMAIL PROTECTED] wrote: I am getting

Re: [PHP] Just say hello

2006-09-15 Thread Joe Wollard
Hi AraDaen, and welcome to the list ;-) On Sep 15, 2006, at 7:32 AM, AraDaen wrote: Hi from Spain. This is my first post and im sure it wont be last :) AraDaen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Joe Wollard
Easiest way: change your search form's method to GET instead of POST - I'm sure you're not passing enough parameters to the search results page to actually need to use POST. On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this

Re: [PHP] Accessing .mdb Ms Access file from Linux without ODBC

2006-09-07 Thread Joe Wollard
I think kOffice can read mdb files on Linux - maybe that would be a good starting point for research. Perhaps they have built a kind of API to allow other programs to do the same..then again, maybe not - but like I said, it's some place to start. On Sep 7, 2006, at 7:57 AM, Fourat

Re: [PHP] parse text file

2006-07-23 Thread Joe Wollard
Benjamin, Use the file() function, it will read a file then return each line as a new element in an array. http://php.net/file - Joe On 7/23/06, Benjamin Adams [EMAIL PROTECTED] wrote: how would I read a file one line at a time: ?php if($lines $alllines){ $newline .= $lines; } ?

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread Joe Wollard
To refine that a bit, you may want to give them some code that has been intentionally broken (simple things for the entry level position, such as missing semicolons or curly braces etc) and watch to see how they go about discovering the parse errors. To me, it would be better to hire

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Joe Wollard
well, I'm sure that if you really wanted to try to write your own auth module in PHP you could theoretically do so - but in lieu of that there is an open source apache module that you might want to look into called mod_ntlm http://modntlm.sourceforge.net/ keep in mind that all this does is

Re: [PHP] New install platform

2006-06-25 Thread Joe Wollard
For a simple OS X install you can either modify the existing Apache/PHP install and add MySQL or use entropy's package from http://www.entropy.ch/software/macosx/php/ On 6/25/06, Grae Wolfe - PHP [EMAIL PROTECTED] wrote: It has become evident that I need some form of local testing

Re: [PHP] templating

2006-06-22 Thread Joe Wollard
IMHO I would go with Smarty as it has excellent documentation and would fit almost anything that the project would require. I also think it would be a cleaner way of templating than using str_replace () over and over again. For what it's worth, I use Smarty on almost all of my projects,

Re: [PHP] Processing HTML in mail form

2006-06-21 Thread Joe Wollard
(sorry for the duplicate response Parathaban, forgot to reply to the list) Look at example 4 from http://us3.php.net/function.mail $headers = 'MIME-Version: 1.0' . \r\n; $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; That should get you started. On Jun 20, 2006, at

Re: [PHP] MYSQL_CONNECT vs MYSQL_PCONNECT

2006-06-20 Thread Joe Wollard
If you're not sure you should probably stick with mysql_connect() - otherwise you could end up bogging down mysql with way more connections than you need if you're not careful. On Jun 20, 2006, at 12:34 PM, Juanjo Pascual wrote: How can i know which of both is better to use each time? --

Re: [PHP] ldap_connect allways returns true even if logically it shouldn't?

2006-06-19 Thread Joe Wollard
I believe the manual says that ldap_connect doesn't actually make the connection but rather it just simply sets up the connection parameters. The actual connection doesn't happen until ldap_bind is executed. - or so I recall reading some where ;-) On Jun 19, 2006, at 9:06 AM, Steve

Re: [PHP] HTTP HEADERS

2006-06-03 Thread Joe Wollard
(sorry for the dup kartikay, forgot to hit reply to all;-) So is the file going from server to server or from a client machine to the server? It sounds like server to server - which if that's the case you can use headers_list() to see what your server is going to be sending out to the other

Re: [PHP] .htaccess - change index.php to index.abc

2006-06-03 Thread Joe Wollard
If you don't want to change the names of the files themselve from .php to .abc then you'd need to use something like mod_rewrite for apache's HTTPD. I'm not entirely certain as to how you'd do this, but I've included what I normally use to hide index.php in the url. If possible I'd put this in

Re: [PHP] List of sessions

2006-05-04 Thread Joe Wollard
If you store your sessions in a database then your could gain a little mode control over your session, but I think what you're asking is if there's a way to tell if a user has closed the browser thus killing the session on their side. If that's what you're asking then the answer is not going to

Re: [PHP] SQL query to array?

2006-04-26 Thread Joe Wollard
Will, Seems to me like you've just done it! Here's another way of doing it that will utilize mysql_fetch_assoc() to allow your query to dictate the elements of the array. Keep in mind, I haven't tested this, but since I'm not entirely sure what you are asking the list, I'll offer it anyway ;-)

Re: [PHP] Php function to Set focus On A form Field

2006-04-26 Thread Joe Wollard
PHP can't do that for you but Javascript can. Here's roughly 3 million (no joke) examples of what you'd like to accomplish: http://www.google.com/search?q=javascript+focus+first+input On 4/26/06, marvin hunkin [EMAIL PROTECTED] wrote: Hi. is there any php or java script function, where i can

Re: [PHP] CMS for Auto Parts

2006-04-23 Thread Joe Wollard
I could be off here, but I think he's talking about using XML to transfer data back and forth between the flash app and the PHP app. That's just me reading between the lines though. Maybe I'm taking too much from PHP/XML should be used with a client-side Web GUI to upload images, part no.,

Re: [PHP] strange php url

2006-04-21 Thread Joe Wollard
I believe Kevin is on the right track there. To expand a bit, you can use $_SERVER['PATH_INFO'] with these urls instead of $_GET to make use of the data it contains example for url http://www.example.com/index.php/foo/bar ?php echo $_SERVER['PATH_INFO']; ? produces: /foo/bar You can then parse

Re: [PHP] strange php url

2006-04-21 Thread Joe Wollard
No arguments here ;-). For what it's worth, I've used this technique just to simply clean up the url's a bit. With that in mind, I usually don't need to do a terrible amount of scrubbing because I'm using the variables in the url more for navigation. So

Re: [PHP] I am not able to download domxml for PHP5

2006-04-11 Thread Joe Wollard
Oz, From your command line, try: pecl install domxml You'll need to be root to do so, but as long as you have PECL/PEAR installed this should give you domxml. Remember to restart your web server after doing so. - Joe On 4/11/06, Oz [EMAIL PROTECTED] wrote: Please help, I am not able to

Re: [PHP] I am not able to download domxml for PHP5

2006-04-11 Thread Joe Wollard
Of course you said you're running PHP5so that won't work. According to the site it would be best for you to use the DOM that comes pre compiled with PHP. http://us3.php.net/manual/en/ref.dom.php Sorry about the mix up on my part. On 4/11/06, Joe Wollard [EMAIL PROTECTED] wrote: Oz, From

Re: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Joe Wollard
Mickey, I'm not an expert on the topic by any stretch of the imagination, but I seem to recall reading that it's best to move everything into httpd.conf for performance reasons. You may want to investigate that, but otherwise I don't see anything wrong with what you're doing. On 4/10/06, Micky

Re: [PHP] Need MySql Help Please

2006-04-10 Thread Joe Wollard
Marvin, As much as we try to keep this list PHP-only I think it's hard to ignore the ties between PHP and MySQL. Most of us learned both technologies simultaneously. Still, you may want to put [OT] on your future email subjects to indicate that the question is 'off topic'. On the matter of

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
Tedd, The only way that I can even think of this as being possible is if you call microtime() instead of microtime(true). The former will return 'msec sec' separated by a space which can produce a negative number because you've essentially got two different types of measurements there. IMHO PHP

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
I just realized that I could check your version, and it appears that we've found the problem. You're running PHP 4.3.10, so I'd suggest using the non PHP5 work around on php.net's site. Cheers! - Joe On 4/7/06, Joe Wollard [EMAIL PROTECTED] wrote: Tedd, The only way that I can even think

Re: [PHP] how to run 'periodic'

2006-04-07 Thread Joe Wollard
Frank, It sounds like you need to run this as a job through crond. I'm not sure what the OSX version is (maybe they have a port of crond?) but you could set that up to execute the specific code, as root, whenever you want. As far as I can think, and maybe Chris Shifflet can confirm/deny this, you

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
Tedd, I think Brad was just making some observations, he wasn't trying to be rude. When he said that the time differentials are too be expected. I think he was just answering the question of why the exact same FOR loop could possibly take different amounts of time to execute under the same

Re: [PHP] IF or SWITCH

2006-04-06 Thread Joe Wollard
On 4/5/06, Ray Hauge [EMAIL PROTECTED] wrote: Hello World! wait, not coding... (sorry, long night) Okay, I finally finished hashing out all the logic for a very complex set of rules to determine what type an application should be set to. I won't bore you with the details of it, but the

Re: [PHP] IF or SWITCH

2006-04-06 Thread Joe Wollard
On 4/6/06, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2006-04-06 at 02:29, Joe Wollard wrote: The main perk to using switch over if statements is speed (Google can back this up). The reason it's faster is because it's simpler by design and is able to jump directly to the case

Re: [PHP] Sessions and Frames

2006-04-05 Thread Joe Wollard
I agree with Richard on this one. Frames should really be avoided if for no other reason than they cause headaches like the one you have right now. ;-) If you can't avoid them, keep it simple - just store the ID in one place, like a session cookie. Doing so will make sure that if the session ID

Re: [PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Joe Wollard
Paul, Try TO_DAYS(curdate()) instead - if not you can't say we didn't try! ;-) If that doesn't work you may want to try a MySQL list. - Joe On 4/3/06, Paul Goepfert [EMAIL PROTECTED] wrote: I included the or die function on the end of my query statement. When I tested this on my web page

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Joe Wollard
Just as long as everyone knows that everything I said was all in good fun. Next time I'll be sure to use sarcasam just to be sure nothing is taken the wrong way ;-) On 4/2/06, Chris Shiflett [EMAIL PROTECTED] wrote: Joe Wollard wrote: I made fun of Chris and Rasmus specifically because I

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Joe Wollard
el-oh-el. See, I forgot already. Good lookin' out Matt! On 4/2/06, Matt Richards [EMAIL PROTECTED] wrote: oops forgot the first sarcasam .. oh well! :( Matt Richards wrote: quote: Joe Wollard wrote: Just as long as everyone knows that everything I said was all in good fun./sarcasam

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Joe Wollard
Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted something simple and now look at it. It's WAY to complex for an unorganized bunch of hobbyists to maintain.

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Joe Wollard
they _rule_so_hard_! On 4/1/06, Kevin Kinsey [EMAIL PROTECTED] wrote: Stut wrote: Joe Wollard wrote: Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted

Re: [PHP] Downloading very large files

2006-02-13 Thread Joe Wollard
Jonathan, Not sure how you're using fread, but here's a slightly modified version of what's in the manual that might help: ?php $handle = fopen(/var/dump/vids/test.mpg, rb); while (!feof($handle)) { print fread($handle, 8192); } fclose($handle); ? If my understanding of this code is correct

Re: [PHP] Web based editor

2005-11-26 Thread Joe Wollard
On Nov 26, 2005, at 12:11 PM, Todd Cary wrote: I want to provide the user with an editor like http://209.204.172.137/FCKeditor/_samples/php/sample01.php Is it best to use a JavaScript based editor? Are there some favorites out there or is the FCKeditor about as good as they get? Todd --

[PHP] NTLM, PHP and Apache

2005-11-22 Thread Joe Wollard
Greetings all, I'm running a rogue (the company knows about it but doesn't support it) web server for my dept and I'd like to be able to authenticate users transparently. The company is currently doing this on their own supported Intranet servers via NTLM on IIS. All I'm really looking for here

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-22 Thread Joe Wollard
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote: Is it possible to use PHP to find out wich type of browser is in use? Or must is this done by javascript or something else? I would like to have a little statistic on my page that tells me what browser is currently moet used. Try: ?php

Re: [PHP] fopen

2005-10-25 Thread Joe Wollard
On Oct 26, 2005, at 12:54 AM, John Taylor-Johnston wrote: It does what I want, but I worry 4096 may not be big enough. Possible? Is there a way to detect the filesize and insert a value for 4096? $buffer = fgets($dataFile, $filesize); Is this what it is for? John ?php

Re: [PHP] PHP 5 Hosting

2005-09-29 Thread Joe Wollard
The first two results both seem pretty good at a glance: http://www.google.com/search?hl=enq=php5+ssh+hostingbtnG=Google+Search On Sep 29, 2005, at 8:29 PM, Ed Lazor wrote: Any recommendations on good host providers for PHP 5? Bonus points if they support SSH access and a PHP compiler

Re: [PHP] can not re-use a object

2005-09-19 Thread Joe Wollard
I have try to use the same $db and to create a new one... Are you trying to use the $db object inside of another function later in the code? If so you'll need to use $GLOBALS['db'] instead. Sorry, this is the only thing I can think of with your description Have you tried a simple test program

Re: [PHP] headers .vs javascript location.href

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote: bruce wrote: i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...'

Re: [PHP] Problems with PHP after MySQL Upgrade

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 4:36 PM, Nathan wrote: Here's the issue. I use MySQL as my database backend. I used to have php running fine and I used phpMyAdmin to do any admin functions I needed to on MySQL. I recently upgraded to MySQL 5.x and ever since I've gotten the following error

Re: [PHP] Installing under IIS6.0

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 9:45 PM, Dan Trainor wrote: Tjoekbezoer van Damme wrote: I've got PHP set up to the point where it will process files ending in .php, but I want to blanket the processing of PHP code under IIS in the same manner in which I blanket PHP code with Apache. If anyone has

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

2005-09-14 Thread Joe Wollard
Mark, Thanks for all the help! Turns out I was right when I said my problem may have been inexperience. Your suggestion of DC=domain,DC=com worked and everything is functioning great! Thanks again! On Sep 14, 2005, at 4:35 AM, Mark Rees wrote: On my server I'm running: Fedora Core 4

[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] 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

Re: [PHP] Re: PHP/MySQL offline

2005-09-06 Thread Joe Wollard
... an automated script that creates a static site that will allow me to do that? If all you're really looking for is a static version of your site then you could simply use wget. This will crawl all of the links on your site and generate the static version you wanted. On Sep 5, 2005, at

Re: [PHP] Making Text [not the background] transparent

2005-09-02 Thread Joe Wollard
Graham: Unless you need a specific font you could just do this by using pure CSS. If you do, the image layer would be behind the text layer. The text layer can be set to any color and (in most every modern browser) any alpha level. div style=filter: alpha(opacity=90); opacity:0.9;

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Joe Wollard
I would first start out by dumping the values of $_POST['gmev'] by using print_r($_POST['gmev']); Sounds to me like you're not getting the data that your expecting from the form for some reason. Maybe $_POST['gmev'] is an array of null values? -Good Luck On Aug 17, 2005, at 12:15 PM,

Re: [PHP] Javascript Src and HTTP_REFERER

2005-08-05 Thread Joe Wollard
I haven't tested this and it's off the top of my head so don't shoot me if I'm off track here ;-) You could possibly use some embedded javascript to set a cookie with the current URL stored in it. This would be easy to spoof as well, but not quite as easy as appending ?site=xyz. (shrug)

Re: [PHP] Redirect with referer info

2005-07-30 Thread Joe Wollard
To obtain a certain portion of the referring url you might look at parse_url(); See http://us3.php.net/manual/en/function.parse-url.php - or - If you want to bounce the user right back to the previous page including get variables you could just use this snippet. ?php $referrer =

Re: [PHP] Playing Audio

2005-07-27 Thread Joe Wollard
More specifically, I'd have two frames, one of which is hidden using css and the other that would display the content of the website. The user would never know that there were frames on the page by looking at it. Just as a warning most people will tell you that putting background music

Re: [PHP] application-wide shared data/object

2005-07-27 Thread Joe Wollard
Aiguo, To achieve good performance, I want to load the whole dictionary into memory when the application starts (e.g., when the web server starts... I'm not sure how ASP works, but in PHP you can't load something into memory when the web server starts and keep it there. PHP 'compiles'

Re: [PHP] speed - PHP/MYSQL

2005-07-23 Thread Joe Wollard
I agree with Jasper here, you want to make it a point to optimize your queries so that fewer trips are made to the database server. On the topic of indexing, I'm curious as to how you did that and if your using it as intended. In your query you are testing columns `time`,`date` so you'll

Re: [PHP] Re: System specific information gathering

2005-07-23 Thread Joe Wollard
As always, look for someone else's existing project and see how they did it. ;-) http://phpsysinfo.sourceforge.net/ Good Luck! -Joe On Jul 23, 2005, at 9:25 AM, André Medeiros wrote: First of all, you want to have the two values in seperate variables. After reading the contents from the

[PHP] Sybase and PHP

2005-06-24 Thread Joe Wollard
After looking through sybase.com and coming up with nothing I thought it might be better to see if anyone has already been down this road: I've got a very old laptop with a tiny little hard drive with very little free space on it. It's being used as a 'rogue' intranet server and doing a

Re: [PHP] reading PDF's

2005-06-24 Thread Joe Wollard
Jon, I'm not sure there is a way for you to do this from within PHP, but then again I didn't think it was possible for PHP to generate a pdf without any extra libs either ;-) You might want to start with the pdf2* command line programs. I think there is in fact one that will output the pdf as

Re: [PHP] Search problem

2005-05-22 Thread Joe Wollard
I used to search the same way until someone on this list mentioned using a fulltext index in mysql. Doing this almost eliminated all my headaches with searching. Easiest way to create a fulltext index is to use phpMyAdmin. Once you've created the fulltext index on

Re: [PHP] Editing PDF

2005-05-10 Thread Joe Wollard
Sam, I'm not an expert in the area but from what I've seen in the past you might want to look into using LaTex or something similar from the command line. There might be a way to edit the PDF directly from PHP but I wouldn't know where to tell you to start. For that matter I'm not even certain

Re: [PHP] Fastest templating mechanism

2005-05-07 Thread Joe Wollard
Evert, Have you looked at smarty (http://smarty.php.net) ? It doesn't do exactly what you're talking about but it seems to be the Fastest templating mechanism that I've tested; probably one of the most versatile as well. Cheers! -Joe www.joewollard.com Evert | Rooftop Solutions wrote: Hi all,

Re: [PHP] control-M

2005-05-05 Thread Joe Wollard
David, Well, I've never seen this issue on a form submission before, but I have seen it (and other oddities) when editing text files in vi that we created on M$. You might try something simple first such as: ?php $text = str_replace(^M\n\r, \n\r, $_POST['textarea_name']); ? I haven't tested

Re: [PHP] Is there any other place to start php module?

2005-04-12 Thread Joe Wollard
You might also look towards the bottom of httpd.conf for any additional conf files that are to be read. As I recall OSX will look for an additional conf file by default which may be trying to load the same module. Prathaban Mookiah wrote: Might be under apache conf dir/modules.d/ Prathap

Re: [PHP] Storing password in cookie

2005-04-12 Thread Joe Wollard
On a shared server, every other PHP scripter can read your session data, if they work at it a little bit. If you're on a shared server I think a good option for you might be to store the sessions in your database. At least then you know that as long as long as your db server doesn't have any

Re: [PHP] Bulletproof POST remove

2005-04-11 Thread Joe Wollard
Andy, I've done this in the past when setting a cookie for a user-defined theme and also for a message board which used the post method. In my case I put all of the logic into a separate page altogether. So you'd have your form on page A, logic in page B and a landing page which can be the

Re: [PHP] Jpgraph and drop down menus examples

2005-04-01 Thread Joe Wollard
Graham, I'm not sure what jpgraph is but the main question I think your asking doesn't seem to require knowledge of anything more than how to interact with the server without reloading the page. This is actually pretty simple. Let's say that you have a simple page already loaded in your

Re: [PHP] OR statement

2005-03-24 Thread Joe Wollard
This can also be done with double pipes, which is what is used in many other languages. - if($audio==Cool || $audio==junk || $audio==Funky){ Do this } else{ Do this } -- As far as I can tell there are no plans to remove or reason to

[PHP] Memory use

2005-03-23 Thread Joe Wollard
Greetings, I'm trying to help a C programmer understand and use PHP for web development. So far all the similarities between C++ and PHP are making the process rather speedy. He asked what seemed like a very simple question, but I couldn't find the answer. The questions is how can you

Re: [PHP] update of mysql to 4.1

2005-03-02 Thread Joe Wollard
Peter, I have done this on redhat 7 using an rpm to go from mysql 3.x to 4.x beta in the past and it worked fine without recompiling php. Of course I would try to test this on a non-production server first in case of any serious problems. If you do have to recompile php for some reason don't

Re: [PHP] source code protection

2005-02-26 Thread Joe Wollard
Shabanip, Zend provides a package for doing just this, but it comes with a price tag starting nigh to $1,000. You can find it here: http://www.zend.com/store/products/zend-encoder.php They do offer a free evaluation so you can try before you buy ;-) shabanip wrote: is there any way to protect

Re: [PHP] PHP Extension Arrays

2005-02-20 Thread Joe Wollard
Chris, I have a feeling I'm missing something but from what I'm gathering you want to be able to use the key of the array right along with the value. If that's what you need then the following should work: $array = my_array_creating_function(); while(list($key, $val) = each($array)){ echo br

Re: [PHP] undefined ap_block_alarms in libphp5.so in spite of SHARED_CORE

2005-02-20 Thread Joe Wollard
Gene. I ran into a similar problem a long time ago and found that my issue was that I had foolishly tried to recompile php5 into the same paths without cleaning out the old php binaries. I don't know if this is what you are doing but if it is then as a thought you might want to make sure that

[PHP] Samba wrapper

2005-02-20 Thread Joe Wollard
help or direction you can send me! -Joe Wollard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Password Protection

2005-02-16 Thread Joe Wollard
Kevin, I'm having some issues with my email client right now so I'm sorry if you've already found the answer. There is a way for PHP to do this without the need to modify your web server's configuration or bothering with .htaccess/ .htpasswd files by simply modifying the http headers that your