| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Comments:
<0> iPod-nano: Then you'll have to give us a detailed description of what is happening before we can tell you which step you did incorrectly. <1> OK <1> I created a PHP script and uploaded it to my friend's server. <1> It said: <1> Fatal error: Call to undefined function mysql_connect() in C:\Web Server\crew1234\adduser.php on line 3 <0> Go on <1> There is nothing unusual about line three. Here it is: mysql_connect($mysql_server,$mysql_username,$mysql_p***word); <1> All those variables are defined. <2> did you try to restart the webserver after making the above changes? <3> Hello <4> iPod, where did you get your PHP distro from? <0> iPod-nano: php.net/mysql has a section labelled "Installation on Windows Systems". You need to do the steps laid out there. <2> oops i'm gone, i forgot <3> is there any function that will create an html output of the php code? <0> Acs: php.net/highlight-file <3> thanks
<1> I got the ZIP file from php.net. <1> I modified php.ini to enable the php_mysql.dll extension, and yes I set the extension directory. <0> iPod-nano: Are you using PHP4 or PHP5? <1> 5 <0> iPod-nano: You put libmysql.dll on the PATH? <1> I put libmysql.dll in C:\WINDOWS, C:\WINDOWS\system3. <1> *system32 <0> iPod-nano: That doesn't answer my question. <4> iPod, er, in both directories or? <0> Is libmysql.dll on your PATH? <1> I copied it to both directories as well as leaving it in the PHP directory. <0> iPod-nano: That doesn't answer my question. <0> Is libmysql.dll on your PATH? <0> It's a yes or no question. <1> I don't know how to do that. <0> iPod-nano: php.net/mysql has a section labelled "Installation on Windows Systems". It includes a FAQ that discusses the matter. <5> Why might PHP complain that the headers have already been sent by line 1 ("<?php") when I try to set headers? <0> deitarion: You have some whitespace somewhere. <0> deitarion: Possibly before <?, or in an include file. <6> deitarion: PHP tells you where the cause of that error occured. See the 'Output began at ...' line. <0> mattmcc: You looked at that static analysis yet? <0> Not sure if that's your cup of tea or not <5> Yes. Output began at line 1. (which contains only "<?php" according to the text editor) <5> Give me a sec to try with a hex editor. <0> deitarion: Are you editing the file in a windows editor and then pushing it to *nix? <0> deitarion: If so, make sure you're not saving in a Unicode format. This can introduce a Unicode BOM mark that PHP sees as output <5> No, I wrote it in SciTE directly in the folder where the webserver is accessing it. <3> does anyone here use dreamweaver? <3> I am connected to my host using dreamweaver <3> but how do I upload a file? <5> Ahh. That's probably it. I think I have SciTE defaulting to UTF-8. <5> Yep. There's the BOM. PHP really should fix that. <7> acs... thats what the help section is for <7> not that you really need it for dreamweaver anyway <0> deitarion: It's not a PHP problem. Your OS' open() and read() shoud fix it. <0> deitarion: Having app-level support where OS-level support doesn't exist only perpetuates the problem. <0> deitarion: As you've just seen. <1> OK, that didn't work. <8> who is bigfiggz? <0> iPod-nano: Is libmysql.dll on your PATH? <0> rares000: Did he offer you work? <1> It's everywhere. <0> iPod-nano: Is libmysql.dll on your PATH? <5> TML: I consider it an app-level problem because PHP should ***ume that non-translated encodings are default. To make it otherwise would make the OS introduce problems into who knows how many programs. <8> haven't responded <1> I added the directory C:\PHP to PATH, and it contains libmysql.dll. <8> who is it? <0> An idiot <9> hi :) <8> what does it want? <0> Who's not even here? <8> um he is <0> Oh, I just can't spell <8> i see him on my userlist <8> my moomy told me not to talk to strangers <5> It's bad enough that Windows even HAS "text mode". If anyone ever introduces it into Linux, I'll probably arrested as an accessory to murder. <0> Yeah, and I told him twice yesterday to stop soliciting. <8> what's he want? <0> rares000: To screw users <0> rares000: He appears to be trying to hire PHP developers, but was told not to recruit here. <0> iPod-nano: Eventually, either you'll answer the question directly, or I'll get tired of you. Now. Is libmysql.dll on your PATH?
<1> I told you, it's in C:\PHP and C:|PHP is in the system Path. <0> iPod-nano: This is a yes or no question. The *ONLY* acceptable answers are either the word "Yes" or the word "No". Is libmysql.dll on your PATH? <1> I believe that would be a yes. <10> err <11> a question about singleton patterns: if i call a getInstance in another cl***: i do it like singleton::getInstance(); But then he goes into his constructor too??! <0> iPod-nano: I don't want to know what you believe. Anything besides "yes" or "no" is going to be considered equivocation, and I'm not interested in helping someone who can't directly answer such a simple question. <10> why would it goes there ? <12> mm, nothing says "trendwhore" like product placement in an irc nick. <1> I hate Windows! <12> iPod-nano: so? <0> iPod-nano: Is libmysql.dll on your PATH? <1> I said Yes already. <0> No you didn't, you said you *believe* it's a yes. <10> Aap, I have a Site cl***. its constructor initialize stuffs. then i have a static method called... guess... getInstance() that checks for instance of Site in $GLOBALS <0> I believe the Moon is a m*** hallucination. <8> iPod-nano: so you went and found the file in a directory that is listed in your path? <10> either there is one and i just return it by ref. or i call the constructor <0> iPod-nano: Did you stop the web server? <10> (and i return) <1> I even restarted. <0> iPod-nano: Did you stop the web server? <1> Restarting the computer stops the web server. <0> iPod-nano: Did you stop the web server? <8> i believe he means yes <0> rares000: I believe the Moon is a m*** hallucination. <11> okay, so outside the Site cl***, how do you call the getInstance() --->because you need to call the getInstance, not the constructor <0> Until he says yes, this conversation is at yet another imp***e <1> TML: need you be so hostile? <10> Aap, i'm talking about static method... <0> iPod-nano: Need you be so ignorant? <10> so Site::getInstance() <11> yes <0> iPod-nano: If you follow instructions and answer boolean questions with direct yes or no answers, you'll find my hostility decreases significantly. <8> iPod-nano: he's not at your computer he cannot see it he needs direct answers <10> Aap, note that getInstance() will call the constructor *IF* needed <0> For example, right now I'm trying to determine whether you understand the difference between stopping the webserver and rebooting the OS. <11> true <0> So, iPod-nano: Did you stop the web server? <10> you should not call the constructor directly (imho) <8> why is it so hard to understand that helping people remotely is often done blindly without any clue what the user is actually doing <1> Yes, I stopped the web server, I restarted the computer, I'm back in the "Environment Variables" and to answer your questions, yes, it's on my PATH. <1> I even checked it twice. <0> iPod-nano: Did you stop the web server WITHOUT RESTARTING THE COMPUTER? <10> it also depends on where you put your instance... i find convenient to use $GLOBALS for this. <1> What difference would that make? <13> Hiya, I added a few tags to PHP's configure the other day and recompiled + installed the thing (didn't change any settings or remove anything, only added things) and Horde is now coming up with this lot: http://webmail.pagan-network.org/ Any ideas? <11> I don't do that (and getInstance() has to do that ONCE, but he does it several times.) For example when i call getInstance() from Site in another cl*** <8> iPod-nano: you don't know if TML wants the web server to STAY stopped <0> iPod-nano: VERY VERY VERY LARGE DIFFERENCE <0> I can't even describe the enormity of the difference. <1> Fine, it's stopped. <10> calling getInstance() from Site is an error (imho) <1> The server is no longer running. <0> iPod-nano: OK. Which web server are you using? <10> well ok, i'll post the few lines of my static method <1> Apache 2. <11> yes <11> thx <8> maybe he wants you to STOP the server not RE(LOAD, BOOT, START) <0> iPod-nano: Are you logged into the server using VNC, Remote Desktop, or some other means? <1> Don't tell me I have to go and mess with httpd.conf. <1> VNC <1> The server is over a mile away from me. <8> apache 2 uses appache2.conf <0> iPod-nano: How do you stop and start your apache? Using a shortcut in your start menu? <1> The apache monitor in my system tray. <0> iPod-nano: OK, that's great. Do you know where your apache log files are stored? <1> 'Fraid not. <0> Ok, then you're going to have to find your apache configuration files <0> In one of those files there should be a line "ErrorDocument DRIVE:\Path\file.log" <1> httpd.conf? <14> If apache1.3.x <0> I'm using "meta-names" there. They won't be called that precisely.
Return to
#php or Go to some related
logs:
#linuxhelp diable netfilter crx1f15d
ubuntu an983 broadcom netxtreme 57xx debian sudo dhcpclient fluxbox assing key #perl #lisp +ubuntu +xampp +xampp on linux
|
|