Re: [PHP] stripping white space?
Hi Brian, * Persuade someone at Zend to modify PHP so that a filter function can be specified which all output text is passed through - would have the same restrictions as the header function You can already achieve this by using the built-in output buffering function. Read http://www.zend.com/manual/function.ob-start.php for more information and a simple example on this. Why not go for HTTP compression though? The gain would be much larger than just stripping out the whitespace/comments and such.. Have fun, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PDF Problems
Fatal error: PDFlib error: Beta expired - retrieve new version from www.pdflib.com in c:\phpdev3\www\pdf\test.php on line 2 hahahahha - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:22 PM Subject: Re: [PHP] PDF Problems Shit i only have 4.0 ): - Original Message - From: David Robley [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:18 PM Subject: Re: [PHP] PDF Problems On Tue, 10 Jul 2001 15:40, ReDucTor wrote: I get undefined func on pdf_new but on all the other pdf functions they work, but i first need the pdf_new then i tried cpdf, all works, but i can't seem to get text onto a page...HELP ME - James ReDucTor Mitchell That function wasn't introduced until 4.0.5, according to the manual. Is your version sufficiently up to date? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Will the information superhighway have any rest stops? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] something like get_html_translation_table
Hi all, I hope I haven't missed it if it exists...i've looked through the docs...i'm trying to find something that does the same trick shown at php.net for getting the table, array_flip()'ing it, then using strtr to translate things like nbsp; What about others like 146; etc...it'd be really useful to have a way to translate things like that automatically, and I would think that'd be the sort of function php would have...am I missing it, or is this something I need to do manually? Thanks, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] stripping white space?
I guess this is just one of those things where everyone's opinions runs in different directions, yet everyone is entitled to their own. I myself try to respect the standard because of the browser war years which made everyone uncomfortable. Now most browsers are trying to merge into a single standard (thank god). I believe the future to be XML, and I also don't think HTML will ever go away. However, I do believe that HTML will be treated more strict (hence the emergence of XHTML which is based on HTML 4.0 and XML). My suggestion to everyone is to continue using standards and try not to go astray from them, else we know the headaches us developers can face in the future. Sincerely, Navid Yar -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:06 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] stripping white space? Yeah, I know that XML requires it. And I also know that it is not a good code practice, but it perfectly works for HTML pages. Browsers compatible with the style sheets have no problems with this code (there's no connection), and if there's any XML to work on the HTML will be rewritten anyway, so there's really no reason to worry about it. Just the size gets lower and typing (escaping in PHP) is easier. I think it IS a good practice if you only practicing HTML to be outputted by PHP. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Navid A. Yar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 2:40 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] stripping white space? If you do this then those who will want to eventually convert their projects over to XML or XHTML format will have a hard time doing so, because the double quotes around the values of the attributes are required. Also, it's not good code practice. Just something for future reference... -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:16 AM To: '[EMAIL PROTECTED]'; Kurt Lieber; [EMAIL PROTECTED] Subject: RE: [PHP] stripping white space? I would not be stripping white spaces, but double white spaces into single ' '; for example: $html = ereg_replace([[:space:]]+, ' ', $page); I never tested this, but what I am trying to do is to get all and any blank characters and replace them with one single space. Why? Because I don't want all the words in text to merge together. This should reduce the size. Also here's a tip: remove any double or single quotes in tags surrounding integers. This is compatible enough, but is a bunch of bytes. i.e.: change every IMG SRC=/img/arrow.gif WIDTH=12 HEIGHT=11 BORDER=0 ALT=arrow align=left to IMG SRC=/img/arrow.gif WIDTH=12 HEIGHT=11 BORDER=0 ALT=arrow align=left this example is reduced by 6 bytes. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Mukul Sabharwal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 2:05 PM To: Kurt Lieber; [EMAIL PROTECTED] Subject: Re: [PHP] stripping white space? Hi, I take that you simply want to remove ALL whitespaces from a data block (variable). you could simply use str_replace( , , $var); --- Kurt Lieber [EMAIL PROTECTED] wrote: Is there a way using PHP to easily strip white space out of an html page as it's being sent to the client. That is to say, the page that we as developers work on is nicely formatted, indented, etc. but when it's sent out to the client, PHP will remove all the extra white space both to obfuscate the code and reduce the size a bit. For anyone who knows Cold Fusion, I'm looking for the PHP equivalent of the Suppress whitespace by default option in the Cold Fusion Server Administrator. (NOTE: I'm not looking for a discussion on the merits of stripping vs. not stripping white space characters or whether or not it really does any good -- I just want to know if it can be done easily using PHP) Thanks. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = * http://www.geocities.com/mimodit * __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To
Re: [PHP] how to hide dbconnect file if its in publisheddirectory?
On Tuesday 10 July 1979 12:55 am, [EMAIL PROTECTED] wrote: on 7/10/01 1:01 AM, Navid A. Yar at [EMAIL PROTECTED] wrote: Hmmm, I was wondering about security of PHP also. Does anyone know the general issues of security within PHP documents? My thought is that PHP cannot be seen when you view a source anyway, so isn't it secure enough (besides the basic firewall and system security)? If you have some function in a file called say ... functions.inc you can see the php script if you call functions.inc from a browser... because the server won't do the php code in an inc file... how do I change this!? Name the file ... functions.inc.php and insure that you have the php start and end tags on it. -- Regards, John Weaver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to hide dbconnect file if its in published directory?
On Tuesday 10 July 1979 12:39 am, [EMAIL PROTECTED] wrote: on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote: Sorry, I should have been more clear. If you write modular code, your included file will be nothing but a group of functions. Call a file with nothing but functions in it and you get; HTMLHEAD/HEAD/HTML. I can't see the security problem you refer to. Ahhh! I have this problem now ... do you put the ?php ? tags on an inc file? If not how do you keep people from reading it? Yes, I include the php tags so that PHP will parse it as php code. -- Regards, John Weaver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: form action problem
hmmdo again as: ? function functionA() { // your function goes here } if (isset($usefunctiona)) { functionA(); } ? html body form name=form1 method=post action=?=$PHP_SELF? input type=submit name=usefunctiona value=Use functionA /form /body /html //elias! Brad Wright [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, i want to have a submit button on a page that has a php function (on the same page) as the action. ie. form name=form1 method=post action=?PHP functionA() ? input type=submit name=Submit value=Use functionA /form so when the 'Use functionA' button is pressed, the function 'functionA() ' is called (using php variables already defined before the form.) Thanks Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: Running PHP as a cron job....
Hi Can I have this cron scripts please? Thanks Manohar -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 4:20 AM To: Chadwick, Russell Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Re: Running PHP as a cron job Someone yesterday also suggested putting them in a web-accessible location, but having lynx come by and run them. That seemed pretty cool = Good luck, Ben Quoting Chadwick, Russell [EMAIL PROTECTED]: You can still run php... I put my cron scripts in a directory on the web server, just makes sure they are all safe to run multiple times in case someone finds it then make a script that for each entry in that directory invokes the script. mines in python so you just import urllib and then for each file in the directory urllib.urlopen ('server name/cron/whatever.php') and make it run your python script nightly and it will run any php script you put in that directory. -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Running PHP as a cron job Thanks for all of your help on this. My host admin have informed me that php is installed only for the web, and not as a cgi, so that's what was going wrong (it wasn't down to my own naievity afterall.) So, it's time to learn perl (or bash). Thanks again for all your comments and help. James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Code Examples for Job Interview
I invite you to the OzoneAsylum (Forum) where you can have tens of comments and really helpfull ideas http://www.ozoneasylum.com Jcampbell [EMAIL PROTECTED] wrote in message 001e01c108c2$9da68c60$779fadac@dhcpserver">news:001e01c108c2$9da68c60$779fadac@dhcpserver... Hey Everyone. This isn't a request for code or help, just thoughts and ideas. I've recently been asked to bring along some code examples for a job interview I will be heading to this week. This was the exact request The sample does not have to be within any particular language, but something that is a substantive representation of your style and logic. I'm not sure what to take. Most of my PHP and other projects are lengthy and involved. I'm not sure if it would be better to print out functions I've created that perform tasks, or just find something that did wonderfully challenging things and print that out. Anyone have thoughts on this? =- Jonathan Campbell ( [EMAIL PROTECTED] ) Mid days haze and I'm still not awake I got everything going but my bills are still late Funnier than hell and I think it's a blast Life's like a laugh when you got no money Lyrics from Average Day by Aztek Trip ( http://www.aztektrip.com ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hiding password in a class file (object-oriented programming)?
Putting in php tags does not necessarily mean that it will be parsed as php. If you are using Apache web server, the file type ( php htm etc) needs to be identified as a php file. This is done in the httpd.conf configuration file. Just putting php tags in a htm file usually does not work by default. Getting back to the original question, the include file does have to have an .inc extension. I am pretty sure that this is a convention but is not mandatory. end your include file with a php extension cheers Dave Ben Bleything wrote: put ?php ? tags around the file you include, and it will parse it as PHP = I'm doing this now. I have a bunch of files in a subdir of the published directory, that contain functions and definitions to do these things, and I include them at the beginning of each file. But, you do need ?php ? tags around the includes. = Ben Quoting Thomas David Kehoe [EMAIL PROTECTED]: How do I put my password into an external file? I have dozens of webpages with the line mysql_connect (localhost, username, password); What if I have to change my password? Rather then change dozens of scripts, I want to put this line into an external file and call it with include. The problem is security. If I make the file a class, then the file extension must be .inc. Anyone can type in the URL and see the contents of the file. I've tried these solutions, without success: Changing the permission to everyone-execute and owner-read doesn't work, apparently because a .inc file is read, not executed. Using the .php file extension (instead of .inc) executes the script when the URL is accessed. The user sees nothing, if the file contains no HTML. But class only works with the .inc extension. Using include without making a class treats the file as HTML and it doesn't execute. -- Thomas David Kehoe, author of THE EVOLUTION OF INTIMATE RELATIONSHIPS How Our Brains Are Hardwired For Relationships http://www.FriendshipCenter.com/TEIR/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Running PHP as a cron job....
[EMAIL PROTECTED] (Manohar.K) wrote: Hi Can I have this cron scripts please? Thanks Manohar just do something like: 59 23 * * * wget --quiet http://www.fsck.dk/script.php /dev/null or 0 10 * * * lynx -dump http://www.fsck.dk/script.php /dev/null -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 4:20 AM To: Chadwick, Russell Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Re: Running PHP as a cron job Someone yesterday also suggested putting them in a web-accessible location, but having lynx come by and run them. That seemed pretty cool = Good luck, Ben Quoting Chadwick, Russell [EMAIL PROTECTED]: You can still run php... I put my cron scripts in a directory on the web server, just makes sure they are all safe to run multiple times in case someone finds it then make a script that for each entry in that directory invokes the script. mines in python so you just import urllib and then for each file in the directory urllib.urlopen ('server name/cron/whatever.php') and make it run your python script nightly and it will run any php script you put in that directory. -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Running PHP as a cron job Thanks for all of your help on this. My host admin have informed me that php is installed only for the web, and not as a cgi, so that's what was going wrong (it wasn't down to my own naievity afterall.) So, it's time to learn perl (or bash). Thanks again for all your comments and help. James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: RE: [PHP] webmail
Hi, On Mon, 9 Jul 2001 [EMAIL PROTECTED] wrote: In addition, here's a POP3 class from the PHP Classes Repository... Where :) I did not get anything. Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: webmail
Hi, Thanks. I found it and installed it. Maybe I need to hack around it to add more functions such as address book and attachement like squirrelmail. Adrian On Mon, 9 Jul 2001, Bleue wrote: There is a really good simple pop email client called rymo. Im not sure where I found it, but it shouldn't be hard to find. It is a very good base to start with and will help you with the functions and stuff. If you cant find it, let me know and I will send you a copy. Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] webmail
On Mon, 9 Jul 2001, Max Pyziur wrote: Thanks, but my specs are PHP4 and POP3 Adrian The one which I use which matches your requirements (non-PHP, perl-module driven) is NS WebMail, one which I use and gives basic webmail capablities, though missing some desired functionality (sort on date, sender, or subject; default sort is reverse chrono). It's relatively easy to install. http://nikosoft.free.fr/nswm.htm For freshmeat's listing check here: http://freshmeat.net/search/?q=webmail TIA Adrian Max Pyziur BRAMA - Gateway Ukraine [EMAIL PROTECTED] http://www.brama.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] capturing email adresses
Hi I am creating a guestbook for an intranet. In case I get people sending inappropriate messages to the guestbook I want to keep a log of visitor's emaill addresses. Is there a way in PHP of getting the web browsers email address? cheers dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: capturing email adresses
As far as I am aware, none of the major web browsers will reveal the email address of the user to any website or web application. This is for privacy reasons. You will need to get your guests to enter their email address in a text field to capture it for your records. Pete Scorpio1 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I am creating a guestbook for an intranet. In case I get people sending inappropriate messages to the guestbook I want to keep a log of visitor's emaill addresses. Is there a way in PHP of getting the web browsers email address? cheers dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] stripping white space?
Hi Maxim, 1. HTTP compression, which is not 100% compatible, but catches most of the browsers anyway. Yes. The standard PHP implementation actually inspects the HTTP headers to determine if the browser supports gzip encoding. If not, it will send the files uncompressed. Looking at our website stats, 97%+ of the people use a version 4 browser so they're fine. 2. Our own caching system: in two words: ob_*() to save the output as a text file, mod_rewrite to check for file and throw the plain .txt files if exist, PostgreSQL triggers to update (delete cached) .txt files. Hah! We think alike :) I implemented a similar system on our own website a few weeks ago. It does not cache complete pages (that's hardly possible due to the dynamic nature of our site), but instead caches HTML 'blocks'. (one page can consist of multiple blocks). Instead of serving those files directly from the filesystem I let PHP inspect them first: each file contains a timestamp that allows for expiry times. The results are wonderful: our website (http://www.blender.nl) has approximately 80.000 pageviews a day and the system load is almost never higher than 0.4. (Dual PIII/450/512MB/FreeBSD) If people are interested I'll publish the code for the caching module. 3. Browser/Platform detection: there's no need to make cross-platform heavy but compatible pages, just specific style sheets and html tags for specific browser families. Clever! That's something I will put on my to-do list as well. 4. clever HTML design, so there are less tags, tables etc, to have files smaller. And *that* also includes less comments and double quotes on integers. We do nothing with XML, so that is why I am so shocked why people here discourage me that much. In my experience once you use HTTP compression, adding a few comments or whitelines do hardly add to the filesize anymore. I don't think it's worth the trouble to write super-compact HTML. I don't know a single thing about XML, so I'll skip that discussion :) Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Any banner system?
There are some ad banner systems at the Zend.com's Applications section: http://www.zend.com/apps.php?CID=35 Sara On 9 Jul 2001, at 13:49, José León Serna wrote: Hello: I would like to know if there's a PHP Banner system with the following features: -Allow insert the banners anywhere -Advanced statistics page -Limit on banner impressions/clicks -Allow users (my customers) to see their banners statistics -Run on MySQL Best Regards. QaDRAM, RAD development for the WEB http://www.qadram.com VCLCrawler.com, your VCL search engine http://www.vclcrawler.com W2Kwm, Windows 2000 interface for XWindow http://www.vclcrawler.com/w2kwm/index.htm ebnoud.com, El Boletín No Oficial de Usuarios de Delphi http://www.ebnoud.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: php chat
There are some Chat Programs at Zend.com's Applications Section: http://www.zend.com/apps.php?CID=240 Try also: http://www.zend.com/codex.php?CID=272 Sara On 9 Jul 2001, at 14:24, Jack wrote: Hi all is there anyone know where can I get a good php chat programme? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Oracle 8i + non perstistant database connections remaining open.
Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no problems during the day.However, at the end of the day there is about 20 database connections still open. This has caused a problem because when the database is shutdown to backup (overnight) and then restarted apache still retains the 20 connections. This means that when users begin using the applications again in the morning apache starts reusing the old connections plus creating some new ones and causes users to be intermittently logged out/refused access/random query failures etc.. The error messages logged when this happens are below: PHP Warning: failed to rollback outstanding transactions!: ORA-01012: not logged on PHP Warning: failed to rollback outstanding transactions!: ORA-24324:service handle not initialized A quick fix to this problem is to shutdown apache when the backup is run so all the connections are dropped/ Hovever, should these connections be remaining open in the first place? Has anyone got any ideas? -Stewart. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP] Oracle question
oracle does not have an autoincrement. it has the more powerfull concept of TRIGGERS unfortunatelly you have to write them in pl/sql or java... have a look on the net for oracle trigger tutorial or you can find a super oracle-feature-documentation here : http://conf.php.net/oci2 http://conf.php.net/pres/slides/oci/paper.txt which features a small non-trigger-work-around sebastian -Ursprüngliche Nachricht- Von: Duy B [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Juli 2001 04:36 An: [EMAIL PROTECTED] Betreff: [PHP] Oracle question Dear all, If i want to use id field in Oracle database, how can i do? For example, in MySQL create table test ( id int not null auto-increment primary key, ten char(10)); So that, when i insert a new row into MySQL database, id increases by 1. But in Oracle i couldn't use as that. Somebody could help me. Thanks you all, BaoDuy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] how to use/compile ssl with apache and php?
I had to recompile apache on my redhat 7.1, because the default compilation missed some 'features'. I acomplished that since it was well documented in the php readme/install. But now i need ssl in that apache too. is there a EASY way to do that? a small tutorial? all i found with google were big tutorials which involved apache patching and NO PHP. could someone explain me what i need to ad to the apache compiling string ? ( i build php in apache ) sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Oracle 8i + non perstistant database connections remaining open.
On Tue, Jul 10, 2001 at 09:32:32AM +0100, Taylor, Stewart wrote: Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no problems during the day.However, at the end of the day there is about 20 database connections still open. This has caused a problem because when the database is shutdown to backup (overnight) and then restarted apache still retains the 20 connections. This means that when users begin using the applications again in the morning apache starts reusing the old connections plus creating some new ones and causes users to be intermittently logged out/refused access/random query failures etc.. The error messages logged when this happens are below: PHP Warning: failed to rollback outstanding transactions!: ORA-01012: not logged on PHP Warning: failed to rollback outstanding transactions!: ORA-24324:service handle not initialized A quick fix to this problem is to shutdown apache when the backup is run so all the connections are dropped/ Hovever, should these connections be remaining open in the first place? Has anyone got any ideas? if you only use ocilogon and _not_ ociplogon the connection will be closed at request and, and apache/php will not keep then open - believe me! please triple check your setup and report back! tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] stripping white space?
Hi Maxim, I wrote a mini-manual about the module. You can get it with the code from: http://helium.homeip.net/stuff/cache.tar.gz I hope it helps you and I look forward to suggestions and contributions! Bart Maxim Maletsky [EMAIL PROTECTED] wrote in message news:DC017B079D81D411998C009027B7112A015ED390@EXC-TYO-01... /cache/data/articles/0-24/... /cache/data/articles/25-50/... /cache/data/searches/... this was our original idea, the difficulty is that there's the need to access this directory from several places (mod_rewrite, php and postrges). It is easy to access but might be hard to combine the URL together. But you're right, on UNIX systems, if I am not wrong, you cannot hold more then 1024 (?) files in a single directory. So subfolders is the way to go. Cheers, Maxim Maletsky -Original Message- From: Bart Veldhuizen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 6:07 PM To: Maxim Maletsky; [EMAIL PROTECTED] Subject: Re: [PHP] stripping white space? Hi Maxim, I am definitely interested in seeing your caching modules - it could be a useful resource for ours. Right now our caching module is only in the planning stage, but there are few scratches I wrote myself, and it seems to be very promising. I'll do my best to write a short blurb on how to use it today and publish the code. I also have to do a zillion other things (like work on my new house), so I can't promise it'll actually be there today! There's a directory called /cached which we will store the file with the exactly same file names (with mod_rewrite there's no need to use any ?var=valetc=etc, you just get it looking like a directory) so it is extremely easy to locate a file. ie: if you go to a file articles/2000/10/26/features/doom then apache looks first into cached/articles-2000-10-26-features-doom.txt I can see one problem that you're gonna run into and that is that this directory will contain thousands of files. Not many OS's can handle that. In our case, each article has an article ID and the caching module automatically creates subdirectories that will hold a number of cached pages. Additionally, I can assign page 'types' to a page. These will generate new subdirectories as well. My caching directory looks like this: /cache/data/articles/0-24/... /cache/data/articles/25-50/... /cache/data/searches/... Have fun, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Oracle 8i + non perstistant database connections remaining open.
you could move to a database that supports hot backups. postgresql perhaps ? -Original Message- From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]] Sent: 10 July 2001 10:40 To: Taylor, Stewart Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Oracle 8i + non perstistant database connections remaining open. On Tue, Jul 10, 2001 at 09:32:32AM +0100, Taylor, Stewart wrote: Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no problems during the day. However, at the end of the day there is about 20 database connections still open. This has caused a problem because when the database is shutdown to backup (overnight) and then restarted apache still retains the 20 connections. This means that when users begin using the applications again in the morning apache starts reusing the old connections plus creating some new ones and causes users to be intermittently logged out/refused access/random query failures etc.. The error messages logged when this happens are below: PHP Warning: failed to rollback outstanding transactions!: ORA-01012: not logged on PHP Warning: failed to rollback outstanding transactions!: ORA-24324:service handle not initialized A quick fix to this problem is to shutdown apache when the backup is run so all the connections are dropped/ Hovever, should these connections be remaining open in the first place? Has anyone got any ideas? if you only use ocilogon and _not_ ociplogon the connection will be closed at request and, and apache/php will not keep then open - believe me! please triple check your setup and report back! tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Store uploaded files in MySQL-BLOB
I would suggest setting the database column to LONGTEXT instead of BLOB since it can accomidate far more characters per entry. As for the entry to the database through php, I'm not entirely sure what method you're using to add these. Are they uploading their file and then it reads it as it exists on the server? Is it supposed to read a file they specify with a browse but never actually upload it anywhere? It might be better to just include a text field for them to cut+paste to in a form if it's nothing but text. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP] Re: Store uploaded files in MySQL-BLOB
- Original Message - From: Adam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 12:20 PM Subject: [PHP] Re: Store uploaded files in MySQL-BLOB I would suggest setting the database column to LONGTEXT instead of BLOB since it can accomidate far more characters per entry. As for the entry to the database through php, I'm not entirely sure what method you're using to add these. Are they uploading their file and then it reads it as it exists on the server? Is it supposed to read a file they specify with a browse but never actually upload it anywhere? It might be better to just include a text field for them to cut+paste to in a form if it's nothing but text. -Adam The project is a kind of knowledge base. For each entry a user creates, he should be able to give additional information, such as every kind of file (i.e. not only code files but also images etc). There is an input type=file ... where he selects the file to be uploaded. The php-script is simply supposed to receive the file and put it into the proper database-column (which is a MEDIUMBLOB by the way, should be enough space, or what's your opinion?). Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hiding password in a class file (object-oriented programming)?
Hi Thomas! On Mon, 09 Jul 2001, Thomas David Kehoe wrote: How do I put my password into an external file? I have dozens of webpages with the line mysql_connect (localhost, username, password); What if I have to change my password? Rather then change dozens of scripts, I want to put this line into an external file and call it with include. The problem is security. If I make the file a class, then the file extension must be .inc. Anyone can type in the URL and see the contents of the file. huh? you've learnt something wrong from various places. Who said it must be inc? It can be even .my-super-dooper-class, but it's safer to just name the file .php as for passwords, define() all the parameters you use in a configuration file and keep it outside webroot e.g. /www +--/htdocs +--/images (etc.) ^- at this level let's say you have config.php w/ define('DB_PASSWORD','yabadubi') then, in db.sql you just include() the config.php file. Changing the permission to everyone-execute and owner-read doesn't work, apparently because a .inc file is read, not executed. Using the .php file extension (instead of .inc) executes the script when the URL is accessed. The user sees nothing, if the file contains no HTML. But class only works with the .inc extension. Using include without making a class treats the file as HTML and it doesn't execute. nope, include can include even foo.exe as php code, if foo.exe has php code section i.e. ?php /* code here */? so your file must least start with an open tag. cheers, -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help me install php in netscape web server ...
I use php4.0.6, zip file. I install PHP in Netscape as shellcgi, it ran Ok. But now I want to install it as NSAPI, I do all thing but php not run. ( I do the same as introducing in readme.txt) I installed PHP in Netscape Enterprise Web Server run on Win2000 advance server. Please tell me how to overcome... Thank alot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] http header
Use $HTTP_REFERER http://php.net/manual/en/language.variables.predefined.php -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 11 iulie 2001 01:23 To: [EMAIL PROTECTED] Subject: [PHP] http header Dear all folks, I want to get the url of the previous page that my visitor came from. Is this correct to use http_header? Or what function that will help me do this job? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP] Re: Store uploaded files in MySQL-BLOB
The project is a kind of knowledge base. For each entry a user creates, he should be able to give additional information, such as every kind of file (i.e. not only code files but also images etc). There is an input type=file ... where he selects the file to be uploaded. The php-script is simply supposed to receive the file and put it into the proper database-column (which is a MEDIUMBLOB by the way, should be enough space, or what's your opinion?). in my opinion you'd save yourself some major hassle by allowing them to ftp files like this directly to a server's directory via form based ftp. then perhaps add a column that adds filenames to itself with the UPDATE sql query type. this should be enough info for you to write php that could handle a listing of these dynamicly. I'm still not entirely sure the details but this is what I would do in the same situation. A db engine is for text, a server is for storing files. IMHO -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: IE cookies don't expire!
define a variable to be set on refresh along with the URL that erases the cookie by setting it's expire to time() minus a month or so. If you don't want the url varibale passer to show then have it set the cookie then to a header redirect to $PHP_SELF. ?php if ($refresh) { setcookie('cookiename', '',(time()-25920),'/',$HTTP_HOST,0); } if ($refresh) { header(location: . $PHP_SELF); exit; } ? use that in the beginning of your page and be sure to add a ?refresh= to your refreshing url. hope this helps with what i know about the subject. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: AW: [PHP] Oracle question
PL/SQL code for an Oracle trigger that will auto-increment specified field: create or replace trigger trigger before insert on table for each row begin if :new.field is null then select sequence-name.nextval into :new.field from dual; end if; end; You have to create a sequence first. Example: CREATE SEQUENCE sequence-name INCREMENT BY 1 START WITH -99 MAXVALUE 99 MINVALUE -9 CYCLE CACHE 5 ORDER; Of course, replace values in xxx as needed. If you use the aboce code verbatim, you will a field incrementing from -9... until 9 and then it will begin all over again. -Stathis. Sebastian Stadtlich wrote: oracle does not have an autoincrement. it has the more powerfull concept of TRIGGERS unfortunatelly you have to write them in pl/sql or java... have a look on the net for oracle trigger tutorial or you can find a super oracle-feature-documentation here : http://conf.php.net/oci2 http://conf.php.net/pres/slides/oci/paper.txt which features a small non-trigger-work-around sebastian -Ursprngliche Nachricht- Von: Duy B [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Juli 2001 04:36 An: [EMAIL PROTECTED] Betreff: [PHP] Oracle question Dear all, If i want to use id field in Oracle database, how can i do? For example, in MySQL create table test ( id int not null auto-increment primary key, ten char(10)); So that, when i insert a new row into MySQL database, id increases by 1. But in Oracle i couldn't use as that. Somebody could help me. Thanks you all, BaoDuy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] need a *very simple* email checker or help to design one!
hi all! i'm looking for a very basic and simple web based mail checker which just downloads pop email and thats it. tne i could change the look and feel, plus delete the messages (off the database) however i want. anyone have something? reason being i've already written an addressbook and emailer for my site, but now just want a simple mail checker which just writes the email to a databse and deletes it off the pop server. or maybe someon has some code to help with?? tIA! /sunny Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Cookie Strange Problem - Need Help
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I set up 2 cookies, one with his name and other with the number of accesses, so, when the user is taken to the main page, I print a message, and inside this message I print the two cookies. Well, the strange thing, is that in the beggining, everything was working FINE...but, without any reason, it stopped to work...it was appearing that the browser wasn't getting the cookie value or not returning it...So, I tried a lot of times and nothing happened!...I tried with Netscape and even with Internet Explorer 5.0...nothing...So, without any reason, AGAIN, it started to work in Netscape...but It don't work in Internet Explorer...noway... Any tip? Any experience like this??? Thanks in advance for any kind of help!!! Best Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Require very urgent Help about Security (pki, digital signature) along with PHP
On Tuesday 10 July 2001 04:50, Manisha wrote: I want to develop one payment site, where people will pay their tax. [...] These reports are very sensitive, so I want high end security (I am out of USA). I am thinking of using pki (public key infrastructure). If it is very sensitive, employ a good security expert. Everything else is a desaster waiting to happen. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so beautiful, so graceful, and so elegant that a million Microsoft developers couldn't have invented it even if they had a hundred years and a thousand crates of Jolt cola. - LAN Times -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session timeout
How to set the session timeout? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to fetch a group by Query?
Hello (again) I've got a query which extract titles and categories with a group by on the categorie. Is there a simple way to display rows like this (without doing a second query ): Categorie A -titi -toto -tutu Categorie B -bibi -nini -fififi Categorie C -titi -toto -tutu ... etc With cold fusion (for those who know) I want to do the same as CFOUTPUT QUERY=myquery GROUP=categorie Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Store uploaded files in MySQL-BLOB
Tom, First, I suggest using LONGBLOB as a field... Second, Once the $userfile is uploaded...use the statment as: $query = INSERT INTO ... (file) VALUES ( LOAD_FILE($userfile)); using the MySql's LOAD_FILE() Tom Gitzinger [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi friends, could anybody tell me how I best store one or several uploaded files in a MySQL database (as a BLOB). I use PHP 3. Let's say I have the variable $userfile. Is it possible to simply insert this into the database? $query = INSERT INTO ... (file) VALUES ( . $userfile . ); By the way: which version of PHP 3 do you need to upload several files at once? Tom -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: http header
It's called HTTP_REFERER PHP document: HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers will set this. Jack [EMAIL PROTECTED] wrote in message 05c201c1098e$ee947fc0$[EMAIL PROTECTED]">news:05c201c1098e$ee947fc0$[EMAIL PROTECTED]... Dear all folks, I want to get the url of the previous page that my visitor came from. Is this correct to use http_header? Or what function that will help me do this job? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: http header
Hi, Dear all folks, I want to get the url of the previous page that my visitor came from. Is this correct to use http_header? Or what function that will help me do this job? the variable $HTTP_REFERER will do the job but not all browsers support it. Manual - Variables - predefined variables for more info. cheers Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Session timeout
look in php.ini py - Original Message - From: Frédéric Mériot [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 1:33 PM Subject: [PHP] Session timeout How to set the session timeout? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Not sure how to describe this problem..
I have a chunk of code in a webpage that works like this, to rotate some ads.. : if ($row = mysql_fetch_array($getads)) { do { $POS = $row[LASTPOS]; $ID = $row[ID]; $POS++; if ($POS $numads) { $POS = 1; } $update = mysql_query(UPDATE adtracker set LASTPOS = '$POS' where ID = '$ID'); echo $row[LINKLOC]; } while ($row = mysql_fetch_array($getads)); } so it grabs the last position that ad was in from the DB, increments it by 1, unless incrementing it would push it past the max # of ads, so it resets the position to 1. The problem is, the site gets a lot of traffic, and instead of the ads retaining positions like: 1, 2, 3 or 2, 3, 1 or 3, 1, 2 as they should, I've seen it somehow go to: 1, 1, 3, or 2, 2, 1 etc. So I guess what is happening is that when 2 people hit the page at the exact same time, it's getting updated values out of the DB for some of the ads before they are all updated.. how can I go about controlling this? Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Not sure how to describe this problem..
I agreee that it sounds like you're running into concurrency issues with mySQL. I would just adopt a statistical approach, and pick a banner at random each time...if the random number generator works properly, then you'll get an even distribution over the universe of available banners. If you need up update the banner view count, you'll probably still have concurrency issues unless you lock the table or use transaction support during the UPDATE command. - Tim http://www.phptemplates.org I have a chunk of code in a webpage that works like this, to rotate some ads.. : ... So I guess what is happening is that when 2 people hit the page at the exact same time, it's getting updated values out of the DB for some of the ads before they are all updated.. how can I go about controlling this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] GetImageSize
We are having some serious issues with GetImageSize in PHP 4.0.x and i'm wondering if anyone else had similar issues and solved or came up with a different solution. For some reason, at random and without warning, the function just seems to stop working and does nothing but wait and timeout at 80 seconds. When you go to the page say www.somedomain.com it just waits and does not load anything for 80 seconds, and when it does, the images that use GetImageSize do not load. -- Matt Simpson Design Coordinator [EMAIL PROTECTED] Online Creator Inc 780 Midpark Dr. Suites 105 107 Phone: 613.389.8618 Fax: 613.389.7491 Toll Free: 1.877.768.9327 This transmission is intended only for the correct addressee(s). It may contain privileged or confidential information. Any unauthorized disclosure, copying or retransmission is strictly prohibited. If you have received this transmission in error, please so confirm by sending us a return email copy immediately, then delete the original message. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP] global.asa or application.cfm equivalent?
Hello, is there an equivalent of the global.asa (ASP) or application.cfm nope , but usually you can work around that by a sessionstuff b persistent DB connections + storing information there c enviroment vars d ... what do you need it for? sebastian -Ursprüngliche Nachricht- Von: Frédéric Mériot [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 10. Juli 2001 14:33 An: [EMAIL PROTECTED] Betreff: [PHP] global.asa or application.cfm equivalent? (cold fusion) in PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] including secure pages in PHP
It seems that I cannot include secure pages, something like include (https://www.bla.com/) will fail. Any way to get around this? or is this intentional? Thanks Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to use/compile ssl with apache and php?
Seb-, http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ I used this tutorial the first time. It was very straight forward. Remember that you dont need rsaref files anymore in the US. could someone explain me what i need to ad to the apache compiling string ? ( i build php in apache ) sebastian --ccma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] StreamMp3 from ming extension doesn't work!!!
Hi there! I'm trying a functionality from the ming library (Flash extension) that is swfmovie()-streammp3(file). This allows the streaming of an mp3 file from a web server... In fact, that is what it is supposed to do! The pb is that it doesn't work. Does anybody try it successfuly ? Thanks Octopussy. My peace of code: ? $m = new SWFMovie(); $m-streamMp3(test.mp3); header('Content-type: application/x-shockwave-flash'); $m-output(); ? My configuration: a.. Apache 1.3.20 under Windows XP RC1 b.. PHP 4.0.5RC1
[PHP] exec(), system() and
Dear list, I have a strange problem with the weird behaviour of exec() or system() When I do: exec('/usr/local/bin/php somescript.php if=infile.txt of=outfile.txt out_somescript '); in a script invoked by apache, it works perfectly - the somescript processes 'infile.txt' and produces 'outfile.txt' . BUT, if I take off the ampersand '' (ie I want to exec it and to wait for it to finish before going ahead), it does NOT work. I find an empty file 'out_somescript' and no 'outfile.txt' at all. I recompiled php (ELF binary in /usr/local/bin) without --enable-force-cgi-redirect --enable-safe-mode --enable-discard-path All files have universal read permission, the directory is writable by apache group. There is suExec module. I also tried system() to make a shell invocation. The problem persists: with it's ok, meanwhile without it doesn't execute the script. What is wrong? Please help me, thanks!! Siva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: exec(), system() and
Hmm... why don't try to use eval() read the PHP file from within your PHP script and eval the read file, Siva Subraj [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear list, I have a strange problem with the weird behaviour of exec() or system() When I do: exec('/usr/local/bin/php somescript.php if=infile.txt of=outfile.txt out_somescript '); in a script invoked by apache, it works perfectly - the somescript processes 'infile.txt' and produces 'outfile.txt' . BUT, if I take off the ampersand '' (ie I want to exec it and to wait for it to finish before going ahead), it does NOT work. I find an empty file 'out_somescript' and no 'outfile.txt' at all. I recompiled php (ELF binary in /usr/local/bin) without --enable-force-cgi-redirect --enable-safe-mode --enable-discard-path All files have universal read permission, the directory is writable by apache group. There is suExec module. I also tried system() to make a shell invocation. The problem persists: with it's ok, meanwhile without it doesn't execute the script. What is wrong? Please help me, thanks!! Siva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: form action problem
Adam, It's really better to use the isset() instead of empty() because if you set the error level report to E_ALL you will see that PHP will produce warnings if the variable is not set at all! Adam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hmmdo again as: ? function functionA() { // your function goes here } if (isset($usefunctiona)) { functionA(); } ? html body form name=form1 method=post action=?=$PHP_SELF? input type=submit name=usefunctiona value=Use functionA /form /body /html i might try: ?php function a() { //same idea put function here } function b() { //same idea put function here } if (!empty($func_a)) { a($field1); //this would assume you have passed a variable in the form to use in the function. }else if (!empty($func_b)) { b($field1); } ? form name=form1 method=post action=?php echo $PHP_SELF ? input type=text name=field value=insert value to be processed by function input type=submit name=func_a value=true /form this would also assume you need multiple functions to be used on the same form as submit buttons. This seems like the most logical/simple way to do it. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Thumbnail code that will do an entire directory at once
Great work scot! Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i wrote a little subroutine to make a directory full of images into thumbnails... it'll make thumbnail images of a specified height and width and properly resize the original image to preserve the height to width ratio. the syntax of make_thumbs() is this: make_thumbs($imagedir, $thumbsdir, $size, $quality, $border); imagedir = original images are in this dir thumbsdir = thumbnails will be saved in this dir size = height and width for the generated thumbnails quality = quality of JPG output: worst(0..100)best border = how thick of a border to put around the image. to see some samples of thumbnails that it's created, and get the code, go here: http://www.furt.com/code/make_thumbs/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Store uploaded files in MySQL-BLOB
Check out http://www.phpbuilder.com/columns/florian19991014.php3. I've been using it to maintain image galleries. Works like a champ. My guess would be that any version of php will upload multiple files... just use multiple variables = Good luck and let us know, Ben -Original Message- From: Tom Gitzinger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 2:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Store uploaded files in MySQL-BLOB Hi friends, could anybody tell me how I best store one or several uploaded files in a MySQL database (as a BLOB). I use PHP 3. Let's say I have the variable $userfile. Is it possible to simply insert this into the database? $query = INSERT INTO ... (file) VALUES ( . $userfile . ); By the way: which version of PHP 3 do you need to upload several files at once? Tom -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] FW: virus alert
I think this guy meant to post it to the list but got the wrong address: -maxim maletsky -Original Message- From: Frederick L. Steinkopf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:57 PM To: [EMAIL PROTECTED] Subject: virus alert Importance: High A message sent from me to you has an attachment that is a virus. DO NOT OPEN THE LETTER DELETE IT IF IT HAS AN ATTACHMENT. The virus is TROJ_BADTRANS.A it is a mail virus that is memory resident. This one got through PC-cillin on me Fred Steinkopf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Code Examples for Job Interview
shamefull plug alert, shame, shame alert. php/perl/java/etc/etc/etc forum gets two new posts a day. you can have tens of comments if you wait 5-7 days. -- Chris Lee [EMAIL PROTECTED] Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I invite you to the OzoneAsylum (Forum) where you can have tens of comments and really helpfull ideas http://www.ozoneasylum.com Jcampbell [EMAIL PROTECTED] wrote in message 001e01c108c2$9da68c60$779fadac@dhcpserver">news:001e01c108c2$9da68c60$779fadac@dhcpserver... Hey Everyone. This isn't a request for code or help, just thoughts and ideas. I've recently been asked to bring along some code examples for a job interview I will be heading to this week. This was the exact request The sample does not have to be within any particular language, but something that is a substantive representation of your style and logic. I'm not sure what to take. Most of my PHP and other projects are lengthy and involved. I'm not sure if it would be better to print out functions I've created that perform tasks, or just find something that did wonderfully challenging things and print that out. Anyone have thoughts on this? =- Jonathan Campbell ( [EMAIL PROTECTED] ) Mid days haze and I'm still not awake I got everything going but my bills are still late Funnier than hell and I think it's a blast Life's like a laugh when you got no money Lyrics from Average Day by Aztek Trip ( http://www.aztektrip.com ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to fetch a group by Query?
Did you try 'SELECT categorie,item FROM your_table GROUP BY categorie'? Ben -Original Message- From: Frédéric Mériot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:41 AM To: PHP General List Subject: [PHP] How to fetch a group by Query? Hello (again) I've got a query which extract titles and categories with a group by on the categorie. Is there a simple way to display rows like this (without doing a second query ): Categorie A -titi -toto -tutu Categorie B -bibi -nini -fififi Categorie C -titi -toto -tutu ... etc With cold fusion (for those who know) I want to do the same as CFOUTPUT QUERY=myquery GROUP=categorie Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP 4.0.6 and TSRM, I can't compile it! please help
i'm geting this error while compiling php Making all in TSRM /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c TSRM.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c tsrm_strtok_r.c /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c tsrm_virtual_cwd.c tsrm_virtual_cwd.c: In function `virtual_open': tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' when passed through `...' tsrm_virtual_cwd.c:568: (so you should pass `int' not `mode_t' to`va_arg') *** Error code 1 Stop in /usr/local/src/php-4.0.6/TSRM. *** Error code 1 Stop in /usr/local/src/php-4.0.6. any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Average of column...
I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP] Access to oracle db
hi did you specify the third 'optional' parameter? OCILogon (string username, string password [, string db]) db should be your tnsname on windows i could not make it without that parameter. it should be set as enviroment variable ORACLE_SID, but that did not work for me on win( it does on linux ) despite that no further configuration was needed by me after installing the oracle client sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:10 An: [EMAIL PROTECTED] Betreff: [PHP] Access to oracle db Hi, I've installed Apache server and PHP interpreter on Microsoft Windows platform. I'm trying to access to Oracle db without results (I've installed Oracle client and configured tnsnames.ora file). PHP interpreter return following error: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in ... I think that Oracle client used by PHP doesn't find tnsnames.ora file (I've tryied to move tnsnames.ora file from installation folder to another folder and error message doesn't change). sqlplus utility, that used the same tnsnames.ora file, correctly access to oracle db without problem . The question is: how can I configure PHP to enable access to oracle db via oracle client ? Thanks in advantage for any suggestion. Regards Giuliano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Average of column...
You can name the pseudo-column by doing select AVG(age) as avgage from ... and then accessing it as avgage. - Tim http://www.phptemplates.org - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 11:27 AM Subject: [PHP] Average of column... I am trying to obtain the average age for a few teams in my database. $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Authentication
hi I am trying to secure a web site and I can get one page at a time to ask for authentication but thats it. Right now every page visited asks for a password, otherwise there is no auth on them at all. So I am wondering how to make $PHP_AUTH_USER and $PHP_AUTH_PW global so that isset $PHP_AUTH_USER = valid user carries over the valid user to all pages visited until a logout button is pushed. Also I can't seem to find info on how to set up apache to require passwords for directories and not just files using php without asking for the password twice. Please help, I have looked everywhere. Thanks in advance -Dave Baldwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: AW: [PHP] Access to oracle db
HI, I use this PHP call to open an Oracle db connection: ora_logon(sr_tst@ORATEST , sr_tst) where user=password=sr_tst and service name is ORATEST . My tnsnames.ora contains: ORATEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (Host = offida) (Port = 1525) ) (CONNECT_DATA = (SID = ORATEST) ) ) Thanks Giuliano Sebastian Stadtlich wrote: hi did you specify the third 'optional' parameter? OCILogon (string username, string password [, string db]) db should be your tnsname on windows i could not make it without that parameter. it should be set as enviroment variable ORACLE_SID, but that did not work for me on win( it does on linux ) despite that no further configuration was needed by me after installing the oracle client sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:10 An: [EMAIL PROTECTED] Betreff: [PHP] Access to oracle db Hi, I've installed Apache server and PHP interpreter on Microsoft Windows platform. I'm trying to access to Oracle db without results (I've installed Oracle client and configured tnsnames.ora file). PHP interpreter return following error: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in ... I think that Oracle client used by PHP doesn't find tnsnames.ora file (I've tryied to move tnsnames.ora file from installation folder to another folder and error message doesn't change). sqlplus utility, that used the same tnsnames.ora file, correctly access to oracle db without problem . The question is: how can I configure PHP to enable access to oracle db via oracle client ? Thanks in advantage for any suggestion. Regards Giuliano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Average of column...
if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Average of column... I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Authentication
You should look into sessions...checkout www.phpbuilder.com and other places throughout the net for tutorials...always use www.php.net as well...has everything you need... jack -Original Message- From: David Baldwin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Authentication hi I am trying to secure a web site and I can get one page at a time to ask for authentication but thats it. Right now every page visited asks for a password, otherwise there is no auth on them at all. So I am wondering how to make $PHP_AUTH_USER and $PHP_AUTH_PW global so that isset $PHP_AUTH_USER = valid user carries over the valid user to all pages visited until a logout button is pushed. Also I can't seem to find info on how to set up apache to require passwords for directories and not just files using php without asking for the password twice. Please help, I have looked everywhere. Thanks in advance -Dave Baldwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: AW: [PHP] Access to oracle db
which oracle version do you use? if it is 8.x then you should use the OCI-Functions not ora if it is not 8.X then i can't help. ( and you should upgrade :-] ) the tnsnames.ora looks ok try ocilogon(sr_tst , sr_tst,ORATEST); sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:49 An: Sebastian Stadtlich Cc: 'Php-General (E-Mail) Betreff: Re: AW: [PHP] Access to oracle db HI, I use this PHP call to open an Oracle db connection: ora_logon(sr_tst@ORATEST , sr_tst) where user=password=sr_tst and service name is ORATEST . My tnsnames.ora contains: ORATEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (Host = offida) (Port = 1525) ) (CONNECT_DATA = (SID = ORATEST) ) ) Thanks Giuliano Sebastian Stadtlich wrote: hi did you specify the third 'optional' parameter? OCILogon (string username, string password [, string db]) db should be your tnsname on windows i could not make it without that parameter. it should be set as enviroment variable ORACLE_SID, but that did not work for me on win( it does on linux ) despite that no further configuration was needed by me after installing the oracle client sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:10 An: [EMAIL PROTECTED] Betreff: [PHP] Access to oracle db Hi, I've installed Apache server and PHP interpreter on Microsoft Windows platform. I'm trying to access to Oracle db without results (I've installed Oracle client and configured tnsnames.ora file). PHP interpreter return following error: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in ... I think that Oracle client used by PHP doesn't find tnsnames.ora file (I've tryied to move tnsnames.ora file from installation folder to another folder and error message doesn't change). sqlplus utility, that used the same tnsnames.ora file, correctly access to oracle db without problem . The question is: how can I configure PHP to enable access to oracle db via oracle client ? Thanks in advantage for any suggestion. Regards Giuliano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Average of column...
This doesn't work: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_object($age_result); $age=$avgage; echo Average age - .$teamID.$avgage; Neither does this: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $res = mysql_fetch_row($age_result) $age=$res[0]; echo Average age - .$teamID.$avgage; -Original Message- From: Remo Pini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Average of column... if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Average of column... I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
Perhaps not a great answer, but this issue has been brought up before, and it has to do with the incrementing of a string...search the archives...i think someone had a simple workaround using chr() to get what you want... jack -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] weird behaviour with (Z = Z)
Hello Christian, 10 July, 2001, 18:44:53, you wrote: CD Z = Z is true right?? Yes, right, but Z = Z and your code makes next iteration, then $letter = AZ and AZ is LESS that Z, because A Z. :) CD then why this weird thing happens when I have this code: CD for($letter=A; $letter=Z ; $letter+) CD echo $letter; CD it should output A B C D E . W X Y Z right? CD but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. CD why? -- Best regards, Vitalimailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Average of column...
$age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_row($age_result); $average_age=$row[0]; echo Average age of .$teamID. is .$average_age; or $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_array($age_result); $average_age=$row[avgage]; echo Average age of .$teamID. is .$average_age; read the php manual pages on stuff like mysql_fetch_row and mysql_fetch_array etc. Steve -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: 10 July 2001 16:54 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Average of column... This doesn't work: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_object($age_result); $age=$avgage; echo Average age - .$teamID.$avgage; Neither does this: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $res = mysql_fetch_row($age_result) $age=$res[0]; echo Average age - .$teamID.$avgage; -Original Message- From: Remo Pini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Average of column... if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Average of column... I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: AW: AW: [PHP] Access to oracle db
Hi, I use Oracle client 8.1.x. I've folloved your suggestion but PHP interpreter returned the same error. It's as PHP interpreter doesn't find tnsnames.ora (if I rename tnsnames.ora to tnsnames.ora doesn't change, error is always the same). sqlplus executed with parameter sr_tst/sr_tst@ORATEST is correctly executed, it's a mistery. I don't know how I can do. Thanks Giuliano Sebastian Stadtlich wrote: which oracle version do you use? if it is 8.x then you should use the OCI-Functions not ora if it is not 8.X then i can't help. ( and you should upgrade :-] ) the tnsnames.ora looks ok try ocilogon(sr_tst , sr_tst,ORATEST); sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:49 An: Sebastian Stadtlich Cc: 'Php-General (E-Mail) Betreff: Re: AW: [PHP] Access to oracle db HI, I use this PHP call to open an Oracle db connection: ora_logon(sr_tst@ORATEST , sr_tst) where user=password=sr_tst and service name is ORATEST . My tnsnames.ora contains: ORATEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (Host = offida) (Port = 1525) ) (CONNECT_DATA = (SID = ORATEST) ) ) Thanks Giuliano Sebastian Stadtlich wrote: hi did you specify the third 'optional' parameter? OCILogon (string username, string password [, string db]) db should be your tnsname on windows i could not make it without that parameter. it should be set as enviroment variable ORACLE_SID, but that did not work for me on win( it does on linux ) despite that no further configuration was needed by me after installing the oracle client sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Parisi Giuliano Gesendet: Dienstag, 10. Juli 2001 17:10 An: [EMAIL PROTECTED] Betreff: [PHP] Access to oracle db Hi, I've installed Apache server and PHP interpreter on Microsoft Windows platform. I'm trying to access to Oracle db without results (I've installed Oracle client and configured tnsnames.ora file). PHP interpreter return following error: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in ... I think that Oracle client used by PHP doesn't find tnsnames.ora file (I've tryied to move tnsnames.ora file from installation folder to another folder and error message doesn't change). sqlplus utility, that used the same tnsnames.ora file, correctly access to oracle db without problem . The question is: how can I configure PHP to enable access to oracle db via oracle client ? Thanks in advantage for any suggestion. Regards Giuliano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Q: Best EZ Free Mailing List Manager?
Hello, I need to add a Subscribable and Unsubscribable Email mailing list to a site. I'm just not in my usual break out the books and learn 1000 new things vibe this month. So... What do you superpowered pro's recommend as the best, easiest and free Email Mailing list manager, app, or cut and paste etc.? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] stripping white space?
Hi Remo, PS: Can anyone enlighten me concerning HTTP compression? I wish I could remember where I read this, but the PHP documentation still does not have this feature described. To enable zlib output compression, first make sure you have compiled PHP with the --with-zlib option. Next, add the following line to php.ini: zlib.output_compression = On That's all there is to it! Have fun, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Any banner system?
http://www.phpwizard.net/ has something called phpAds. Seems to cover your requests. Robert Zwink http://www.zwink.net -Original Message- From: José León Serna [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 7:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Any banner system? Hello: I would like to know if there's a PHP Banner system with the following features: -Allow insert the banners anywhere -Advanced statistics page -Limit on banner impressions/clicks -Allow users (my customers) to see their banners statistics -Run on MySQL Best Regards. QaDRAM, RAD development for the WEB http://www.qadram.com VCLCrawler.com, your VCL search engine http://www.vclcrawler.com W2Kwm, Windows 2000 interface for XWindow http://www.vclcrawler.com/w2kwm/index.htm ebnoud.com, El Boletín No Oficial de Usuarios de Delphi http://www.ebnoud.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ? : where in the manual?
Heya guys, I am trying to find information in the manual to explain these lines: $goto = empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl]; header(Location: $goto); die; Can anyone tell me where to look??? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Conference in California
I have heard about the PHP Conference O'Reilly Open Source Convention in San Diego, California. Do you think it is worth being there? I saw the prices and it's quite expensive. Not to mention the cost to get there... http://conferences.oreilly.com/oscon/ Thanks, Uri Even-Chen Speedy Software Raanana, Israel. Welcome to Speedy Net (In Hebrew): http://www.speedy.co.il/ Speedy Dating (In Hebrew): http://dating.speedy.co.il/ Speedy Composer (In English): http://www.speedy.co.il/composer/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Q: Best EZ Free Mailing List Manager?
qmail with ezmlm, and ezmlm-idx which provides some more advanced features. - Russ http://cr.yp.to/ezmlm.html -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Q: Best EZ Free Mailing List Manager? Hello, I need to add a Subscribable and Unsubscribable Email mailing list to a site. I'm just not in my usual break out the books and learn 1000 new things vibe this month. So... What do you superpowered pro's recommend as the best, easiest and free Email Mailing list manager, app, or cut and paste etc.? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] security
Is it possible to restrict the use of a php-file to a special file (for example an swf). -- ---: AVisioN :--- http://www.nomoremedia.de -::[EMAIL PROTECTED]::- I have nothing to declare except my genius._oscar_wild -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] flat file db
i am setting up a flat file database. i want to restrict acess so that users cant view it intentionally or accidentally. i am pretty positive this is a job for htaccess but i am pretty clueless in this area(one of many areas i am clueless in) anyone got a suggestion on a tutorial or another way to protect the db other than htaccess? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0
RE: [PHP] Oracle question
Create a sequence, like so CREATE SEQUENCE WHATEVER_IDS INCREMENT BY 1 START WITH 1 MAXVALUE 1.0E28 MINVALUE 1 NOCYCLE CACHE 20 NOORDER; then when you insert INSERT INTO test (whatever_ids.nextval); the nice thing is that in your next query you can just do whatever_ids.curval instead of looking up the value with mysql_auto_id or whatever the function is. -Original Message- From: Duy B [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 7:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Oracle question Dear all, If i want to use id field in Oracle database, how can i do? For example, in MySQL create table test ( id int not null auto-increment primary key, ten char(10)); So that, when i insert a new row into MySQL database, id increases by 1. But in Oracle i couldn't use as that. Somebody could help me. Thanks you all, BaoDuy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] flat file db
put in somewhere outside the document root, as long as your apache isn't jailed php can read your flat file wherever you put it, as long as its owned by the webserver user - Russ -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] flat file db i am setting up a flat file database. i want to restrict acess so that users cant view it intentionally or accidentally. i am pretty positive this is a job for htaccess but i am pretty clueless in this area(one of many areas i am clueless in) anyone got a suggestion on a tutorial or another way to protect the db other than htaccess? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ? : where in the manual?
www.php.net/empty www.php.net/header the x ? Y : z; form is a quick n easy structure that works like if/else do a search for classes and objects for the $CFG-wwwroot part jack -Original Message- From: Rehuel Lobato de Mesquita [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] ? : where in the manual? Heya guys, I am trying to find information in the manual to explain these lines: $goto = empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl]; header(Location: $goto); die; Can anyone tell me where to look??? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Q: Best EZ Free Mailing List Manager?
try ezmlm, it is what this mailing list is running. You'll need qmail for it to work. Or majordomo. URLs, search google, easy to find. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Q: Best EZ Free Mailing List Manager? Hello, I need to add a Subscribable and Unsubscribable Email mailing list to a site. I'm just not in my usual break out the books and learn 1000 new things vibe this month. So... What do you superpowered pro's recommend as the best, easiest and free Email Mailing list manager, app, or cut and paste etc.? Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Post a form within a running php-script
A class which allows you to post from within a php script and retrieve the results: http://px.sklar.com/code-pretty.html?code_id=313 Julian On Sunday, July 8, 2001, at 11:22 PM, mike cullerton wrote: on 7/8/01 11:17 PM, Bob Horton at [EMAIL PROTECTED] wrote: What if someone wanted to reply to a form but the form was expecting the information to arrive using the POST method (and wasn't explicitly PHP)? Is there any way to do it if you want to submit to a POST method form? Or some way to simulate the entering of the information and clicking of the submit button? i'm not sure if this is what you are asking, but i can have an url like http://mysite.com/?submit=click_meopt=my_option and refer to those inside my program as $submit and $opt -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Julian Wood Multimedia developer University of Calgary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] flat file db
is there a way i can check this? and what is the liklihood of it being so? - Original Message - From: Chadwick, Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 11:23 PM Subject: RE: [PHP] flat file db put in somewhere outside the document root, as long as your apache isn't jailed php can read your flat file wherever you put it, as long as its owned by the webserver user - Russ -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] flat file db i am setting up a flat file database. i want to restrict acess so that users cant view it intentionally or accidentally. i am pretty positive this is a job for htaccess but i am pretty clueless in this area(one of many areas i am clueless in) anyone got a suggestion on a tutorial or another way to protect the db other than htaccess? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] security
Check what the user agent is for the SWF, and see if it passes a specific referer. That should deter 99% of attempts. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: AVisioN:::nomoremedia::: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 12:08 PM Subject: [PHP] security | Is it possible to restrict the use of a php-file to a special file (for | example an swf). | | | -- | ---: AVisioN :--- | http://www.nomoremedia.de | -::[EMAIL PROTECTED]::- | | I have nothing to declare except my genius._oscar_wild | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Average of column...
hm, not too surprising, no colon delimiter... $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); $res = mysql_fetch_row($age_result); $age = $res[0]; echo Average age - $teamID$age; should work actually... btw, if teamID is numeric, you have to omit the ' thingys... -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:54 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Average of column... This doesn't work: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_object($age_result); $age=$avgage; echo Average age - .$teamID.$avgage; Neither does this: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $res = mysql_fetch_row($age_result) $age=$res[0]; echo Average age - .$teamID.$avgage; -Original Message- From: Remo Pini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Average of column... if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Average of column... I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get the average age from this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
I would rather go for the following solution: for($i=ord('A'); $i=ord('Z'); $i++) echo chr($i).' '; I know it's same and even slower as it takes two more functions to execute, but at least it is visually closer to what Christian was trying to do. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:13 AM To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ? : where in the manual?
These are called (well, one name for it), is ternary operator. It's not PHP specific and a search on google will find some results. Regarding PHP, brief discussion (with examples) can be found at the following locations : http://www.php.net/manual/language.expressions.php http://www.php.net/manual/language.operators.comparison.php I don't think it's recommended to use it for multiple lines, looks kinda screwy. Although, each to their own. Regards, Philip On Tue, 10 Jul 2001, Rehuel Lobato de Mesquita wrote: Heya guys, I am trying to find information in the manual to explain these lines: $goto = empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl]; header(Location: $goto); die; Can anyone tell me where to look??? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Line by Line , Word by Word
How to read file line by line and read line word by word _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
I forget which version of PHP allows you to do the following, it may be 4.0.6 or maybe 4.0.7 : for ($a='a'; $a='z'; $a++) { print $a; } The way I get around this is by : $letter = 'a'; for ($a=1; $a=26; $a++) { print $letter++; } It works or at least may easily work for your given situation. And on a related note, in 4.0.7 the range() function will allow for : $letters = range('a','z'); As currently it just allows for integers. Regards, Philip On Wed, 11 Jul 2001, Maxim Maletsky wrote: I would rather go for the following solution: for($i=ord('A'); $i=ord('Z'); $i++) echo chr($i).' '; I know it's same and even slower as it takes two more functions to execute, but at least it is visually closer to what Christian was trying to do. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:13 AM To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ? : where in the manual?
same from : header(Location: .(empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl])); Exit; or, if not readable enough then: if(empty($SESSION[wantsurl])) { $goto = $CFG-wwwroot; } else { $goto = $SESSION[wantsurl]; } header(Location: $goto); Exit; // or die; (condition) ? 'result if true' : 'if false'; is exactly same thing as: if(condition) { 'result if true'; } else { 'if false'; } the only difference: it can be only one line (one semilon ';') on any of the two results and can be only ONE evaluation (no 'elseif') and must have an 'else'; I'll tell you also a few reasons to use this syntax: 1. less lines for PHP to compile. 2. saves you the headache when there are lot's of conditions to do inside the strings or function returns; 3. less useless variables to declare. Good question though, where is this documented? I knew it from other languages... but never came accross it on PHP docs except the code samples.. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Rehuel Lobato de Mesquita [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:16 AM To: [EMAIL PROTECTED] Subject: [PHP] ? : where in the manual? Heya guys, I am trying to find information in the manual to explain these lines: $goto = empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl]; header(Location: $goto); die; Can anyone tell me where to look??? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Line by Line , Word by Word
In short : file() opens the file line-by-line and you can explode() each line via a space ' ' although not perfect, it could work for you. See manual for details. Regards, Philip On Tue, 10 Jul 2001, alfareees alfareees wrote: How to read file line by line and read line word by word _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] weird behaviour with (Z = Z)
wow, I have just upgraded a couple of servers to v.4.0.6. Will go wild testing this staff tomorrow. Thanks Philip. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:45 AM To: Maxim Maletsky Cc: Jack Dempsey; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) I forget which version of PHP allows you to do the following, it may be 4.0.6 or maybe 4.0.7 : for ($a='a'; $a='z'; $a++) { print $a; } The way I get around this is by : $letter = 'a'; for ($a=1; $a=26; $a++) { print $letter++; } It works or at least may easily work for your given situation. And on a related note, in 4.0.7 the range() function will allow for : $letters = range('a','z'); As currently it just allows for integers. Regards, Philip On Wed, 11 Jul 2001, Maxim Maletsky wrote: I would rather go for the following solution: for($i=ord('A'); $i=ord('Z'); $i++) echo chr($i).' '; I know it's same and even slower as it takes two more functions to execute, but at least it is visually closer to what Christian was trying to do. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:13 AM To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z) what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with (Z = Z) Z = Z is true right?? then why this weird thing happens when I have this code: for($letter=A; $letter=Z ; $letter+) echo $letter; it should output A B C D E . W X Y Z right? but it outputs A B C D E ... W X Y Z AA AB ... YW YX YY YZ. why? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Line by Line , Word by Word
readfile(bla bla bla and then explode(' ', $line[$i]) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: alfareees alfareees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Line by Line , Word by Word How to read file line by line and read line word by word _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Thanx Guys
Thanx for the explanation of the ternary operations If I can help, Please let me! Rehuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] include nubie question - need help
Hello I migrated to php 4.0.5 under windows IIS 5/win2000 AS The following line - if($HTTP_POST_VARS['user_name']) { ... WHATEVER ...} - returns me following error with and without global $HTTP_POST_VARS Warning: Undefined index: user_name in E:\10ioWebSite\sales\login.php on line 99 and the line - include (login.htm); returns following: Warning: Failed opening 'login.htm' for inclusion (include_path='.') in E:\10ioWebSite\sales\login.php on line 131 the php.ini sais: include_path = . both files are in the same dir. Any ideas? thank you
Re: [PHP] Line by Line , Word by Word
www.php.net/fgetcsv Use a space as the deliminator. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: alfareees alfareees [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 12:43 PM Subject: [PHP] Line by Line , Word by Word | How to read file line by line and read line word by word | | _ | Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]