php-windows Digest 4 Sep 2001 09:21:58 -0000 Issue 736 Topics (messages 9173 through 9181): Re: Has anyone else problemes using session under win98 running apache? 9173 by: hassan el forkani Re: A uniqe ID for every item 9174 by: Nikolajus Krauklis opendir trouble (accessing directories) 9175 by: Paul Kalyakin Use the User Input Critia as part of Query! (Mysql) 9176 by: Jack 9179 by: Mike Barber PHP MySQL and WIN98 9177 by: Anthony S. Nixon PHP 406 on W2K+IIS, GD and freetype 9178 by: Martin Klem php-4.0.6 compilation into windows binary 9180 by: [Co]Proc Re: Login System 9181 by: Brad Thomas Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
works fine for me on win98 probably some coding issue send us you code! At 11:54 03/09/01, Mindfield wrote: >I just cant get my sessions to remember my variabels, any ideas. > > > >-- >PHP Windows 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]
Maybe try this one: $id_length = 32; $id = 0; srand ((double) microtime() * 1000000); $Puddle = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for($index=0; $index < $id_length - 1; $index++){ $id .= substr($Puddle, (rand()%(strlen($Puddle))), 1); } Put it all to class function and thats all.
i've installed Apache 1.3.20 and PHP 4.06 i've added the following strings to the httpd.conf file <VirtualHost 127.0.0.2> ServerName localhost2 ServerAdmin [EMAIL PROTECTED] DocumentRoot "c:/inetpub/localhost2 <Directory "c:/inetpub/localhost2"> Options Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "c:/inetpub/localhost2/cgi-bin/" ErrorLog "c:/inetpub/error.log" CustomLog "c:/inetpub/custom.log" common </VirtualHost> i've created folder c:\inetpub\localhost2 and added string 127.0.0.2 localhost2 to the HOSTS file. everything works fine to this point. simple index.html file is shown after the http://localhost2 request in browser URL i've created FILES folder in the c:\inetpub\localhost2 folder and created test.php file in the localhost2 folder =========test.php============ <? $dir_name = "/files"; $dir = @opendir($dir_name) or die( "Directory \"$dir_name\"not found."); $file_list = "<ul>"; while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name != "..")) { $file_list .= "<li>$file_name"; } } $file_list .= "</ul>"; closedir($dir); ?> <!-- Start your HTML --> <HTML> <HEAD> <TITLE>Directory Listing</TITLE> </HEAD> <BODY> <!-- Use PHP to print the name of the directory you read --> <P>Files in: <? echo "$dir_name"; ?></p> <!-- Use PHP to print the directory listing --> <? echo "$file_list"; ?> </BODY> </HTML> ==============/test.php============= but when i try to execute this file, i see "Directory "/files"not found." What i'm doing wrong ?
Dear all I had a form which ask user to input the Staff Number to be as part of the query, but when i execute it, it seems not working at all here is what i wrote in php The user input box is : $StaffNum $query="select name,department,Leave_From,Leave_To,Leave_Total,Reason from leaverequest where Staff_Number="<?print("$StaffNum");?>" and authorized is null"; But said there is error on this line, which is what i expected!! So could anyone pls tell me how i can get the varaible into part of the Query of Mysql? Thx jack [EMAIL PROTECTED]
$query="select name,department,Leave_From,Leave_To,Leave_Total,Reason from leaverequest where Staff_Number='$StaffNum'" will work just fine. (Enclose vars with single quotes) ----- Original Message ----- From: "Jack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 03, 2001 10:35 AM Subject: [PHP-WIN] Use the User Input Critia as part of Query! (Mysql) > Dear all > I had a form which ask user to input the Staff Number to be as part of the > query, but when i execute it, it seems not working at all > > here is what i wrote in php > The user input box is : $StaffNum > > $query="select name,department,Leave_From,Leave_To,Leave_Total,Reason from > leaverequest where Staff_Number="<?print("$StaffNum");?>" and authorized is > null"; > > But said there is error on this line, which is what i expected!! > > So could anyone pls tell me how i can get the varaible into part of the > Query of Mysql? > > Thx > jack > [EMAIL PROTECTED] > > > > -- > PHP Windows 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] > >
I am presently using WIN98 as my development platform with Apache 1.3.20+PHP4.0.6+MySQL. I installed PHP using the dll method instead of cgi. Unfortunately, I am having problems with PHP parsing some of the MySQL code in the page. The same page works great on a Win2k Server with the same installed software. Anyone else having problems like this or is there maybe a solution or fix for this issue (switching to Win2k Professional is not an option)? ANy help would be appreciated. Shon
Hi, I have just upgraded my PHP from 403pl1 to 4.0.6 and some problems appeared. My scripts which use php_gd.dll for generating PNG images with user defined text are not working. Every time I try to launch my script I receive this error: "Warning: Could not find/open font in D:\CustomerWebs\www\test\fonts" I studied the PHP manual and discovered that some FREETYPE library is needed for working with ttf fonts and GD together. But it WORKED in PHP 403 without freetype library.. I checked out a lot of sites and I have found no binary of freetype.dll suitable for PHP.. Why isn't it included in distribution pack of PHP406Win32? I have downloaded source codes of freetype 2 from www.freetype.org but as non-C user I'm not able to compile this. Is anybody able to help me or send me working copy of freetype.dll etc...? In other case i have to downgrade to older version of PHP to resolve me troubles.. Thanks Martin
hey guys ! I've just downloaded php-4.0.6 sources. everythings's fine under my rh6.2, no questions(yet ;-). but I also have got a win box with apache 1.3.3 installed. so I'd like to attach the php-support to it... so, the trouble: how may I compile php-4.0.6 into windows binary? yes, I know, that I should have downloaded php-4.0.6 windows binary from www.php.net, but what if I would like to add smth. to it's source(as I did to my apache on my win). nmake can't deal with that Makefiles. I mean, it can, but there are a lot of shell-scripts, and it can't run them :-( I would be grateful for any information that would help me to compile sources for windows... tnX with best regards, [Co]Proc, [EMAIL PROTECTED] [ The BeOS takes the best features from the major operating systems. It's got the power and flexibility of Unix, the interface and ease of use of the MacOS, and Minesweeper from Windows. ] P.S. Sorry for my poor English, my native language is ANSI-C
"Brad Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > IMHO I've found MySQL better > > <[EMAIL PROTECTED]> wrote in message news:3B896921.25275.3BAA1C@localhost... > > How would I go about making a Login system? and should I should > > Flat file or MySQL? > > > > Let me know > > Thanks > > But to answer your question about how to make a login system: First create a table which is named "users", or something to that effect have their username, and password in that table, then do a lookup against the table to first see if 1) the username existed 2) if so, the password is correct Any further suggestions are welcomed