[PHP] Function Misbehaving

2006-11-15 Thread Programmer
The following function is a basic user auth prep procedure for multiple pages. If the url desired is different than the default a url is supplied. This function works most of the time flawlessly; except, on some pages when the url has a value that was passed, the function still thinks url is

RE: [PHP] Function Misbehaving

2006-11-15 Thread Programmer
is happing inside the php code? Thanks, Jeremy Schreckhise M.B.A. -Original Message- From: Programmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 10:53 AM To: php-general@lists.php.net; 'Brandon Stewart' Subject: [PHP] Function Misbehaving The following function is a basic

RE: [PHP] fwrite fopen problem

2006-08-16 Thread Programmer
Fixed by re-assigning IUSR... to directory security. Cheers. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:59 AM To: php-general@lists.php.net Subject: [PHP] fwrite fopen problem System Windows XP: PHP 5 I have a folder

RE: [PHP] Unique Names for Variable in Loop

2006-02-02 Thread Programmer
$x = 0; my_name_array = array(); While($row=mysql_fetch_array($result)) { my_name_array[$x] = $row[last_name]; } Jeremy Schreckhise -Original Message- From: Albert Padley [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 1:15 PM To: php-general@lists.php.net

RE: [PHP] Unique Names for Variable in Loop

2006-02-02 Thread Programmer
Oops you might want to increment $x++ after the assignment. -Original Message- From: Programmer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 1:49 PM To: 'Albert Padley'; php-general@lists.php.net Subject: RE: [PHP] Unique Names for Variable in Loop $x = 0

RE: [PHP] php4 vs. php5

2006-02-02 Thread Programmer
The only complaint I have with 5 is that the mysql libraries are not bundled with the new version. However, there are a lot of third party bundles such as apache friends. Jeremy Schreckhise -Original Message- From: Grae Wolfe - PHP [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02,

RE: [PHP] PHP vars to JS?

2006-02-01 Thread Programmer
You can also fixed the two languages as so: script languageJavaScript var myvar; myvar = ?php echo $somephpvar; ?; /script -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 10:38 AM To: php-general@lists.php.net; William

RE: [PHP] PHP vars to JS?

2006-02-01 Thread Programmer
Oops! I meant mix the two languages. -Original Message- From: Programmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 10:50 AM To: php-general@lists.php.net; 'William Stokes' Subject: RE: [PHP] PHP vars to JS? You can also fixed the two languages as so: script

RE: [PHP] Warning: Missing argument 7 calling a function

2006-01-06 Thread Programmer
This should work; however, it sounds like you may want to think about using an array or creating an object. -Original Message- From: enediel gonzalez [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:58 PM To: php-general@lists.php.net Subject: [PHP] Warning: Missing

RE: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Programmer
I don't know if this will help you. I use an openlink ODBC driver to connect to Progress via PHP like so: $dbconn = odbc_connect(MyDB_ODBC,$username,$password,SQL_CUR_USE_ODBC); $strQry = SELECT * FROM mytable WHERE mytable.field = .$somevar; $rsTable = odbc_do($dbconn, $strQry);

RE: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread Programmer
You can use mail() to send html, but you need to set the headers first. I hope this helps. Jeremy Schreckhise $email_addr = [EMAIL PROTECTED]; $email_from = [EMAIL PROTECTED]; $email_subj = About What; // Set Content-type header $headers = 'MIME-Version: 1.0' . \r\n; $headers .=

RE: [PHP] RE: [SPAM 6.0] [PHP] Session help!?

2005-07-22 Thread Programmer
I did not specify all versions; older versions worked fine, but I.E. that shipped with WINXP, before any service packs had these issues. J -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 9:04 PM To: Programmer Cc: 'Richard Baldwin'; php

[PHP] RE: [SPAM 6.0] [PHP] Session help!?

2005-07-21 Thread Programmer
The biggest gotcha that I have ran into concerning sessions is this: If your client's browser is I.E. and the domain is named with _(underscores), -(dashes), etc. I.E. discards the session and starts a new one. I don't know if this is fixed under SP2. Example: a domain name

[PHP] Removing special characters

2005-07-13 Thread Computer Programmer
Is there a PHP built-in function to retrieve only the alphanumeric characters from a given string? I know that I can check for alphanumeric characters using the function ctype_alphanum () but it won't retrieve the alphanum characters. I also know that I can use str_replace to replace an

[PHP] Re: WebHosting suggestions

2005-07-02 Thread Computer Programmer
Here are some sites that list free PHP web host: http://www.oinko.net/freephp/ http://www.free-php-hosting.com/ http://www.web-hosting.com.bz/ I do agree with the other people who replied that you should pay for your web hosting needs. However, when I was starting out with PHP, I had to rely

[PHP] Finding out their server type

2005-05-04 Thread Pinoy Programmer
I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Finding out their server type

2005-05-04 Thread Computer Programmer
I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Finding out their server type

2005-05-04 Thread Computer Programmer
How do I use that to find out the server type of yahoo.com or google.com or cnn.com, etc.? Ang sabi sa akin ni Jay Blanchard noong 09:14 PM 5/4/2005... Check here http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.e nvironment -- PHP General Mailing List (http://www.php.net/)

[PHP] RE: Finding out their server type

2005-05-04 Thread Computer Programmer
Why? Ang sabi sa akin ni Jay Blanchard noong 09:33 PM 5/4/2005... Ah, now we get to the real question...and the answer is that you don't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need libmcrypt.dll for Windows PHP 4.3.9

2005-04-09 Thread Computer Programmer
Go to http://ftp.emini.dk/pub/php/win32/mcrypt/ On Apr 9, 2005 2:05 PM, HarryG [EMAIL PROTECTED] wrote: Need libmcrypt.dll for Windows PHP 4.3.9. Can anyone send it to me? Thanks HarryG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-09 Thread Computer Programmer
Thanks for all of your reply. :) Just like what trlists said, I'd like to create an auto-login at least with a maximum of 30 days. Users will have the option to choose whether to logout and/or prompt for their password for the next 1 hour, 4 hours, etc. just like what Yahoo! is doing. What is

[PHP] Storing password in cookie

2005-04-08 Thread Computer Programmer
What is a better way to store password in a cookie? md5()? base64_encode()? mhash()? mcrypt_generic()? crypt()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why are Session Variables carried over into a brand new browser window?

2004-04-17 Thread Bob Bruce - Programmer
This is my first posting to this group, so I am not familiar with any special etiquette for it, please bear with me. . . I maintain the PHP code for the website for the murals of Winnipeg and have found a situation where I have a session open with the state of the user's search results saved in

[PHP] Variable Problem

2002-01-18 Thread programmer
How do I combine the following so it is treated as one variable $i=10 $result$i=test; I want this to be: $result10=test; $i changes so I cannot just put in 10 instead of I. anybody know how i can do that? TIA Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Compiled version of PHP 4.1.1 for Mandrake 8.1

2002-01-07 Thread Programmer
I am looking for with compiled version of the newest PHP 4.1.1 for Linux Mandrake 8.1. -- Jaroslaw -- 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

[PHP] Putting PHP info into a variable

2001-09-19 Thread Power Programmer
How do I store the phpinfo() data into a variable so I can mail it to myself? Thanks Randy -Original Message- From: ZeNDeR-X [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 8:59 AM To: [EMAIL PROTECTED] Subject: [PHP] Odp: Returning a specific 'record' from an XML file

[PHP] Permissions on File

2001-09-14 Thread Power Programmer
What permissions would I set a php file to that could only be ready by somebody logged into the server as root but still be executed via a website? is this possible? Thanks Randy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:

[PHP] Extracting hidden Fields

2001-09-12 Thread programmer
I use curl to do a form submit and then the data is submitted back to me. I now need to know how to extract the hidden variables from the webpage and put one the name of the hidden field in one field and the value of the hidden field in another. there is 5 hidden fields that i need to

[PHP] Perl to PHP

2001-09-12 Thread programmer
Here is a chunk of code: while( /hidden name=(.*?)/gs ) { # see if there was some kind of error if(index($1, ERROR) == 0) { $errstring = $1; $errstring =~ ( /value=(.*)/ ); print Error on preview is:

[PHP] Extracting Data

2001-09-12 Thread programmer
Here is a line of data: hidden name=PAYMENT_UNITS value=1 How could I extract data from the above to get the following $PAYMENT_UNITS=1 Thanks, Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] PERL TO PHP

2001-09-11 Thread programmer
Can anybody help me convert this perl code to PHP This line in particular while( /hidden name=(.*?)/gs ) { but I have included more of the source below: Thanks in Advanace Randy undef $/; #print p$curlargsp; #print p$sysstringp; open(foo, $sysstring|) || die (Failed FO $!_); while(foo){ #

[PHP] Zend or not to Zend

2001-09-10 Thread Power Programmer
Anybody using the zend optimizer in a production environment? Is Zend Cache worth the money? thanks Randy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001 -- PHP General

[PHP] mcrypt

2001-08-28 Thread Power Programmer
I use mcrypt to encrypt passwords, I saw somewhere international users had trouble with the high ascii. is the any functions that can convert the high ascii to hex or something ? Thanks Randy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

RE: [PHP] mcrypt

2001-08-28 Thread Power Programmer
I looked at those and still don't know which one i should use any ideas?? -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 6:49 AM To: Power Programmer Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mcrypt I use mcrypt to encrypt passwords

[PHP] mcrypt

2001-07-08 Thread Power Programmer
I have compiled PHP with mcrypt and it works fine if I run a script from the command line but through a browswer such as IE I get the following error: Fatal error: Call to undefined function: mcrypt_module_open() in /home/wheit/html/test.php on line 6 What do I need to do to be able to

[PHP] Mcrypt Part2

2001-07-08 Thread Power Programmer
What causes this error when apache is starting? # ./apachectl startssl Syntax error on line 238 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: libmcrypt.so.4: cannot open shared object file: No such file or directory ./apachectl startssl:

RE: [PHP] mcrypt

2001-07-08 Thread Power Programmer
Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:36 PM To: 'Power Programmer'; [EMAIL PROTECTED]; 'Keyser Soze'; [EMAIL PROTECTED] Subject: RE: [PHP] mcrypt Have you made sure that the php on the command line and the php that apache is using are indeed

Re: [PHP] url without a query string?

2001-07-08 Thread another programmer
What are the requirements? Can you allow JS code? Meta refresh tags? - Original Message - From: Jon Yaggie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 2:22 PM Subject: [PHP] url without a query string? the problem i have a page that uses a query string to

Re: [PHP] Re: url without a query string?

2001-07-08 Thread another programmer
IE 5.5 keeps the referer of the original page you clicked. I ran a quick test, but my computer is a weird setup, so it may not be the case with other setups. - Original Message - From: Inércia Sensorial [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 4:15 PM

Re: [PHP] hotmail, yahoo..why can't me?

2001-07-05 Thread another programmer
I'm being quick, so pseudo code: on message display page: form method=post !loop till end of messages input type=checkbox name=deleteList value=!whateverid!whateverMessageName !endloop input type=submit name=notRequired value=Delete Selected Mail /form what happens is on sending, deleteList will

[PHP] Program execution functions doesn´t work in my system

2001-06-24 Thread Beginning PHP Programmer
Hi In the PHP manual there are some program execution functions like passthru(), exec() and system(). I´ve got PHP4 installed on IIS 5.0 on Windows 2000 Server, and it works fine. I tried with a very simple script like the following: ? $commandstring = "cmd"; passthru($commandstring);?

[PHP] Running external programs

2001-06-23 Thread Beginning PHP Programmer
Hi: I´m using PHP4 on IIS 5 on Windows 2000 Server and it works fine. The Microsoft NNTP Service from IIS 5 can be managed from command shell with commands like this bellow: cscript d:\\temp\\rgroup.vbs -t a -g new.group.01 And it works also fine in my system. But, when I try to run a