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
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
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
$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
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
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,
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
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
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
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);
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 .=
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
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
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
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
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
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
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/)
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
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
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
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
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
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,
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
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
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:
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
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:
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
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){
#
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
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
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
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
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:
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
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
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
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
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);?
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
42 matches
Mail list logo