Re: [PHP] eregi filter
Erin wrote: Anyone have a good eregi filter for passwords? Regards R well, for one thing, don't use ereg. Use pcre, as it is faster. preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah); that will validate a password containing only upper or lowercase letters and numbers, between 5 and 16 characters. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] About iMail Help
D. Jame wrote: Hi, Anyone know about imail.? could you be any more vague? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fgetcsv
zhuravlev alexander wrote: Hello. I wonder if PHP has fgetcsv() function why doesn't PHP has fputcsv ? -- zhuravlev alexander u l s t u n o c ([EMAIL PROTECTED]) because it would be bloat, basically. We now have file_put_contents in php5, which I like...but still view as bloat. You can easily enough use fopen and fwrite to add content to the csv file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie stuck again
PAUL FERRIE wrote: Here's what i have done. i have downloaded a very simple database manager from www.hotscripts.com. It allows me to edit, delete and add new information to the database. i have a couple of problems. 1. form field dont fill with all the data senback from the db to be edited, as fars as i am aware all fields except 'review' are long enough 2. In my common.php file for connecting to the db i have $database=mysql_connect ("localhost", "blah", "") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("***_vinrev"); $tablename="albums"; ?> I have 2 tables in my database and would like to use a "drop down menu" to select the table we wish to view and edit. so taken $tablename out of the common.php file and having it sset within the main navigation. i am pretty sure i can set the drop down menu option but what is/would be the $query for returning how many and display table names? Cheers Paul http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html your probably looking for something like 'show tables'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Moving to php
DvDmanDT wrote: Well, yes.. But chanses aren't all that big you'll find any bugs (at least not windows specific), unless you try the w32api extension or bcompiler combined with zend optimizer... I've ran into many. The ones that really take the cake are the streams bugs, which have been around since the inception of socket support. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Moving to php
DvDmanDT wrote: PHP is 99% (if not 100%) backwards compitable... PHP is even stable on WinME, and on XP.. Lots of ppl use it on 2k as well... Works fine.. And fast (well, depending on your installation and configuration)... Oh, and about support.. PHP on windows accutually have it's own official list/newsgroup (php-win or php.windows).. :) MySQL and PHP is very good friends.. :) PHP on windows platforms isn't as good as it 'could be'. A lot of the windows oriented bugs go unfixed, because most core hackers don't care. The major opinion is "why fix bugs on a buggy platform?". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Who controls PHP?
John Nichel wrote: Chris Shiflett wrote: --- John Smith <[EMAIL PROTECTED]> wrote: >> Please, tell me that Zend is not the dictator here. No one is a dictator. Chris So there is an opening for a dictator then? How can I get my name on the ballot? ;) I am the only dictator here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie question about scope
news.comcast.giganews.com wrote: I am an experienced web developer who is just getting into php. I have had a php project fall into my lap and wanted a little advice. Here is the scoop: A client moved their site from a server (unknown details) to a hosting facility (php 4.3.2). Now none of the scripts work. I have guessed that they are coming from an earlier version of apache/php. Anyway it appears that whoever created the site in the first place did not believe in scoping variables. Now any variable that is not properly scoped will not be read by the server. I know I can simply scope all of the variables, but I was hoping there may be an easier way. Also, how bad is the _REQUEST scope I read that "it could not be trusted", however the previous developer created the app in such a way that several places a variable could be _GET or _POST. I apologize for the rambling and possible incoherency of this message, I am a bit tired. Matthew PS. How do you scope queries? You're thinking about this in the wrong way, it seems. The server probably has register_globals Off, where previously he was programming with it being On. or vise-versa. They should be Off, and should be left off, but programming with them off needs some adjusting. Variables such as post and get data are now 'superglobals', and must use the appropriate arrays; $_GET[], and $_POST[]. There are things like extract(), but using them is not advised. as per your question about "scope queries", be more concrete :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mysql_list_fields() bug?
as said, use the global construct. This is a scope problem, read the manual about variable scope. php.net/variables.scope PS: sorry Jay, new mail frontend :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php