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?
View Complete Forum Thread with Replies
Related Forum Messages:
Shutdown Order
I have this code: class Test { public $status = 'dead' function __construct() { $this->status = 'alive' } function __destruct() { echo '<br>__destruct()' } } $o = new Test; function shutdown() { echo '<br>shutdown()' } register_shutdown_function('shutdown'); function obflush( $s ) { global $o; return $s . '<br>obflush() ' . $o->status; } ob_start('obflush'); Which (using PHP 5.1.4) produces this output: shutdown() __destruct() obflush() alive I have two questions: 1) I have read that the order in which the three functions are called has changed previously and is likely to change again in future versions of PHP. Does this mean I cannot rely on this order at all? 2) Why is $o still "alive" in obflush() even though its destructor has been called before? The destructor having been called, I would expect global $o to point to a no longer existing variable (thus, "null").
View Replies !
Please Help: How To Log Data Before Shutdown?
Quick question: Assume your PHP script is running in the background executing some long, time consuming process. And while it's running the Host Service Provider decides to shut down the server for maintenance. How are running scripts in that case terminated? Will they exit orderly or will they simply be aborted like pulling the plug? Will the "register_shutdown_function()" be executed when a server shut-down exits all running processes? How can I get my script to write some log data before it is stopped when the server shuts down or so?
View Replies !
Shutdown Computer
I run an online radio station, and am in need of a method to shutdown or restart the computer running the station in case of errors etc. I noticed the delphi program idea someone posted earlier, but I dont have possesion of any way to compile delphi code or any knowledge of delphi. I could use to solve this problem?
View Replies !
Warning: Unknown Persistent List Entry Type In Module Shutdown (11)
I am getting this wanrning: Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 0 I have never seen it before or know what it means and line 0 is hard to find especially when no document is specified Everything works as it should at this point just getting that warning on my personal apache server any ideas?
View Replies !
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.
View Replies !
Warning: Session Start() [function.session-start]: Open(/tmp/sess 8b10
Hello. Could someone tell me why i am getting these warnings on my php pages? And what i can do to fix it? Thanks. Warning: session_start() [function.session-start]: open(/tmp/sess_8b107ef6a1cde0a7426aedc044c14cb2, O_RDWR) failed: Disk quota exceeded (122) in /home/ployjam/public_html/admin/login.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/ployjam/public_html/admin/login.php:2) in /home/ployjam/public_html/admin/login.php on line 23 Warning: Unknown: open(/tmp/sess_8b107ef6a1cde0a7426aedc044c14cb2, O_RDWR) failed: Disk quota exceeded (122) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
View Replies !
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.?
View Replies !
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?
View Replies !
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").
View Replies !
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.
View Replies !
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.
View Replies !
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 Replies !
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?
View Replies !
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:
View Replies !
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
View Replies !
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.
View Replies !
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.
View Replies !
Better To Start With <? Or <?php
Is starting with <? the same as <?php . The reason I asked was that after reading a few tutorials I have seen them both use <? and <?php sometimes. Why not use <? since its only 2 chars compared to 5?
View Replies !
Not Sure Where To Start
I have a page with the letters ABCDE...etc I want to be able to click on a letter and it will bring up a list of title's to click on, so how do I get it to load a page if say A was index.php?reviews=a I've already got the page with the links in and that then loads the reviews up if you click on the link, but I've made 26 pages areview, breview, creview etc. I would just rather have a common page that would choose the right one. Is this a simple answer or is it going to be complex?
View Replies !
Where To Start
I'm still new to HTML / PHP and so forth, but here is my project. I am going to create database table with URL's in it. This table is going to be my list of "member sites". I want a user to be able to enter a search question (for Example, "GOLD WIDGETS"). Then I want to move through the list of "member sites" searching each site for "GOLD WIDGETS".
View Replies !
Where Do I Start
I don't have any idea about frameworks, how they work and what they are. I didn't learn much of the base PHP stuff, but I can assemble a quick program if I'm required to, and if it's needed I can go back to revisiting some of the php books I have. And I kinda know some xhtml/css but I won't do it without an IDE or web development tool (i.e Dreamweaver) that auto-completes and does most of the dirty work for me. from where do I need to start to get the basic knowledge and getting experience(quickly)? I need this done in about 2 months, and I hardly can keep myself motivated to do this.
View Replies !
Best Way To Start Learning...?
Alright, I need to learn PHP, but honestly I'm having trouble with some of the online tutorials for two reasons: 1. They're incredibly dry and tend to just say what things do instead of going in-depth into examples. 2. They don't provide me with excercises and projects in which to test out what I've learned. The best books I've ever read on any form of scripting, coding, programming, etc. give me tasks in which to use what I've been taught. I only learn well by doing, not simply by being presented with facts. So... is there a site and/or a book (I'm willing to buy one if necessary) that you would recommend for someone like me? As a side note, a lot of them seem to put a lot of time and effort into instructions on setting up PHP, Apache, and MySQL. I have a web host that's already fully configured (and runs PHP as CGI, although Apache is an available method that goes against their recommendation)
View Replies !
Want To Start Tomcat From Php
i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the sheel scripts...i normally use the shell scripts from the command line to start and stop the tomcat server..... i found out that php gives this incredible facility where i can execute normal bash commands...i tried doing so ..but a simple command like { system('whoami') } from browser......eg.....http://localhost/startup.php.. prints apache as the user....so technically it executes the tomcat startup script as apache user..but ive got jakarta-tomcat-5.5.3 under the tomcat user....can someone please tell me is there a way in php coding wherein i can execute the command as another....i know this seems a bit out of place...but i really didnt know anywhere else to go
View Replies !
PHP Script At Start Up
I would like to run a script at startup under SuSE 9. I read and figured out that it can be done using chkconfig and setting the proper run level. The problem I have currently is that I depend on system environmental variables being available for PHP. I am using PHP as a scripting language (nothing to do with the web), and this PHP script is called from the start up bash script, but it cannot retrieve any environmental vars at runlevel 3. When are environmental vars set and at which runlevel? Or should I do this some other way?
View Replies !
Newbie Looking Where To Start
After being a lurker in here for some time, I got the PHP bug, and downloaded Apache 2.0, PHP 4.summat and MySQL I installed, registered the dll's edited the conf files and finally got it all working (i think) after a few nights of faffing about. Now... where should i start? I know naff all about PHP or MySQL and would be greatful if someone could point me in the direction of some tutorials to start learning about PHP and MySQL. I am from a programming background (visual basic) and have a welly load of knoledge on relational databases so wheres the best sources... Book/Web/Forums etc...
View Replies !
Fopen Start On New Row?
is it possible to have fopen start on new row? fopen("$filename","aw"); i've been trying to write to the end or beginning, doesn't really matter, of a .txt file, but it just writes on the same row as the last input.
View Replies !
How To Start Session?
i m learning how to have session in my form. like for example, after the user insert their information in the application form, they will then be redirected to another page. the another page is where they will have to print out their form - with their info added in. but i m unsure how to go about doing it. can someone show me?
View Replies !
When Does HTTPS Start?
This might seem obvious, but do you have to establish an https connection before a form is sent, or can you send the form to an https connection and have it encrypted? For some reason, I never looked into this - I just always sent the form to the user via https to be sure - and to be honest it really doesn't matter that much, but I'm just curious. Code:
View Replies !
Session Start More Than Once
I include sessionstart.php which calls session_start() and instantiates a user class from my index.php. I also have a place to login with the form set to run login.php and then I want to reload the index.php with the user set up. Does the session_start() get run again and if so does it kill the stored values? And how am I supposed to reload the index.php? The way it is set up now I have to have "Action='login.php'" but somewhere in login I have to go back to index. Or should I put the action="PHP_SELF" and collect the user's info on load?
View Replies !
AJAX: Where To Start
IVe read a few articles: IBM IBM IBM but im left wanting more... would it be better to get a book that provides step by step the basics-or- is there a website that would be comperable.
View Replies !
Get This Session To Start
I'm just tryin to get this session to start... in page1.php there's this: <?php session_start(); $_SESSION['test']='working' ?> and in page2.php i will do this: <?php session_start(); echo $_SESSION['test']; ?> but nothing prints.
View Replies !
Start A Session
i need a very simplified log-in / logout process for learning purposes. 1)when a log-in button is clicked i want a session to start. similarly when another button is clicked i want the session to be destroyed. this should apply acoss the whole site and not just for one particular page. 2) to know that a session is on, i want an if statement that evalutes if a seession exsist. If so, a text saying "session exsist" to show up.
View Replies !
Start MySQL
I'm running a website on XAMPP and I was able to start and stop the mysql database each time I opened the Control Panel Application. But the last time I had mysql running I clicked the Admin. button and that launched the mysql admin interface. Now, whever I click the Start button for mysql on the XAMPP Control Panel Application, the database starts for like 1 second then turns off again immediately.
View Replies !
About To Start A New Project
I am about to start writing invoicing software for our company, and think PHP is the direction I should take. Should I look at using any other framework like Cake, Pear, or anything else to aid in the process?
View Replies !
Session Start-Up
I'm trying to use sessions to store a user's username for me. I seem to be messing up the sessions_start() command. I've put this: PHP Code: <?php session_start(); ?> at the top of the body section of my page but get this message: ----------------------------- Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/scodut.freehostia.com/sign_in.php:10) in /home/www/scodut.freehostia.com/sign_in.php on line 10 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/scodut.freehostia.com/sign_in.php:10) in /home/www/scodut.freehostia.com/sign_in.php on line 10 ------------------------------
View Replies !
Php Tag To Start New Page
I have a page that is generated based on a user's selection of a state. They can then choose to use the default letter, or write a custom letter. The state they select will always return 2 people. So I need to output the letter to 2 pages for them to print out. Here is what I have so far. while ($row = mysql_fetch_array($query)) {echo "<p>",$row['first_name'], " ",$row['last_name'], "<br>", $row['address'], "<br>", $row['city'], ", ", $row['state_dc'], " ", $row['zip'], "<BR>", $row['email_address'], $row['website'], "<P>", "Dear Senator ", $row['last_name'], ",", "<P>"," $letter" ; } If the letter they put in is less then a whole page, then next senators address is on page one and there for unprintable.
View Replies !
Session Start
user logs in, passes thru auth.php if that passes $_Session is now true. on include.php i have: session_start(); include.php is on all pages. do i have to have session_start(); on any other pages to keep session active? or will include.php do it for me.
View Replies !
CGI Virgin... Where Do I Start?
I'm only familiar with HTML raw coding, and am eager to learn CGI and PHP. Is it my impression or has PHP indeed taken over Perl? I have no idea where to start. Is there an online resource that someone can lead me to? Also, I don't have access to a server that I could play with while learning the basics. Will this hinder my learning curve?
View Replies !
Start Array At 1
I am reading the contents of a folder and storeing the file names to an array as such: PHP Code: while (false !== ($filename = readdir($dh))) { $files[] = $filename; } When i print_r the values to the webpage, even though I only have 6 files in the folder, there are 8 elements in the array showing where the first 2 are empty.
View Replies !
Start With Ecommerce
I am an amateur programmer looking to build an ecommerce site, but am a relative newcomer to the tools available (e.g. PHP and MySQL). I was just wondering if any of you have any recommendations as to where I should start gaining the knowledge necessary (e.g. books and tutorials).
View Replies !
Start A New Browser
I have a simple form, and after the visitor filed the form and click the button, I want to pop up a new browser so the user can preview the information, but the original browser window is still there.
View Replies !
Start A Session On Page
im trying to start a session on my page... and it kind of works... after initializing the session, and assigning a value to that variable, when i print that variable... it prints the value, but also shows some error messages... This is my code... session_start(); session_register('userNum'); $userNum = mysql_result($res,0,"userId"); printf($userNum); These are my errors... Warning: Cannot send session cookie - headers already sent by (output started at 'examplesiteandpage':2) in 'examplesiteandpage' on line 8 Warning: Cannot send session cache limiter - headers already sent by (output started at 'examplesiteandpage':2) in 'examplesiteandpage' on line 8 Does anyone know why this happens? The variable is still created, and the value assigned... but i get the errors... thanks
View Replies !
Start And Stop Apache With PHP
Is it possible to start and stop a server using a link button. Is there any PHP function to control the server starting and stopping. I have a small function to check the server status. This is it below // This function checks to see the status of the servers function check_server($ip){ $fp = fsockopen ("$ip", 1111, $errno, $errstr, 30); if (!$fp){ echo "<td bgcolor=red><FONT face=arial, helvetica size=2 color=white>DOWN</font></td>"; } else{ echo "<td bgcolor=green><FONT face=arial, helvetica size=2 color=white>UP</font></td>"; fclose($fp); } } I now want to either have a method to either stop or start the server depending on its status.
View Replies !
Inserting At Start Of Array
I am trying to insert an item at the start of an already populated array but I cannot seem to find a way of doing it. Here is an example of what I am trying to do:
View Replies !
Start A Session Id And Register
I start a session id and register "lang", lang equals english.php I have 3 images that are links and one of them is the France flag. Now how can I make so that when a user clicks on France flag, the value of the $lang changes and becomes french.php instead of english.php ?I can't do things such as: <a href="blah.php onclick="<? php code?>"> cause this gets executed no matter what. so if the client does not click on this link, it'll get executed anyway.
View Replies !
How To Delay The Start Of A Function
My problem is that a function in the page have a rather heavy mysql query. The query takes between 6 - 10 seconds. while the query takes place other content on the page stop loading (Opera). Explorer and Firefox seems to wait for the whole page to load befor drawing the site. Is there a way to tell the browser to draw all the content except for this function and run through this at the end, alternatively to run the process in backround? This functionality a want is on many sites who let you search through multiple whois databases.
View Replies !
|