Mcrypt Lib Running Under Windows
I need to use encryption functions with php, such as mcrypt_generic(), mcrypt_decrypt(), etc I have placed libmcrypt.dll in my windows/system32 directory. I can now encrypt, but not decrypt. The code I use to encrypt / decrypt functions under Mac OSX + Linux, but not Windows.
View Complete Forum Thread with Replies
Related Forum Messages:
Mcrypt Encrypt, Mcrypt Generic :Trying To See The Point .
This post evolved from my previous unresolved post. The more and more I read about mcrypt_ encrypt and mcrypt_generic the more examples I saw that illustrated encryption and decryption within the same script. My question is this? What's the point of encrypting something if you can't carry the encrypted data to another page and use the data in its encrypted form? No pun intended but I guess I can't see how this mcrypt_ encrypt can be applied to cookies which seemed like one of the primary applications for encryption on the web.
View Replies !
Running PHP On Windows XP
I installed Apache/MySQL/PHP on Windows XP. There was one problem. Microsoft IIS 4 or higher was defaultly selected for MySQL. It did not work. When I double-click a PHP file, a lightning-fast MS-DOS window opens and closes. When I go to start, then go to run, then type "cmd", then type the PHP file path, I take a long time to see what happened. I want my PHP file to work on my browser offline just like uploading and visiting my PHP file on a web host with my browser online. In other words, I want the interactivity of my site to happen in my computer. How can I do that?
View Replies !
Running A Windows Command Line From A Web Page
I have a web page on an intranet, i need to run a command in the local windows run from the webpage. for example when you press a button button on a webpage it has the same effect as running cmd from the run prompt on the local machine. Anyone know how to do this?
View Replies !
Having Problems Running Some Files On Apache For Windows
I am running Apache 2 for windows and have PHP installed and working fine on the server. However, some of the php scripts and programs i have do not use the <?php starting tag, the use <? instead, and as a result of this, the script does not execute. Can anyone tell me how i can configure apache to allow both <?php tag and <? aswell?
View Replies !
Warning: Invalid Argument Supplied For Foreach() Running On A OS X Machine Running Apache 1.x And PHP 4.x.
The following script was running on a OS X machine running Apache 1.x and PHP 4.x. I just moved the script over to a Linux machine running Apache 2.0.51 and PHP 4.3.8, and now the foreach line does not work. It says Warning: Invalid argument supplied for foreach() in /var/www/localhost/htdocs/warehouse/whse_order_submit.php on line 39 Here is the script: <?php //get the variables from the other page $id=$_POST['id_no']; $sku=$_POST['sku']; $description=$_POST['description']; $order=($_POST['order_qty']); $store=$_POST['store']; $comment=$_POST['comment']; $ip=$REMOTE_ADDR; //check if store is empty if(empty($store)) { die("Store is required. Please press the back button and enter in your store."); } //connect to the database require('../inc/database_conn.php'); //$month=getdate(mon); //$day=getdate(mday); //$year=getdate(year); //$today=$year . "-" . $month . "-" . $day $today=date('Y-m-d'); // create the unique order number $headerqry = "INSERT INTO misc_order_header (order_date, store, comment, ip) VALUES ('$today', '$store', '$comment', '$ip')"; mysql_query($headerqry, $conn) or die(mysql_error()); $order_no=mysql_insert_id(); foreach($order_qty as $id_no => $val) { if($order_qty[$id_no] > 0) { $detailqry = "INSERT INTO misc_order_detail (order_no, id_no, sku, order_qty, order_date, store) VALUES ('$order_no', '$id_no', '$sku', '".$order_qty[$id_no]."', '$today', '$store')"; mysql_query($detailqry, $conn) or die(mysql_error() . "<BR>" . $detailqry); } }
View Replies !
MCRYPT
I am having a big problem with the following line... it runs very well on linux but I don't get why it doesn't work on winxp $_SESSION['_mcrypt_iv'] = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAE L_256, MCRYPT_MODE_ECB), MCRYPT_DEV_URANDOM); I am getting a warning Warning: mcrypt_create_iv(): Cannot open source device in C:apachehtdocsfilename.php
View Replies !
With Mcrypt
i need the exact version and initialization vector for mcrypt on my server. godaddy support is completely lost. how could i find this out? phpinfo says that mcrypt is supported from version 2.4 up. they are telling me that it isn't available with my version of php(php4, 4.1) any php code that i could use to get what i need? if i get the info, i will call godaddy and tell them that their support needs to have a page in the books that they read from with random wierd stuff that they will never run into, that way, when i call they will be able to help me.
View Replies !
Mcrypt And Mysql
I am using the mcrypt library to encrypt credit card numbers on a mysql database. I was using the tripledes algorithm until a user entered in a certain sequence of numbers and after being stored on the database could not be decrypted. I then tried the twofish algorithm, same problem with a different number. I am using the addslashes and stripslashes functions on the encrypted string. I would say that 9 times out of 10 this works fine, but every now and again the mcrypt functions create a string that throws mysql off. It looks like mysql may be screwing with the encrypted string somehow... has anyone else experienced this problem? Is there a algorithm that is recommended over others for use with mysql? here's the code I'm using:
View Replies !
Mcrypt Ciphers Not Available
i have php 4.0.6 with mcrypt installed and with phpinfo() it shows that mcrypt is enabled. but there are not cipher modules available and i searched the whole web for a description how to include the path in the php.ini or where? on the server all cipher modules are located at /usr/lib/libmcrypt and have a .so suffix. if you know how i can activate the libs so that php can use it please let me know. i also read the instructions on how to compile php with mcrypt, but there are not hints how to tell mcrypt or php where to get the cipher modules.
View Replies !
Mcrypt And Key Bytes
I try use mcrypt but I want to use key in bytes, not in string. Encrypt text will be decrypt in Delphi with function where key is 16byte not string. How can I do this.
View Replies !
XAMPP And Mcrypt
I installed PHP thru the XAMPP package on my windows machine. The problem, I couldn't solve, is that the mcryppt funcs don't work. It return the following message: Call to undefined function mcrypt_decrypt() ... If I write a <?php echo ***"; echo function_exists("mcrypt_decrypt"); echo function_exists("mcrypt_encrypt"); echo "***"; ?> it return nothing between the six asterisks. I downloaded the libmcrypt.dll and copied it under c:windowssystem32 and erased the ";" in the extension=php_mcrypt.dll line. But it still doesn't work.
View Replies !
Could Not Initialize Mcrypt
I have the latest version of XAMPP installed on Windows XP Pro SP2. I am trying to use mcrypt with rijnndael-128 on ecb: " $cr = mcrypt_module_open('rijndael-128','','ecb','') or die('<br><br>Could not open Module<br><br>'); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($cr), MCRYPT_RAND) or die('<br><br>Could not create iv<br><br>'); mcrypt_generic_init($cr, $key, $iv) or die('<br><br>Could not initialize mcrypt<br><br>'); $remix = mcrypt_generic($td, $mix) or die('<br><br>Could not make a remix<br><br>'); " (The above code is inside a function) all the variables are ok. When i run the script, it returns "Could not initialize mcrypt". Why is it crashing there?
View Replies !
Php-mcrypt Module For Php-4.2.2 ?
I am looking for the above as my php version (Redhat) is that. Call me lazy, but I do not wish to compile php unless it becomes absolutely necessary, as it has been working fine so far. I have searched google for it, but to no avail so far. Does anyone know a source for it ? Upgrading to 4.2.3 is an option, but it will require upgrading large chunks of my installation that I do not have a problem with.
View Replies !
Choosing A Key For Mcrypt
I am working on a secure credit card payment screen and have used mcrypt to encrypt the credit card information. I am not sure what the best practice is for generating the keys. For testing I have simply used the following: $key=md5(session_id()); I'm not sure if I should use a seperate key for each user or a single key stored on the server. Is using a form of the session id a bad idea? Does the key need to be as protected as a password would be?
View Replies !
I Need Mcrypt Extension
I am running apache 2 and php5 on an Ubuntu Server. I installed PHPMyAdmin 2.10 and I get this error. Cannot load mcrypt extension. Please check your PHP configuration. So I went and downloaded these files libmcrypt-2.5.8.tar.gz mcrypt-2.6.5.tar.gz Are they the same thing? which one do I use?
View Replies !
Mcrypt Fixed...
i downloaded the php_mcrypt.dll from the windows binary 4.3.2 release and copied it into the php/extensions directory (after stopping apache of course) and then the correct version of libmcrypt.dll into the winows/system32 directory.
View Replies !
Mcrypt Trouble
I am having trouble decrypting a message that I encrypted using the mcrypt_encrypt function in php. I am passing the randomly generated iv along with the encrypted data, and using it to decrypt. I'm not getting any errors, but some lines don't completely decrypt. Some of the lines that are encrypted will decypt perfectly fine, while others will not completely decrypt. The majority of these lines (about 20 out of 40) will have the last part missing. Below, I have some examples of both good and bad decrypted lines. The first and last are bad. Second and third are good. 'MEMBER',ƌ/25/2007','','',ཀ/15/2008',དྷ Any Street','Winsted, CT2—ï—à£IÅM¦£‹áîÜ`¾äÇáúôVgeK#d 'MEMBER',ཇ/2006','','',ཀ/012007',དྷ Any Street','Winsted, CT 06098',鮴-379-3333',鮴-307-1111',ཌ-I','d41d8cd98f00b204e9800998ecf8427e' 'MEMBER',༿/2007','','',ཆ/01/2006',ྟ Any St.','Winsted, CT 06098',鮴-379-1111',鮴-567-7545',Ɗ-I','d41d8cd98f00b204e9800998ecf8427e' 'MEMBER','','','',ཀ/01/2007',饆 Any Road','West Hartland, CT 06091',鮴-379-8888',鮴-738-3333',ཇ-I','d41d8cd9€kqÎéÙäø-¨ä~¸jDB{GU:ÂæôÄY¢·
View Replies !
Mcrypt Installation
Im trying to install MCrypt into PHP. I have been searching the web for a while and cant seem to find any instructions for installing it on a windows pc. I have downloaded 'libmcrypt.dll', thats as far as ive gotten. What else do i need to download and how do I install it.
View Replies !
Translating PHP Mcrypt To Exec
Hello, My hosting company does not support the PHP mcrypt functions. Instead, they recomend using the command line, /usr/local/bin/mcrypt utility via PHP's exec method. Sadly, they do not provide any documentation how to do this. How would i translate the following function encryptString($p_str) { $iv_size = mcrypt_get_iv_size(MCRYPT_XTEA, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $enc = mcrypt_encrypt(MCRYPT_XTEA, ENCRYPTION_KEY, $p_str, MCRYPT_MODE_ECB, $iv); return $enc; } // encryptstring to run via an exec command, returning the encrypted output to some PHP variable? I'm using PHP 4 on Linux if that's useful.
View Replies !
Mcrypt Problem With Mysql
I store usernames and passwords in my database and now I want to encrypt them and then store them in my mysql database but mysql messes up some how. When I try to decrypt the usernames and passwords it fails to do so. I've tried base64_encode / base64_decode before saving it into the databse and before decrypting and tripledes and blowfish as methods. PHP Code:
View Replies !
Mcrypt Decrypting Probs.
What I'm trying to do is generate a random string of characters. This string will be anywhere between 8 and 32 characters in length. This isn't the problem. I can generate this fine. The problem is that when I encrypt a string of text using these random keys, I have difficulty decrypting them. That is, sometimes they will decrypt fine... sometimes they won't decrypt at all! Everytime I encrypt a new string, the 'key' is randomly generated. The key is then stored in a session variable and the encrypted message is stored on in a cookie. Then the value from the cookie is decrypted using the key stored in the session variable. I'm using 3DES and ECB to encrypt the message. PHP 4.3.2, mcryptlib 2.4. I was always under the impression that as long as you use the right key, regardless of what the key *is* (what characters and length it is), it will always decrypt without error. Is this not true?
View Replies !
Mcrypt :: Public Key Encryption
does anyone have an example of using php :: mcrypt for public key encryption? All of the examples and documentation I have found for TRIPLEDES use onle a single key for encryption and decryption. Is there another cipher I could use (like RIJNDAEL)?
View Replies !
Encryption - Gnupg?pgp? Or Mcrypt?
i have some data on my website that i have to encrypt and decrypt... the data can be seen by anyone who "logs in" and... it has to be so secure that even the "root" user of the system should not be able to decrypt the information... and what will be the best to do this... gnupg?pgp? or mcrypt? i have been wrecking my brains to solve this thing... but have not been able to... mainly because i dont know much abt encryption from a programmer's point of view..
View Replies !
Mcrypt Problem On PHP 4.3.1 / FreeBSD 5.3
I'm getting some strange errors that I cannot pin down: Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 7, needed: 8 in...... This is strange because the data is encrypted, inserted into the databse, then later retrieved and decrypted with the necessary hash and ivector keys. The data itself is decrypted OK. But the error comes up. The error does not occur when I run the same code on another machine running on Mac OS X. Is this a known bug on this FreeBSD build ? As this is for a production site, I'm just tempted to set the error_reporting directive in php.ini to off, as this looks bad when the error flashes up, but is actually not causing any errors. I did change alter the initialisation function to: @mcrypt_generic_init() but it still displays the error regardless. This may be a bit obscure, but has anybody else encountered a similar problem ?
View Replies !
Mcrypt And Predefined Constants
Has anyone here worked with mcrypt? I'm having trouble getting predicable results. Example if I use 3DES and MCRYPT_MODE_ECB I cannot encrypt "157058" and then decrypt it and get the same thing. The 8 is obscured as someother character. Example if I use 3DES and MCRYPT_MODE_NFO I cannot encrypt "poiuy789" and then decrypt it and get the same thing. The 789 is obscured as other characters. My key and connect string are both 16 character. Any Ideas. I am trying to create a login that encrypts the id and PW in a cookie so I can decryp and compare it to a record entry. The client wants the PW in plain text in the DB.
View Replies !
CRYPT_MD5 On Mac OS/X Via Mhash/mcrypt/md5/etc Etc?
I want to use Mac OS/X and PHP. I have a db with passwords stored under Linux using the crypt("foo", "$1$".$salt."$); scheme. This means that crypt should execute a CRYPT_MD5 password hash. I know that Mac OS/X only supports the two DES'. So is there a way I can use mcrypt, or mhash or ANY library to reproduce php's CRYPT_MD5 crypt() call? I don't really have a choice to use another password hash scheme, as the data is being given to me. I have tried almost everything to produce the same output to no avail: Under Linux, php has a crypt() function which takes the md5 format (and blowfish). This will produce a hash of: <<CRYPT MAGIC><< 8 CHAR USER SALT>$ <<HASHED PW>> $1$ FpsaEXUM $ rXsH1UzUs6w3vfik/wHGr. PHP supports DES under Mac OS/X (no blowfish, or MD5 crypt). Sites I've been to, have informed the developer to use a different algorithm and that it would solve their problem. I, alas, cannot use a different system. The passwords are stored in someone else's DB and I am forced to use the Linux PHP/Crypt/MD5 version. I have tried the md5(), mcrypt (as much as i can understand it, I am not an encryption expert), mhash (MHASH_MD5) functions to no avail. To explain what I am doing... With PHP's crypt() on Linux: 1) look up the password for the user logging in (in a DB or file) 2) grab the salt for that password (it's created at random when the password is created): chars between '$1$' and '$' (8 characters) 3) take the user supplied password, run it through PHP's crypt with the same salt: crypt("foobar","$1$"."FpsaEXUM"."$") 3a) Result: $1$FpsaEXUM$rXsH1UzUs6w3vfik/wHGr. With mhash: base64_encode(mhash(MHASH_MD5, $mypassword, "$1$".$salt."$")); Result: 6ZspEb5d0AMqo/RkSod8dw== With mhash: base64_encode(mhash_keygen_s2k(MHASH_MD5, $mypassword, "$1$".$salt."$", 16)); Result: blAOWSV9/hmRk/Z06IFQKA== I've tried permutations of those without the "$1$"..."$" and still nothing. Even if the hash matched, and I would just add the "$1$"..."$" that would work. I've tried md5(), no luck. Needless to say, the crypt() functions on the mac don't work. I obviously recompiled php to support mcrypt and mhash (and gd, unrelated issue), hoping that would solve the issue... no dice.
View Replies !
Mcrypt Extension Decrypting
I have just began using the mcrypt extension and I am having a few problems, I've been doing PHP for 2.5 years and I have never been stuck so bad. My problem is I can't decrypt info from a previous encryption on a different page. On php.net it says the encryption and decryption must use the same IV. But, since the encryption occured on another page it wont let me. I am using loki97 as my algorithm and nofb as my mode.. are these the right types to use?
View Replies !
Configuration Of Mcrypt And PDFlib
So I've got PHP to recognize mcrypt and pdflib in the phpinfo() output, but trying to use any of the functions fail with "...undefined function called..". There aren't any configurable files with either distro and neither mention php.ini settings need to be made. Restarting the apache server does not fix this and no errors are reported while starting. The most recent stable releases Apache 2.0.49 and PHP 4.3.6 are being used with mcrypt 2.4 (stable, but 2.6.4 is most recent) and pdflib 5.0.3p1 (most recent stable release) libraries, running on Windows 2003 Server Enterprise with all updates applied. I picked up a copy of Visual Studio .NET Enterprise but am also stumped of how to compile these functions from source which I would prefer to do at this point.
View Replies !
Phpmyadmin's Blowfish / Mcrypt
I'm writing an app that will use blowfish encryption. PHP's mcrypt will be used if available. if not, I'll use PHPmyadmin's blowfish.php library. The problem is I can't figure out what initialization vector blowfish.php is useing (or if that's even my problem). ie, if I encrypt with blowfish.php and decrypt with mcrypt: /* include path to phpmyadmin '/libraries/blowfish.php' */ $secret = 'secret' $string = 'test string' $iv = blah; $encrypted = PMA_blowfish_encrypt($string,$secret); $decrypted = trim(mcrypt_decrypt(MCRYPT_BLOWFISH,$secret,base64 _decode($encrypted),MCRYPT_MODE_CBC,$iv)); echo $decrypted; will output something like test strÙÚE¦ô<qÕ Anyhow, how do I make these two interchangeable?
View Replies !
Configuring Mcrypt And Libmcrypt
i am using RHEL 5. I use an Apache 2.2.6 and PHP 5.2.4. I am having problems configuring the mcrypt library. libmcrypt log: checking for C++ compiler default output file name... b.out checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. mcrypt log: checking dependency style of gpp... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check i've tried installing the libmcrypt rpm from rpmforge and then installing mcrypt. i've tried installing the php-mcrypt rpm.
View Replies !
Mcrypt - Encrypting Special Characters
I'm not sure whether this is a known or documented issue (I could'nt turn anything up, but maybe I'm not looking hard enough), but I seem to be have a problem encrypting and decrypting entries with special characters - namely the '@' symbol. For example I can encrypt and decrypt a name or an address - however, if I try this with an email address that contains the '@' symbol, such as: nobody@nobody.com what I get when I decrypt this is: n Just the first letter of the entry. I have been using the GOST cipher, so I'm wondering if it is related to this cipher, or whether there is a problem with special characters in general.
View Replies !
Mcrypt - Crypt And Decrypt On Different Hosts
I have PHP 4.4 with Mcrypt support installed and I'm creating a crossplatform application which has to crypt and decrypt on different hosts. So I got the problem that if I crypt on the developer host PHP 5.x and decrypt on the PHP 4.4 host the result is not a plain text, it's just a scrambled text (decryption does not work the same). Does anyone had such a problem or does anybody has a solution beside upgrading to PHP 5.x ? I have to upgrade then I will loose all potential customers which run PHP 4.x. I read minimum two hours in this forum but I couldn't find an answer (but a lot of people have some problems with php and mcrypt).
View Replies !
Mcrypt Encrypt/decrypt Functions
I have written these two functions to encrypt and then decrypt data on my site, and I was hoping someone could let me know if they are OK? I'm just not sure about the way I'm handling the IV value. Because its random, but is also required to decrypt, I'm just adding it to the encrypted string, and then splitting that in the decrypt function. Is this what most people do? Code:
View Replies !
Mcrypt Blob Upload Problem To MySQL
I have a script in which I am collecting sensitive information via a form (METHOD=POST) and encrypting the posted variable (format = BLOB) using mcrypt, then saving it in a MySql table. Using my test script,everything works fine. Using my production scrypt, everything works fine for data posted with fewer than 8 characters. If I try to upload data longer than 8 characters, I get this error message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iU C!ʌB', ༽', ��', NULL, 飮')' at line 1 The characters iUC!ʌB' after "near" are the encrypted characters. There does not seem to be any difference between the test and production scrypts. Here is the syntax I am using for saving the record: if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "myTable")) { $insertSQL = sprintf("INSERT INTO myTable (`Date`, LastName, FirstName, EcryptedBlob) VALUES (%s, %s, %s, %s)", GetSQLValueString($_POST['Date'], "text"), GetSQLValueString($_POST['Lastname'], "text"), GetSQLValueString($_POST['Firstname'], "text"), GetSQLValueString($encrypted,"text")); php v. 5.0.5 MySql v. 4.1.9
View Replies !
Recompiling - Installing Curl, Mcrypt, And A Few Other PHP Libraries
I recently followed some guided instructions on downloading and installing curl, mcrypt, and a few other PHP libraries, all of which installed without much difficulty. However, they're not working with PHP. I was told in order to accomplish this, I need to recompile PHP. My question is, how exactly do I do that to encompass the new libraries I need but also keeping the old ones? All the tutorials I've found on this just seem to get to this point and dwindle. Since I'm not a server guy, this is always where I get lost.
View Replies !
MCrypt (Decrypt) Displays Null Characters
When I use decrypt from MCrypt, in firefox, it displays a bunch of null characters at the end of my string. I've checked my records, and the strings are encrypted properly, so I am not sure why it is adding a series of nulls at the end of the string. e.g. String is "hello" Encrypts fine. When I decrypt it, it shows "hello[][][][][][][][][][][]" where [] is the null character. Is there anyway to remove the null characters at the end of any decrypted string?
View Replies !
Warning: Mcrypt Ecb(): Attempt To Use An Empty IV, Which Is NOT Recomm
how to properly use mcrypt_ecb? This is the piece of my code I'm having trouble with below. I've done quite a few searches but keep coming up empty on the proper syntax from start to finish. $key = "unlock"; $msg = " top secret "; $crypted = mcrypt_ecb(MCRYPT_LOKI97, $key, $msg, MCRYPT_ENCRYPT); $crypted = bin2hex($crypted); echo "$crypted";
View Replies !
Problem Decrypting Data Stored In MySQL Using Mcrypt
I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test table, in which I'm storing the encrypted data, is a TEXT type field. The code I'm using, from the PHP help file, is:
View Replies !
Php Is Not Running
I am using CentOS 4. When requesting /blah.php from a browser, I always get blank page "<html><body></body></html>". What's wrong? #rpm -qa php php-4.3.9-3.8 # /usr/sbin/httpd -V Server version: Apache/2.0.52 Server built: Jul 25 2005 05:37:19 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf"
View Replies !
How Do I Know That PHP Is Running
I'm having a problem running a simple printer friendly script written in PHP. I'm not sure whether the problem is with apache 1.3 or with the scripts. I updated apache's config file httpd.conf to include the directives for running PHP as a loaded module and as CGI as noted in the documentation at php.net # Add to the end of the LoadModule section LoadModule php4_module "c:/php/sapi/php4apache.dll" # Add to the end of the AddModule section AddModule mod_php4.c I did both and Apache doesn't like it. It can't compile it. It says that the php4apache.dll cannot be loaded because it cannot be found. I have adjusted the windows directory conventions to include forward slashes and such but no luck. I'm running XP with IIS off (naturally of course) and apache 1.3. Apache works nicely on the XP. But I can't seem to get a simple php file to work. Where do you think is the problem?
View Replies !
Running PGP
Hi, I'm trying to run the PGP thourgh the PHP, I'm useing this: passthru("/usr/pgp-6.5.8/pgp -kv"); what it displays is that it can't find the key files. And it is because pgp sets up the keys per user but PHP runs as Nobody (I think).
View Replies !
Running PHP Via CLI
I made a php script with a HTML form (POST) which takes many options and based on the options, it connects to a database file and create some files from the results. This works fine when using a browser. Now, I am being asked if it can run via CLI. My first reaction was "no", but that was before I even had looked into the matter....
View Replies !
Running 2 Ifs At Once
How do I run 2 ifs at once , but have the same else... for example If post password and if post email do query. if both of these or none of these are posted . echo "Invalid"
View Replies !
Running A .exe
I am trying to create effectively an online desktop for a computer. How can I get php to open up .exe files, such as word etc. I've tried a few things that others have suggested, just wondered if anyone had any ideas.
View Replies !
|