Jump to content

slongmire

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

slongmire's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you, mjdamato! THAT statement at least makes me feel a little better, as I was beginning to feel quite "challenged" trying to find out if they had some special logical function within the index. Your interpretation of the potential meaning of this very long string is also helpful. I will look through the long and winding code again tonight with this insight. Steve PS - The guys that wrote it freely admit they are NOT programmers or php programmers, but rather weather hobbiests who are trying to write a script that will work with the output strings from many different weather data consoles. Since there are at least 5 different major manufacturers, each with lots of different models, it is kind of like designing a universal car seat cover that fits perfectly any model! They, and now, I are (am) just trying to figure out why the script is showing clear sunny icons when it's raining cats and dogs!
  2. Hello - I am having trouble getting a weather sticker php script to work properly. I have been working with the guys that wrote it, but so far they haven't come up with a solution. They/we have narrowed it down to the section of the script that compares a text string (which has been converted into UPPER CASE) from a file generated by the weather station, with an array. It is supposed to match an index in the array, that points to which graphic file to generate. This works about 30% of the time. (When the text string is VERY SIMPLE - like CLOUDY or CLEAR or RAIN) But not when the text string is more complex, like HEAVY RAIN, MIST OVERCAST, LIGHT RAIN or PARTLY CLOUDY. Here is the line that defines one of the elements in the array: I did not incluse the whole script, nor the whole array because of its length. My Question (Finally...) is --- in the line above within the square braces, he has enclosed a string in double quotes, but the string is delimited by | characters and + characters. Can someone explain to me in English what this means? I have tried reading through two big reference books on php arrays, and they only made me even less certain. (For example: "the line means - If the string is PARTLY or MOSTLY CLOUDY or SUNNY and THUNDERSTORM, then set $vws_icon to whtever the $daynight._tstorm.$image_format evaluates to.) I know, my example translation makes NO SENSE in English. Maybe it makes no sense in php either? I think what he's trying to ask is "If the string contains 'THUNDERSTORM' and any of these other words, then generate the correct icon file for thunderstorm". Any help would be greatly appreciated! Steve
  3. OK - From the MySQL MySQL Administrator Forum - since no one here understood, and in case anyone else runs across this .... Thanks to Wade in the MySQL forums - it worked like a magic charm!
  4. I just installed WAMP 1.7.0 and was able to get into the phpMyAdmin page, where I wa able to set the password for root for MySQL5. However - I cannot use MySQLAdmin to administer this new MySQL installation. When I try to connect to localhost:3306 as root using the new password, I get a dialog bog saying: Either the server service or the configuration file could not be found. Startup variables and service selection are therefore disabled. If I click OK - the MySQLAdmin opens and shows the Server Information Page - which says the MySQL server service is running. But when I click the Service COntrol tab - it says the MySQL Service is stopped, and there is a bit of red text at the top that says: This section is only available when connected to localhost. I am completely baffled! What do I do to be able to use MySQLAdmin to administer this WAMP install of MySQL? This is the first time I have used WAMP - I installed MySQL 4 on a different machine from scratch some time ago, and have been able to use MySQLAdmin with it. Yes, this version of MySQLAdmin is the latest download from MySQL.com. Thanks!
  5. Thanks for the info. I thought I'd messed up again!  ::)
  6. I have php 4.4.3 runing on WinXP Pro SP2 under IIS 5.1 as an ISAPI installation. When I run phpinfo() in a test web page, I get the standard page generated that shows what parts of php are installed, etc. However, I noticed the strange entry for include_path that points to .;c:\php4\pear below. I have no c:\php4 directory, and never have. Neither have I attempted to install pear. I exported a couple of sections from the phpinfo() web page so maybe someone can help me troubleshoot and fix this entry. Directive Local Value Master Value display_errors Off Off display_startup_errors Off Off doc_root c:\inetpub\wwwroot c:\inetpub\wwwroot docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log syslog syslog error_prepend_string no value no value error_reporting 2047 2047 expose_php On On extension_dir c:\php\extensions c:\php\extensions file_uploads On On gpc_order GPC GPC [color=red]include_path .;c:\php4\pear .;c:\php4\pear[/color] In checking the php.ini file, the lines for include_path (both the Unix and the Windows versions) are commented out and not set. In neither of those examples did anything ever point to c:\php4\pear, either. Thanks, Steve
  7. Have WinXP Pro SP2 running IIS 5.1 and PHP 4.4.2. I downloaded the 4.4.3 zip file and unzipped it. What is the best/easiest way to upgrade the current 4.4.2 installation to 4.4.3? Current installation is in c:\PHP, and its php.ini is in c:\windows. I would prefer not to have to uninstall and then redo a manual install if possible. Thanks, Steve
  8. Just joined this forum, but have noticed that most tags in messages are being displayed as their tag code text, rather than being displayed as they should. THis is particularly true of hyperlinks, which are not clickable nor do they link to anything. I am running XP Pro SP2 IE 6 with all the M$ patches every Tuesday. I looked, but could find no profile setting that blocks displaying hyperlinks. Please advise. Thanks! Steve
  9. My system: WinXP Pro SP2 with IIS 5.1 (the default that comes with XP Pro + the patches from M$). Php 4.4.2 (downloaded as the ZIP file from PHP.NET) I had a previously "failed" install of 4.4.1 CGI version on this same machine, but Removed it using Add/Remove Programs, then rebooted before trying to follow the Manual Installation instructions in the ZIP download. After reading these instructions more than 3 times, I decided to try the ISAPI method, and step-by-step followed the instructions from the Install.txt file. I unzipped the file to C:\, and then renamed the directory from C:\PHP-4.4.2-Win32 to c:\php. I copied all the files from the c:\php\dlls and c:\php\sapi directories to the c:\php directory as instructed by the Install.txt file. I then went to IISAdmin and followed the instructions to setup the ISAPI Filter and the executables. This may be where the train left the tracks --- The old entried from the cgi version were still in IISAdmin, so I edited them to reflect what the Install.txt said should be there. I had to change the Executables from php.exe to php4isapi.dll. So, as far as I can tell, there are now no pointers to the php.exe file within IISAdmin. When I go to c:\php\cli and type PHP -version  it reports version4.4.2. When I type php - i > c:\inetpub\wwwroot\phpinfo.htm, it creates this htm file and then when I load it into IE 6 all i get is a page of the phpinfo command, rather than the nice html page that my former partly failed installation used to generate. I did not used to consider myself technologically challenged - Heck - I anesthetized some very sick humans for more than 25 years with less trouble than this! Can someone please help straighten me out on this installation? I would prefer not to have to download and learn Apache (so I guess the install for dummies routine mentioned at the top of this forum is out for me). As you can see, just coping with an already working IIS and adding php has proven too much for me! Thanks for your patience and help!
×
×
  • 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.