Win98 + Apache 1.3.up + PHP 4.3.up Something Wrong
I been first times setup. So Who have experience the Win98 + Apache + php
(not run PWS or IIS)
I begin download and installed the Apache. I test the run is working on
browser (http://localhost) show the apache page.
But Apache Console Running under the DOS Window say :-
=====================================
[Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
directory: exec() may not be safe
Apache/1.3.29 (Win32) running...
=====================================
I expect that it.
So, I shall the php installer from download. I try changed the httpd.conf
under the Apache directory. Restart Apaches Console.
I testing the (http://localhost/test.php), show error page say "HTTP -
Error 400 Bad Request" also "HTTP - Error 404 Not found"
I have tried times.... But unknown....
Apaches Directory - c:apacheapaches*.*
PHP Directory - c:apacheapachesphpwin32*.*
httd.conf -: (was add the line)
ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php.exe"
I didn't change php.ini yet
I copy and paste the "php4ts.dll" under to C:windowsystem from PHP
What I have done that above ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Apache 1.3.14, PHP 4.0, MYSQL And Win98
I have installed and working Apache and php 4.0. I would like to get mysql working too. I ran the phpinfo file using PHP 4.0 and I did not get the MYSQL extensions in the resulting table. I subsequently - after changing my http.conf file - ran the phpinfo file using PHP 3.0.16 and got the MYSQL extension showing up in the table. Why isn't the mysql extensions showing up under PHP 4.0?
PHP5 With MySQL 4.1 On Apache 2 On Win98
I am in the process of learning php. I am particularly interested in its uses with MySQL. I have Apache 2 and PHP5 both installed and working fine. I pasted a MySQLi example for opening and connecting to a MySQL DB into "hello.php" <?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s ", mysqli_connect_error()); exit(); } printf("Host information: %s ", $mysqli->host_info); /* close connection */ $mysqli->close(); ?> For some reason when I get: Fatal error: Class 'mysqli' not found in D:Apache groupApache2htdocshello.php on line 7 I installed PHP in "d:php" and added it to my path in my autoexec.bat. in php.ini: .... extension_dir = "d:phpext" .... extension=php_mysqli.dll I read all the posts at the bottom of the pages on PHP.net website where someone says "I had a problem and I got...yada...yada and did everything each of those posts said you had to do and it still won't work. The only thing left is how PHP needs compiled with a "--with" statement or something like that but I'm using the windows binary so that shouldn't be a problem... Is there some other problem it could be besides a problem with finding a dll or ini?
Win98 Apache And Php Install Not Wokring.
I have installed the latest Apache and PHP binaries (the PHP CGI executable release - not the ISAPI). I then configured the httpd.conf sciprt using the install.txt file from the PHP install and 2 reference books as guides. This got me to the point where I BELIEVE the PHP interpretor is kicking in for .php scripts. But when I try and browse the following page : <? php_info() ?> I get the following error : Fatal error: Call to undefined function: php_info() in e:/apache/htdocs/phptest.php on line 1 Code:
Win98, Apache & Php4.3 Installation
I tried to install php as apache module. Previously it has been cgi. WIn 98 is not supported but cgi worked fine, anyway. I tried to everything according to instructions in php.net, but still it didn't work. - I put php4ts.dll to windows/system32 directory. - I configured http.conf: - I used the path where I had put php download (PHP 4.3.3 zip package [6,180Kb]). - I commented these three lines that were for the CGI-install: # ScriptAlias /php/ "c:/php/" # AddType application/x-httpd-php .php # Action application/x-httpd-php "/php/php.exe" But Apache didn't start. It died because of this line: LoadModule php4_module "c:/HERE_WAS_MYPATH/sapi/php4apache2.dll" http://fi2.php.net/manual/en/install.apache2.php If you would like to use PHP as a module in Apache 2.0, be sure to move php4ts.dll for PHP 4, or php5ts.dll for PHP 5, to winnt/system32 (for Windows NT/2000) or windows/system32 (for Windows XP), overwriting any older file. You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP-Module for Apache 2.0: Example 3-8. PHP and Apache 2.0 as Module ; For PHP 4 do something like this: LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php ; For PHP 5 do something like this: LoadModule php5_module "c:/php/sapi/php5apache2.dll" AddType application/x-httpd-php .php Note: Remember to substitute the c:/php/ for your actual path to PHP in the above examples. Take care to use either php4apache2.dll or php5apache2.dll in your LoadModule directive and notphp4apache.dll or php5apache.dll as the latter ones are designed to run with Apache 1.3.x. Warning Don't mix up your installation with dll files from different PHP versions . You have the only choice to use the dll's and extensions that ship with your downloaded PHP version.
Installation Of Php/apache/mysql On Win98
I'm using an old computer - Win 98. I'd like to install php/apache/mySql on it but there are many versions and some do not recommend installing on Win98. If somebody could point me in the right directions about which versions of apache, mySql and PHp - or if there is a package suitable for Win98 that would be great.
Win98 And PHP
I have windows 98 and I would like to run PHP, I have PWS to run ASP but I would like to work towards javascript. I would work with ASP and VBScript but the problem is that I only have VB2005 EX ED. I got no books for VB at my home, but I have books on C++, Java, C#, Javascript, and much more.
Stand Alone Win98?
how would i get php running with mysql on a windows 98 machine with out a server so that i could test my scripts after i create them.?
PHP4+Win98 And Sessions
I've tried PHP4build4, RC1, RC2 and 4.0.0 with Win98 but sessions doesn't work: I've got 2 pages: first_page.php3 <? session_start(); $myvar="test"; session_register("myvar");?> second_page.php3 <? session_start(); echo $myvar; ?> I've launched first_page.php3, then I've launched second_page.php3: the browser doesn't display anything (it should display the world "test").
PHP4 Installation Win98 + PWS
I can't get to work php4 on my windows machine,l i have tryed all the things that came in the documentation and it doesn't work.The error that I recieve trying to run a php is HTTP 500 Internal Server Error.
File Permissions In Win98
I just wanted to know if there was any way I could change my file permissions so I can use the fopen function in windows 98 using Apache and PHP 4.04???? I know how to do it for Linux but I need it for Win 98.
Start Up / Shutdown Mysqld In Win98
I can start the mysqld fine by running the following command: C:mysqlbinmysqld --standalone and I can shut it down fine with the following command: c:mysqlbinmysqladmin shutdown But does anybody know how to set this up in win98 so that it will automatically startup mysqld on startup, and automatically shut it down on shutdown/restart?
Cannot Load Imap Extension In Win98
I removed the ; before "extension=php_imap.dll" in php.ini, and when I start Apache 1.3 I get the following error message: Unknown():Unable to load dynamic library 'c:phpextensionsphp_imap.dll". Uno de los dispositivos vinculados al sistema no funciona (Translation: one of the devices attached to the system doesn't work). I already checked the extension_dir directive, and copied php_imap.dll to c:windows just in case. I am using Windows98 SE with php 4.3.3 as module in Apache 1.3
Set Php_admin_flag With Apache Env Var In Apache Config
SetEnvIf Server_Addr 192.168.1.10 HTTP_X_PHP_ERRORS_DISPLAY=on php_admin_flag display_errors HTTP_X_PHP_ERRORS_DISPLAY is something like this possible? In other words, can I set a php ini var in apache config from an apache env var?
What Im I Doing Wrong
I am printing out how many featured items are in a database, and this is what i got. PHP Code:
What's Wrong With This Url?
i cannot open requested page user_cp_profile.html and at the same time send user id using url. can someone tell me what wrong with the url. PHP Code:
What's Wrong W/this (if / Or) ?
When ppmode is set to "cancel" or "thankyou", the header and exit are still processed. I'm trying to search on "if" and "or" in google, but it keeps removing "or" from my searches. Is there something wrong w/this ? if (($ppmode != "cancel") or ($ppmode != "thankyou")) { header("Location: index.php"); exit(); }
Wrong Id
I have a table named 'choose' with the fields site_id, user_id and values, with 2 rows : row1 : site_id = 1 user_id = 2 value = 0 row2 : site_id = 4 user_id = 2 value = 0 I use the following form, that get's it's info from another table Code:
Wrong Headers
I just transfered and patched up some files because I moved them from Linux/PHP/Apache/mySQL to Windows XP Home/PHP/Apache/mySQL. I fixed all the problems that come up, but, when I load the page in IE6, it reloads a bunch of times and just loads normally. I tried the best I can to make the page HTML 4.01 Transitional. So, on Linux, after I patched the page to be HTML 4.01 Transitional I put a link for my visitors to validate my page if they want to. So I notice also, that when I validate the page, I rarely get it to work. 90% of the time, this is what I receive from the W3C validator: Quote: I got the following unexpected response when trying to retrieve <http://*****/>: 500 Bad header: ' <img src="/images/menu/other_stuff-off.gif" alt="Other Stuff" name="menu-other_stuff" width="186" height="17" border="0">' Please make sure you have entered the URI correctly. I get this error most of the time, but sometimes there is a different part of my PHP HTML output in the page. And then, when it works, half of the page is trimmed off, thus, I get errors about my page not being HTML 4.01 Transitional. I tried a couple experiments with my layout code, and the same code makes the browser reload, and reload... I've tried debugging my layout code but it brought up nothing... I switched from the PHP module to using the CGI executable. Some things changed: The page no longer reloads repetitively; when the validator fails, I sometimes get a 'Header too long' message; using the validator brings success more often, but other letters are in the output (degree marks, little squares -- these don't appear when viewing the source of the page in IE6). Anybody know why this header is being sent by my server? *Note* I am not trying to load an image. I am trying to load a dynamic PHP page.
What's Wrong With This Code?
I keep getting parse errors on line 10 (the "if (isset($LOGINID)) {" line). Can any of you figure out why the hell I keep getting this? Is is just something simple I'm overlooking? And if you have any comments on my code (security, structure, tips, etc), I'd like to know as well... [edit] Oh yeah, the db_connect, db_array, db_query, and decrypt functions are all defined in database.php and crypt.php. PHP Code:
What's Wrong In This Code
$link = mysql_pconnect ($DB_SERVER, $DB_LOGIN, $DB_PASSWORD); $selectStmt = "SELECT * FROM user_profile WHERE userid = 'david'"; if (!($result = mysql_db_query($DB, $selectStmt, $link))){ header("Location:http://$HTTP_HOST/$DOCROOT/error.html"); exit(); } here is the case, the userid 'David' is NOT in the table 'user_profile', the program should launch the error.html, and exit(), But it is not.
What's Wrong With This Php Code?
I put the following php code inside my index.html page. I upload it to my host server (free.prohosting.com), change the extension to php (and another one with php3)and CHMOD it to 644. When i viewed it in a browser, the normal html appeared but the items inside the php code failed to appear. Can somebody help me to confirm whether there is something wrong with my php code (it is a news grabber code) or is it because my webhost don't support php (the unofficial FAQ says that the server support php). If there is something wrong with my php code, here is the code: PHP code:
What Is Wrong With Cookies?
I use the following code to check the user who logins against a database.Then the user is redirected either to loginok.php or loginfailed.php PHP Code:
What Am I Doing Wrong With This Regex
I'm just trying to check and see if this name is valid. I submit things like "12345" and it evaluates to true... function checkName ($name) { $status = FALSE; $pattern = "/^[A-Za-z]+$/"; if (preg_match($pattern, $name)); $status = TRUE; return $status; }
Preg_replace - What Is Wrong Here?
preg_replace - What is wrong here? Suppose I have this: $words = array('piece','people'); $profile_text = "I would like to meet people to help me to work in the world piece project."; $marked = MarkWords($profile_text, $words); Should return the same sentece but with the 2 words replaced with the <span> tag, am I wrong? function MarkWords($profile_text, $words){ for($i=0; $i<count($words); $i++){ $patern[$i] = "/@".$words[$i]."/"; $replace[$i] = "<span style='color:white'>".$words[$i]."</span>"; } // print_r($patern); // print_r($replace); $pro = preg_replace($patern, $replace, $profile_text); return $pro; }
Something Wrong With $_POST
I don't seem to be able to access the keys in an associative array. I have a script that dynamically generates a form. The form element names are generated based on image filenames, so I can't just access them the normal way in the form handler script. I tried looping through the $_POST array like this: foreach ($_POST as $key=>$value) { echo $key.'=>'.$value.'<br>' } and i get this output: 0=>Pay 1=>Pay 2=>on 3=>on 4=>tn__DSC2602.jpg 5=>tn__DSC2603.jpg Thos numbers are where I expected to see the form element names. Can anyond advise me on why this is happening?
PHP.ini File Wrong?
I run a test server of apache/php/mysql on my laptop. I just switched from one to another and I'm moving everything over. I downloaded the latest versions of each. (Found that apache 2.0 doesn't work very well and went back to 1.3) Everything is working, DBs are being hit properly and such except: $SERVER_ADDR is no longer being passed back to PHP. When I run PHP_INFO() it shows up there as 飗.0.0.1' as expected, but I can't pick it up in my code. I'm guessing there is something going on with the variables I have turned on/off. Any ideas?
What's Wrong With My Script?
<?php include"dbconn.php"; $db=mysql_select_db(creative_Articles,$connection) ; $Parent="SELECT DISTINCT 'Cat_Parent' FROM Category"; $mysql_Parent=mysql_query($Parent); while ($row=mysql_fetch_array($mysql_Parent)) { $Cat_Parent=$row["Cat_Parent"]; echo "$Cat_Parent"; } ?>
What Is Wrong With This Code?
I am trying to setup a set of radio buttons from a table. I am getting the error: Parse error: parse error, unexpected '[', expecting ',' or '' in /var/www/html/liberty/prototype1.php on line 251 This is the snippet of code. <?php $getnormwtA = getnormwt(); $numct = count($getnormwtA); $tab = 16; $wt = 'weight' $typ = 'radio' for ($i=0; $i<$numct; $i++){ echo "<input name=". $wt ." tabindex=". $tab ." value=". $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>". getnormwtA[$i]['bodyweightnorm'] .">"; $tab++; ?>} ?> This is line 251 echo "<input name=". $wt ." tabindex=". $tab ." value=". $getnormwtA[$i]['bodywtid'] ." type=". $typ ."/>". getnormwtA[$i]['bodyweightnorm'] .">";
What's Wrong With REBOL?
I first came across rebol a while ago; it seemed interesting but then i was put off by its proprietary nature, although the core of the language is a free download. Recently however, i can't help but say i was totally impressed. I needed an open source wikiblog/wikilog, whatever you wanna call it, basically a hybrid of a blog and a wiki. I checked out snipsnap, which uses java, it was said on their site to be a clone of vanilla, a wikilog written with rebol. I wanted an open source thing so i could modify it to my needs. snipsnap turned out to be, even apparent on the first day of use, way too far from being mature and reliable, and although they said it doesn't require a server, it required a download of the sun java sdk, which, when installed, was well over 400Mbs of space on my hard drive. Not to mention another over 100Mbs for the JVM. So as i needed a mature enough solution, but liked the way snipsnap worked, i looked around, and on freshmeat i found vanilla, with a development status of 5; production/stable. I went to its site, where a working demo impressed with its capabilities. The site is though poorly documented, very poorly documented i had to use trial and error to work out how to install it. Anyhow, what impressed me was that the download, which was less than half a megabyte, installed vanilla, which is the wikilog, an apache server, and the rebol interpreter, which is the free download version. And it self-installed! It turned out to be a very very capable wikilog, and highly extensible. I am still amazed and impressed by it after a couple of days of use. Rebol itself seemed a very easy to read language. Sorta like ho readable SQL is. I might even say more readable than python or ruby, or at least as readable. I have the intention to learn it over the coming few days, at least to customize vanilla to my needs. So i ask you guys, what's wrong with Rebol? i mean other than it's proprietary nature. 'cos anyway, there are many commercial IDEs for open source languages, and if smitten enough i might even consider a rebol SDK. It just amazes me for how readable it is, how much it seems to enable to do with so little code, and the size and capability of the final solution.
What Is Wrong With This Line ?
It has to be something with the characters, right ? $search = array(".", "", "+", "-", "*", "/", "!", "%", ">", "<", "^", "(", ")", "[", "]", "{", "}", "", "=", "$", "#", "?", "~", ":", "_", "&", "©", " ", """, "ü", "&", ";", " "); $line = str_replace($search, " ", $line);
What Is Wrong With This If Test?
I am at a toral loss after having programmed for forty years. Here are my results: selHint_2=1 It is clear that for the second time through the loop ($i=1) that $index=1 and $selHint_2=1, while for the first pass through ($i=0) $index=0 and $selHint=1. Yet, the " selected " comes up for the first time and not for the second. It should be the other way around. Any clues? Here is the code: $numHint_2 = 2; $hint_2_Lookup = array(0, 1); $hint_2 = array(); $hint_2[] = " Family member's name"; $hint_2[] = " Mothers maiden name"; $foo = ""; // put in for debugging only $tmpHint2 = array(); $tmpHint2[] = '<td class="stdBold"' . $readonly . '>' $tmpHint2[] = '<select name="hint_1" value="" >' for ($i=0; $i<$numHint_2; $i++) { $index = $hint_2_Lookup[$i]; if ($index == $selHint_2) { $sel = " selected "; } else { $sel = ""; }
Age Function Wrong
I have this code to show a users age on there profile, The problem is it shows the correct age for some users and the wrong age for others. Example birthdate 1983-04-21 should show age 24 but instead returns age 23. PHP Code: //calculate years of age (input string: YYYY-MM-DD)   function birthday ($birthday){     list($year,$month,$day) = explode("-",$birthday);     $year_diff  = date("Y") - $year;     $month_diff = date("m") - $month;     $day_diff   = date("d") - $day;     if ($day_diff < 0 || $month_diff < 0)       $year_diff--;     return $year_diff;   }
PHP Time Is Wrong
I just installed php 5.1RC1, mysql 4.1.14, apache1.3.33 on a windows 2000 server machine. Anyway some wierd bugs are happening, the time for the server is incorrect. The time set on the machine is right, the time in the apache error log is right, but when i do a simple time() call in php is gives some ridiculous time like 6:30PM and its really 2:01PM. another problem i just remembered was something i'm hoping is simple. I do a simple printing of the date using the date function. I believe i did something like this, $today = date("F j, Y, g:i a"); From what i remember it had a "f" after the month and the year was repeated twice. The day and month were correct though. Anyone know whats going on? I'm not at the machine now but once they set up their vpn and can go in and change whatever it is.
Date()'s Wrong.
so I'm using echo date ("r"); and it's returning the time an hour late. Is that set wrong on the server? And if so how to go about fixing that. email them I guess? I mean, I guess I could learn to parse nist.gov output, but that seems like alot of trouble for something so small. Since I don't have another box to check with, could someone click my site link below and tell me if the time in the nav bar is late for them also?
Query Right Or Wrong
this errors out and i dont know why. PHP Code: $sql = "SELECT s.`id`, s.`topic`, s.`username`, s.`date`, s.`subject`, s.`post` COUNT(c.`posts_id`) AS `ct` FROM `forum-posts` s LEFT JOIN `forum-reply` c ON s.`subject` = c.`posts_id` WHERE `topic` = '$topic'";
If Else Statement Wrong
Could anyone tell me what's wrong with this code? <?php If ($CategoryName == 'U-100') { ($UnitPrice = 500); } else if ($CategoryName == 'U-130') { ($UnitPrice = 400); } else if ($CategoryName == 'U-105') { ($UnitPrice = 350); } else if ($CategoryName == 'U-95') { ($UnitPrice = 200); }else if($CategoryName == 'U-85') { ($UnitPrice = 445); $Total = $ProductUnits*UnitPrice echo $Total ?>
PHP Fetch_array() WRONG
I have this simple code: <?php include("connect.php"); $sql = "select * from post"; $res = mysql_query($sql); $row = mysql_fetch_array($res); echo $row['post_id']; ?> But the page result is this: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in #############index.php on line 5.
Mod Rewrite Went Wrong
half a year ago I outsourced a mod rewrite on a client's site. I think what the coder did is set up a customized 404.php. The site lost a lot of traffic recently, on Google, every url has no title and snipet but just a url. Every rewritten url is returnning a "404" responds before it displayes actually content. And it is believed that Google finanly decided not to index these pages anymore. Code:
4 XML: Whats Wrong With This?
All i need is someone to help me with my script so that every node in the array goes through the if..else.. statments, with the end result of an array of $albums and an array of $images. Code:
Wrong Download Name
I just came onto a project where a visitor downloads a file after hitting a button. The button goes to a .php file and then uses header functions to initiate the download. The problem is after a server switch, the .exe is file is downloading as filename.php. The download is the file seeing as renaming it to .exe makes it run properly. Code:
Wrong Header
Please, my script makes it possible to upload documents and metadata to mysql, document in blobs. My script works well as I access it in the folder it resides. BUT when I try to include it in a slightly another path in the file structure the header information disappear and when I try to download the files I only get noise code. What on earth can I do? Nothing is changed in the script, the paths are paths.
Wrong Filesize Download
I have a image displayed on my site, and theres a button that says download this image, when a user click on the button, this is called. PHP Code:
Session_start() Works Wrong For Me
I have problem with sessions. I make this without cookies but by propagate session ID by GET. I have make session by calling session_start() after test login and password with database. After that i register a one session variable. My problem is when i later call session_start(). This (second) call make me new session (second), but not rectivate and introduce back frozen variables of my first (correct) session to the global namespace. I think this situation happens when URL doesn't contain session ID. Is the reason or maybe something else?
Phpinfo() - Wrong System Name
I built an Apache 1.3.26 binary with PHP 4.2.1 support for AIX. When I used this binary on another system, it worked great, the only thing that bothered me is when I created a test page using the phpinfo() function, the "System" field has the hostname of the machine I created the binary on.
What Is Wrong With This Piece Of Code
I am using a piece of code which is testing if a certain variable is <=0. and the code is written as follows: $lc_align = 'center' if ($listing['products_quantity']<=0) { $lc_text = tep_image_button('button_buy_now_na.gif', IMAGE_BUTTON_BUY_NOW_NA) . ' ' } else { $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ' } break; } The problem I am facing is that the this code returns all result to be true ie. <=0 even though most of the variable are greater than 1. Is the test wrong? Or can I change the syntax and how do I do that
|