Jump to content

Kaizard

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Kaizard's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What is the best solution for generating random float numbers and having min-max? mt_rand doesn't help much by itself and needs to have some conversion. I found this line on a site: min + rang * mt_rand()/RAND_MAX - Converts random integers to random real numbers. but I can't figure out what rang is and where i should insert the min max values. The generator on the site is perfect for what i need, I just need help on the code behind. Here's the site link: http://sqa.fyicenter.com/Online_Test_Tools/Random_Real_Number_Float_Value_Generator.php Thank you in advance.
  2. Hi, I'm trying to create a simple email script..but I'm getting this error.. Here's my code: $to = "testmail@yahoo.com"; $subject = "Hi!"; $body = "Hi,\n\nGenki desu ka?"; $headers = "From: sender@example.com\r\nX-Mailer: php"; if (mail($to, $subject, $body, $headers)) { echo("<p>Message sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } What should I do? Thanks in advance!
  3. Yeah, I agree to that. Anyways, it's for testing purposes. I'm after all new to PHP-Apache web development. Thanks for the information. It solves my query.
  4. Thanks u...but..I'm already passed that...What I was thinking was if I can view my work through the Web, directly from my PC. And since I have a dynamic IP..I'm wondering if it's possible. With my server as Apache 2.2.x (with PHP and MySQL).
  5. Hi, I'm very new on PHP-Apache web development..and I'd like to ask if I can test my project on the web with non-static IP, my ISP is globe telecom...and i've noticed my IP changes a lot. I'm wondering what I can do about it? I'd really appreciate any comments and help. Thank you!
  6. Thank you, I'll take note of that and see if it's the cause. Although, the dll's that's been mentioned were not extensions. In the "httpd.conf" file, I put the line: PhpIniDir "C:/PHP5". This is correct right? I can't think of any reason why those pop ups show. I mean, the dll's that were mentioned are all inside "C:/PHP5". And the fact that the server runs ok, I can communicate with MySQL with PHP is what confuses me more.
  7. Before I get down to my queries I must notify that I have already installed Apache Server 2.2, PHP 5.3.0, and MySQL 5.1. I've also configured the 'httpd.conf' and 'php.ini' files. I have some questions regarding the 'php.ini' file. At first, I put the PHP.INI file in the WINDOWS directory. The server was running fine, but, I couldn't connect to MySQL, I kept receiving errors like 'undefined function, etc'. According to the instruction that I read, If I'm using Apache Server v2 or later I don't need to put the PHP.INI file in the WINDOWS directory. When I transferred the PHP.INI file from the WINDOWS dir to my PHP5 folder (C:\PHP5) I was able to connect and view queries. I think everything was running fine except that ERROR DIALOGS started to keep popping out. The dialogs were all 'httpd.exe - Unable To Locate Component: This application has failed to start because <DLL> was not found. Re-installing...so on'. The dll's were, LIBEAY32.dll; php_mbstring.dll; icuuc36.dll; SSLEAY32.dll; OCI.dll; LIBPQ.dll; libcs.dll, which all of them are located inside my PHP5 directory together with the PHP.INI. Everything is working well except these dialogs keep popping out every time the Apache server starts. How do I fix this? Thank You.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.