RE: [PHP] Opening a new window.

2001-12-14 Thread Richard S. Crawford
. Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- PHP General Mailing List

RE: [PHP] Opening a new window.

2001-12-14 Thread Richard S. Crawford
, and that's all I'm gonna give 'ya to play with ... we know best. Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint

Re: [PHP] HTML Email

2001-12-18 Thread Richard S. Crawford
somethign super obvious but I am trying to send a simple HTML email. It works in Netscape mail, Pegasus etc however in Outlook and Outlook express it actually places the Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sliante, Richard S. Crawford http

Re: [PHP] QUESTION: how to validate credit card number before sent to Versi gn?

2001-12-19 Thread John S. Huggins
Look at the strings section of the PHP online manual. The function of choice is probably something like str_replace(). Not sure if this is the correct thing, but I know you can do what you want with a PHP string function. Good luck and make sure to keep those damn CC numbers nowhere on your

Re: [PHP] How to strip off all html-comments

2001-12-31 Thread Richard S. Crawford
Forget Napster. Why not really break the law? -- 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] Sliante, Richard S. Crawford http

[PHP] array_walk inside class method

2002-01-05 Thread S. Murali Krishna
Hi All, I want to use array_walk function inside a class method. But the problem is i want the second argument to array_walk ( function name ) be a another function of the same class. when i gave like that its telling Error : function not exist. class some() { function

Re: [PHP] POSTing HTML into a database

2002-01-06 Thread Richard S. Crawford
administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button

Re: [PHP] array_walk inside class method

2002-01-07 Thread S. Murali Krishna
Hi Thanks for ur help. Its Working but I couldn't understand the syntax given by u can u explain pls. Thanks again. On Sun, 6 Jan 2002, Gyozo Papp wrote: it may be better: array_walk($this-array, array($this, 'func1'); Attila Strauss [EMAIL PROTECTED] wrote in

Re: [PHP] strip from html to closing body tag

2002-01-07 Thread S. Murali Krishna
Hi, Ur quest is not clear. Whether u want to delete everything upto body tag or only html tags up to body tag. anyway this might work for the former. $parsed = preg_replace(/\\n/,,$html); // to remove '\n' in HTML file $parsed = preg_replace(/^(html.*)(body.*)/,\\2,$parsed); // to

Re: [PHP] strip from html to closing body tag

2002-01-07 Thread S. Murali Krishna
Hi, the code u sent is displaying the html as it is, but There is more than one way to do that. Atmost we can atleast do this. $pos = strpos($html,body); $start = substr($html,0,$pos - 1); $html = substr($html,$pos); $start = preg_replace(/html/,,$start);

Re: [PHP] A Problem With Loops

2002-01-10 Thread S. Murali Krishna
Show the loop code. On Thu, 10 Jan 2002, Ash Young wrote: Hi, I am having a problem with any type of loop, for, foreach, while. I have a PHP script that loops through an array that contains the contents of a text file and processes the data it recieves. My problem is that the loop

[PHP] PHP4.1.1 + RH7.2 + UCD-Snmp

2002-01-11 Thread Antonio S. Martins Jr.
manual pages (http://www.php.net/snmp). Any tips on this? Thanks in advance, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr

Re: [PHP] Re: IMPORTANT about asking QUESTIONS

2002-01-11 Thread Richard S. Crawford
an existing thread rather than starting a new thread. all it takes is a few minutes to familiarize oneself with the newsreader, but apparently a few minutes is too much.. Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only

Re: [PHP] Using a HTML button

2002-01-11 Thread Richard S. Crawford
-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- PHP

[PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread S. Murali Krishna
Hai ALL Is there any way to capture function call in PHP and redirect to some other function if that function doesn't exists. Perl programmers remind AUTOLOAD method in a package. S.Murali Krishna [EMAIL PROTECTED] = We grow slow trying

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread S. Murali Krishna
{ echo IMAP functions are not available.br\n; } HTH Neil S. Murali Krishna wrote: Hai ALL Is there any way to capture function call in PHP and redirect to some other function if that function doesn't exists. Perl programmers remind AUTOLOAD method in a package

Re: [PHP] ok, I ask again.. how to encrypt to be able to matchdatabase info?

2002-01-21 Thread Antonio S. Martins Jr.
, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | Only The Shadow Knows | | WorldNet Internet Maringa - PR - Brasil | what evil lurks in the | | E-Mail: [EMAIL PROTECTED

Re: [PHP] How to call Calling Non-Existing function

2002-01-21 Thread S. Murali Krishna
) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: S. Murali Krishna [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, January 21, 2002 1:17 PM Subject: [PHP] How to call Calling Non-Existing function Hi PHP Experts, Is there any way

Re: [PHP] Best way to get the remote IP address?

2002-01-22 Thread Antonio S. Martins Jr.
://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] +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | Only

Re: [PHP] array_walk inside class method

2002-01-22 Thread S. Murali Krishna
yourself if u have time. It is urgent . pls Thanks in Advance On Mon, 7 Jan 2002, S. Murali Krishna wrote: Hi Thanks for ur help. Its Working but I couldn't understand the syntax given by u can u explain pls. Thanks again. On Sun, 6 Jan 2002, Gyozo Papp wrote

[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Stig S. Bakken
On Tue, 2002-01-22 at 22:17, Alex Black wrote: Template classes are also foundation components of modern applications. They are certainly important, but they do not prevent interoperability in the same way that different database abstraction packages do. application, using APIs that

[PHP] Re: [PEAR-DEV] Re: [binarycloud-dev] Re: [PEAR-DEV] Re:[metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-25 Thread Stig S. Bakken
On Tue, 2002-01-22 at 22:24, Björn Schotte wrote: * Alex Black wrote: Of course, but no one forces you to do that. I, as a developer, can choose if I want to use PEAR::Metabase in my application or PEAR::DB. Yes, which is not a good idea. If you're tying to get people to use a common

Re: [PHP] Javascript Parser?

2002-01-26 Thread Richard S. Crawford
I'm not entirely sure I understand your question. Are you asking if there's an easy way to convert programs from JavaScript to PHP? saif wrote: hi, is there any site from where i can get the php scripts which can parse the javascript or at lest document.write(ln) part into php echo

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Demitrious S. Kelly
You don’t. md5 is one way encryption -Original Message- From: Jason G. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:06 PM To: Nicolas Costes; Jose; [EMAIL PROTECTED] Subject: Re: [PHP] How can I decrypt a password I previously coded with md5()? Hi Nicolas, I would be

Re: [PHP] Firewall

2002-02-06 Thread John S. Huggins
On Wed, 6 Feb 2002, Thomas Franz wrote: -Hi, - -i hope this is the right group for my question. - -i've written a php-program with a ftp-connection to a mysql database. - -now there is one problem. the local network has a firewall. Now, if i try to -connect to the database via ftp there is an

[PHP] Creating Tab-Delimited Text File

2002-02-07 Thread Phillip S. Baker
Greetings All, What I want to do is create a tab-delimited text file for download from records in a database. I am not sure on how to do this. So what I want to do is as follows. ON a page a button is clicked. Script is activated that pulls records from a database. From these records a

Re: [PHP] RE: Creating Tab-Delimited Text File

2002-02-07 Thread Phillip S. Baker
. However I have not done the part about actually creating a new file in the text format make sure the results are tab-delimited and then make it available for download. Can you help me with that part specifically? Thanks Phillip -Original Message- From: Phillip S. Baker [mailto

Re: [PHP] How can i count the number of users logged in my system

2002-02-12 Thread John S. Huggins
Create a user activity table which stores the time when the user does anything. Then query it with a GROUP BY user syntax and constrain the records to only those after, say, an hour ago if you think that users doing something during the last hour means they are in there doing something. This

[PHP] Looking for optimal coding

2002-02-14 Thread Phillip S. Baker
programmers out there with the way to chop this even further? Thanks Phillip +++ IMPORTANT: This email message (including attachments, if any) is intended for the use of the individual addressee(s) named above and may contain information

Re: [PHP] Text editor for linux

2002-02-18 Thread Billy S Halsey
-- === Billy S Halsey Software Problem Resolution ESP Solaris Software Email [EMAIL PROTECTED]Sun Microsystems, Inc -NO DAY BUT TODAY

[PHP] Q on php://stdin

2002-02-18 Thread Billy S Halsey
:-) -- === Billy S Halsey Software Problem Resolution ESP Solaris Software Email [EMAIL PROTECTED]Sun Microsystems, Inc -NO DAY BUT TODAY

Re: [PHP] Mysql_num_rows

2002-02-18 Thread Phillip S. Baker
(including attachments, if any) is intended for the use of the individual addressee(s) named above and may contain information that is confidential, privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humor or irrational religious beliefs. If you are not the intended

[PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Phillip S. Baker
Okay Gents and Ladies, I am looking for more information on how best to do this. I have a MyQSL back end. It houses a users user_name and password. I have a secure area of the site that I only want members to view. The way I have it now is that the user logs in. If user_name and password

[PHP] Looking for good tutorial on Sessions

2002-02-19 Thread Phillip S. Baker
Greetings all, I am looking for a good tutorial on the net about sessions. I have found a few but they do not seem to go in much detail about full use. Can anyone suggest anything? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Timing Sessions Out

2002-02-19 Thread Phillip S. Baker
Hey Gents and Ladies, I read that sessions can be set to timeout after a certain period of time. However I have not come across anything that tells me how to do that. So how do I specify when sessions are to timeout? Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Timing Sessions Out

2002-02-19 Thread Phillip S. Baker
At 03:21 PM 2/19/2002 Tuesday, Johnson, Kirk wrote: See session.gc_maxlifetime in php.ini. Kirk I assume that the value given is in seconds. Correct?? Thank you for the response. Phillip -Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: Tuesday

[PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
Is there an easy way to pull all the variables after the URL? Let use say that the page I am looking at is this. www.somewhere.com/pages.php?id=27color=redbgcolor=green Now on the page I want a link to have the 3 variables from above. I know I can do this. a href=another_page.php?id=?php echo

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
phpinfo(); is your friend. Insert into a PHP script which has a query string (the part of the URL after the ?) and look at the environment variables available and listed in the output generated by phpinfo(). The variable you're looking for is $QUERY_STRING, but you really should get familiar

Re: [PHP] timestamp confusion

2002-02-20 Thread Billy S Halsey
something like: ? echo date('d M Y',$stamp - $difference); ? Seems easy enough, but 1399 doesn't seem right to me! Where have I lost the plot??? Justin French http://indent.com.au http://soundpimps.com -- === Billy S

[PHP] Trouble with Sessions

2002-02-20 Thread Phillip S. Baker
Hey All, I just converted my login process to sessions. It works great. However I am having one annoying issue come up. The site is a secure site. So each page has an include to check to see if a validated session is there. If not a login forma appears and so on. It all works just fine.

Re: [PHP] Q on php://stdin

2002-02-20 Thread Billy S Halsey
suggestions. I didn't get any replies the first time I asked, so I'm hoping that someone has something to contribute. I'm using PHP 4.1.1 on Solaris 8. Thanks in advance, -bsh Billy S Halsey wrote: Hi all, I've been trying for the last three hours to do something like this: #!/usr/local/bin

Re: [PHP] Q on php://stdin -- an answer!

2002-02-21 Thread Billy S Halsey
it be possible for someone to look into or offer an explanation for why the code for fgets() does an lseek() after each read? Thanks. -bsh Billy S Halsey wrote: Hi all, I still have been completely unable to get this to work like it should. I have a simple script: #!/usr/local/bin/php -q ?php

[PHP] Help!

2002-02-21 Thread Phillip S. Baker
Hey All, Last night I was doing some coding. I am not sure what happened but has anyone run into this error before. Method Not Allowed The requested method POST is not allowed for the URL /index.html. Apache/1.3.19 Server at nocal.mkp.org Port 80 More data about this. This ONLY appears with

Re: [PHP] Email Verification

2002-02-24 Thread Billy S Halsey
to send an email to them, but cancel the request before you actually send anything - doesn't always work though, as some servers will report back the all users are correct -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc

[PHP] Numbered Arrays

2002-02-25 Thread Phillip S. Baker
What is the quick way to generate numbered arrays? I cannot seem to find it in my documentation. Looking to generate and populate an array with the numbers 0-23. Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
Try these... function encode($string) { $string=stripslashes($string); $temp=''; $newstring=''; for ( $counter=0; $counter != ; $counter++ ) { $temp=substr($string, $counter, 1); if ( $temp == '' ) {

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
slashing and validating, and revalidating, etc, etc, etc, etc so I made this. Which makes things 1000% simpler -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:11 PM To: Demitrious S. Kelly; 'PHP General' Subject: RE: [PHP] Variables

RE: [PHP] What's wrong w/ this line?

2002-02-25 Thread Demitrious S. Kelly
A .phps would be helpful -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:05 PM To: PHP General Subject: [PHP] What's wrong w/ this line? PHP seems to be completly ignoring this line... Funny part is that i use this same line in

RE: [PHP] CGI

2002-02-26 Thread Demitrious S. Kelly
Also, make sure that if you run the script with user input that you validate the input... Input like 'username; cat /etc/passwd' would be no fun at all -Original Message- From: Simon Willison [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 7:14 AM To: bvr Cc: php-general

RE: [PHP] cool PHP sites

2002-02-26 Thread Demitrious S. Kelly
well my site isn't 'big name' but it's got a very cool catch to it... it's got an ftp indexer that I'm developing. You submit an ftp site, and it logs onto the ftp, grabs all of the filenames and sizes, pops everything into a mysql database, which is searchable from a web page (located on the

RE: [PHP] is_uploaded_file() emulation?

2002-02-26 Thread Demitrious S. Kelly
Create a tmp file with the script and get the owner/group from that My $.02 -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 1:23 PM To: [EMAIL PROTECTED] Subject: [PHP] is_uploaded_file() emulation? Hello all! How do I find out if

RE: [PHP] How many files can be in one directory?

2002-02-26 Thread Demitrious S. Kelly
Yes and no. The directory would use an inode, but splitting the stores into separate directories would help drastically improve cpu and memory utilization when working with large numbers of files (10's of thousands) Right or wrong that's what I have to say -Original Message- From: Andy

[PHP] php compiler project(s)?

2002-02-28 Thread Demitrious S. Kelly
Are there any win32 / *nix PHP compilers out there to make a binary executable I remember one for win32 a while back but that's no longer even a glimmer in somebody's eyes anymore Anyone have any info on the subject? (I'm not even looking for something GTK compliant just something that works)

RE: [PHP] Variables containing HTML?

2002-02-28 Thread Demitrious S. Kelly
Consider ?php echo serialize('blah'); ? it returns 's:4:blah;' now, consider encode('blah'); it returns '098108097104' now consider which of the two output strings you end up having to escape special characters for... :) -Original Message- From: Erik Price [mailto:[EMAIL

Re: [PHP] interesting problem / NETSCAPE-related

2002-02-28 Thread Billy S Halsey
Vlad, Try a href=$PHP_SELF?lang=ukrIMAGE/a /bsh/ -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

RE: [PHP] Re: Does anybody have code for this?

2002-03-01 Thread Demitrious S. Kelly
function scramble($string) { $count2++; while ( $count2 != strlen($string) ) { $bad=1; while ( $bad == 1 ) { $rand=rand(0, (strlen($string) - 1)); if ( $used[$rand] != 1 ) {

RE: [PHP] RE: Andrey this is for you.

2002-03-01 Thread Demitrious S. Kelly
Type: find / -name mysql -type f 2 /dev/null if you see something like /usr/local/bin/mysql then you do (that dosent mean that the demon is running, but the client is at least installed... to see if you have the daemon installed find / -name safe_mysqld -type f 2 /dev/null and to see if

RE: [PHP] fopen

2002-03-02 Thread Demitrious S. Kelly
Heres a script I wrote to pull the top viruses from antivirus.com Hope this helps... ?php $antivirus=file ('http://www.antivirus.com/'); unset($start); unset($stop); $count=0; foreach($antivirus as $line) { if ( ! isset($stop) ) { if ( eregi('Top viruses', $line) ) {

[PHP] Displaying Number values

2002-03-03 Thread Phillip S. Baker
Hey All, I want PHP to print out the value of a number in a variable as something like 01 However whenever I try to I only get 1 Is there a way around this? Phillip -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

RE: [PHP] Verify script location...

2002-03-05 Thread Demitrious S. Kelly
http://www.php.net/manual/en/language.variables.predefined.php $HTTP_HOST Contents of the Host: header from the current request, if there is one. $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

RE: [PHP] value of an array into a sendmail function

2002-03-05 Thread Demitrious S. Kelly
$mail=''; foreach($automail as $mailline) { $mail.=$mailline; } $to = $EMAILADDRESS $subject = Thank You for your submission!; $message = eval($automail); $fromaddress = [EMAIL PROTECTED]; mail($to, $subject, $mail, $fromaddress); that's my $.02 -Original Message- From: Kris

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Demitrious S. Kelly
I've often wondered the same thing... which is why I've never moved to OOP So I'm patiently waiting for a reply to this message as well :) -Original Message- From: mojo jojo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP .. I

[PHP] PHP and Majordomo

2002-03-06 Thread Phillip S. Baker
Greetings Folks, Is there a PHP application out there that handles admin functions to majardomo email lists? If so where can I get something like that? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
What exactly are you trying to accomplish here? In my script I have a login form. On the valdation script all my session vars are registered. I run a script to check to see if the username and password are auth. If they are I then run some scripts to set the values of the various session

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
A few things here. Is this the full code you are using? First thing however is that you have to specifically assign values for a session variable. It is simply not enough to register the session variable. So if you session_register(login_username); And echo $login_username it will print

[PHP] PHP and Majordomo

2002-03-06 Thread Phillip S. Baker
Greetings Folks, Is there a PHP application out there that handles admin functions to majardomo email lists? If so where can I get something like that? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calling a Variable in a weird Way

2002-03-06 Thread Phillip S. Baker
I am not sure I can articulate this well. But I will try. I want to combine either two variables or a variable and string to bring up the name of a previous variable name to display the data from the first. So in the first part I will have a listing that will look like type=radio name=state_1

Re: [PHP] A silly question. :P

2002-03-08 Thread Billy S Halsey
-http://www.gdesigns.vcn.com -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer

Re: [PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Richard S. Crawford
. Either tables or/and cell background doesn't show up or spacing between two tables is not what it is supposed to be. If anyone can give me suggestion about where to look for some hints online that would be appreciated. Thanks, Vlad -- Sliante, Richard S. Crawford mailto:[EMAIL PROTECTED

RE: [PHP] Testing mail functionality on a local network possible?

2002-03-10 Thread Demitrious S. Kelly
If you are running a good mailserver (I use qmail + linux or freebsd) you can send mail internally without being connected to anything... generally address@localhost will send without a connection to the internet, or [EMAIL PROTECTED] if the mail server is configured to accept mail for

RE: [PHP] Re: A stupid question...

2002-03-10 Thread Demitrious S. Kelly
You haven't given anyone any specifics... nor a link to a phps, so I cannot be any more specific with my advice You could probably get away with looking through each of the elements in the array and using something like if ( substr($element, 0, 1) == $letter ( {

RE: [PHP] Netscape Vs. IE

2002-03-11 Thread Richard S. Crawford
://www.php.net/unsub.php -- Sliante, Richard S. Crawford mailto:[EMAIL PROTECTED] http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de

[PHP] Re: removing ALL whitespace from a string

2002-03-11 Thread Jordan S. Jones
You can use a regular expression for that.. However, I don't have that right here.. Jordan Lee P Reilly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can somebody tell me if there is a function that will remove *all* whitespace (\n, \r, \t, \w, etc) from a

RE: [PHP] removing ALL whitespace from a string

2002-03-11 Thread Demitrious S. Kelly
You can use strtok() with ' ' as the delim -Original Message- From: Lee P Reilly [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 8:56 AM To: PHP List Subject: [PHP] removing ALL whitespace from a string Can somebody tell me if there is a function that will remove *all*

Re: [PHP] phpMyAdmin

2002-03-11 Thread John S. Huggins
On Mon, 11 Mar 2002, Chuck PUP Payne wrote: -I have a client that has install phpMyAdmin but can't get into he gets this -error; - -Error -MySQL said: - - -Access denied for user: 'root@localhost' (Using password: NO) - - -Is there a way to get into if he knows the password? Well, yes. The

Re: [PHP] index.php question

2002-03-11 Thread Jordan S. Jones
That means that it isn't getting passed off to the PHP executable or dll. Instead, it is getting sent to the client as plain text.. Go to the Home Directory tab in the IIS admin. From there, click on Configuration. Add an Application Mapping for .php. Restart IIS, and you should be good.

[PHP] Re: dynamic startpage in flash...

2002-03-11 Thread Jordan S. Jones
In the HTML for embedding the Flash Movie, do something like this: OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0 id=projector WIDTH=100% HEIGHT=200% PARAM NAME=movie VALUE=filename.swf?mail_url=?php echo

RE: [PHP] Scope problem in while loop

2002-03-11 Thread Demitrious S. Kelly
I may be wrong, but that's exactly what I ended up having to do... but don't quote me - I'm just learning OOP http://www.apokalyptik.com/forum/viewtopic.php?topic=140forum=60 -Original Message- From: Randall Perry [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 6:52 PM To:

Re: [PHP] 'undef' as an argument value

2002-03-12 Thread Jordan S. Jones
function foo ($arg1_required, $arg2_options = ) { if (empty($arg2_optional) { print not passed; } else { print explicit; } } Or you can go the other route. Jordan Rodent Of Unusual Size [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Can't display PNG images

2002-03-12 Thread Jordan S. Jones
The icon essentially means that it was a broken image, or that they code did not work. I know that wasn't much help. On another point, in my opinion, it doesn't make a whole lot of logical sense to have a die(Error text) statement in code that creates an image.. If an error does occur, it will

[PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Jordan S. Jones
Direct quote from MySQL by Paul DuBois MySQL 3.23 introduced the new AUTO_INCREMENT behaviors of not reusing sequence numbers and allowing you to specify an initial sequence number in the CREATE TABLE statement. These behaviors are undone if you delete all records in the table using a DELETE

[PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
Hey all, I am, and have been for some time, in search of a PHP IDE that allows me to view things more on a project basis. Meaning, that I would like to have some sort of Class browsing capabilities along with file browsing capabilities. I am also looking for a decent freeware Texteditor/Web

Re: [PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
is BSD. Best reagrds, Andrey Hristov - Original Message - From: Jordan S. Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:23 PM Subject: [PHP] PHP IDE Hey all, I am, and have been for some time, in search of a PHP IDE that allows me to view thi

RE: [PHP] php array

2002-03-12 Thread Demitrious S. Kelly
Something like this: ?php $valid=1; foreach ( $name as $value ) { if ( $value == '' || ! isset($value) ) { $valid=0; } } if ( $valid == 1 ) { do_stuff(); } else { give_error(); } ? -Original Message- From: Rodrigo Peres

[PHP] RE: [PHP-DB] Random Selecting from mySQL

2002-03-13 Thread Demitrious S. Kelly
Pass along a hidden form which documents exactly what rows have already been shown input type=hidden name=seen value=1:4:3:9:10:5:27 then you could use $seen=explode(':', $seen); to break it into an array... after that use a foreach to add a 'and id != '.$seen into the sql query for every

RE: [PHP] rand()

2002-03-13 Thread Demitrious S. Kelly
Something to the effect of $num=0; do { $num=rand(33,146); if ( $num 90 $num 125 ) { $num=0; } else if ( $num 146 || $num 33 ) { $num=0; } } while ( $num == 0 ); note: ths is just off the top of my head... check for

RE: [PHP] rand()

2002-03-13 Thread Demitrious S. Kelly
And I just realized how redundant the checks for less then and grater then the rand min and rand max are... Oh well... I'm tired :) -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 9:45 PM To: 'Jeff Sittler'; [EMAIL PROTECTED

RE: [PHP] include() question

2002-03-14 Thread Demitrious S. Kelly
Try to simplify the problem $file='index.php?var='; $file.=$var; include($file); -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] include() question Why doesn't this work...

[PHP] mt_rand()

2002-03-14 Thread Phillip S. Baker
Is there a way to seed the mt_rand function with numbers and letters to generate a good password of say 6-10 characters? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and indexes

2002-03-18 Thread John S. Huggins
I have seen this problem before and, yes, an index field with autoincrement is always a good thing to have. Perhaps, this is not necessary, but usually works. John On Mon, 18 Mar 2002, Jennifer Downey wrote: -Hi all, - -Just wondering, does a table have to have an index? If so what should I

RE: [PHP] Re: Problems with ftp_get

2002-03-18 Thread Demitrious S. Kelly
The connection to the ftp may need to be put into passive mode to transfer any files, and even the directory listings... try that and see if the problem is fixed... this is especially true on machines accessing the internet through NAT (network access translation) network firewalls/servers

RE: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Demitrious S. Kelly
, $items, $price, $amount); ? /pre -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- PHP General

RE: [PHP] building a control panel in php

2002-03-19 Thread Demitrious S. Kelly
I agree. Unless there isn't a product which matches your needs I personally would consider my time better spent contributing to a project that has only a short distance left to go rather then starting a new project which would take months/years before perfection (if there is such a thing) Onto

RE: [PHP] drop down box

2002-03-20 Thread Demitrious S. Kelly
This is actually a small excerpt from a program I've written in the past... hope it helps... function show_downtime_form() { global $conf_file; global $filter; $data=file($conf_file); foreach ( $data as $line ) { $bang=explode(':', $line);

Re: [PHP] cvs data PHP

2002-03-20 Thread John S. Huggins
Look for CHORA on the net. It is a PHP thing that somehow accesses a CVS respository. I discovered it as part of phpGroupWare. It works well and should serve as a decent guide. On Wed, 20 Mar 2002, Erik Price wrote: -I was wondering if there is a way to access CVS from a PHP script.

Re: [PHP] Temporary MySQL Tables

2002-03-21 Thread John S. Huggins
On Thu, 21 Mar 2002, Georgie Casey wrote: -Hi, - -membership with the username and timestamp in the URL. The users clicks it, -and I run a SQL command that copies the row from tempmembers into the -members table. I assume you are building up all your fields as you move through the site. I would

Re: [PHP] cron with php as apache module

2002-03-22 Thread Bruce S. Garlock
and REMOTE_ADDR, among other things to accomplish that. --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
$HTTP_ACCEPT_LANGUAGE -Original Message- From: ::: rObEr2 ::: [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] A Language Script? Hey! I want to have my website on English, Spanish and Norwegian so I want to have a PHP script

[PHP] GOOD PRACTICE (was: RE: [PHP] A Language Script?)

2002-03-22 Thread Demitrious S. Kelly
I've been watching the lists from time to time and I see a lot of requests for information like this floating around. I wonder if people know of the phpinfo() command... in my experience it's been an invaluable tool to help with little issues that pop up with 'where do I find out XXX about XXX'

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
it in the future. Thanks Cheers! -Original Message- From: ...:: Rober2 ::... [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:25 PM To: Demitrious S. Kelly Subject: Re: [PHP] A Language Script? Thanks!! BTW: do you know about any site that provides the e.g. en-us tag but for other

<    1   2   3   4   5   6   7   8   9   10   >