TweezerMan
Members-
Posts
1,763 -
Joined
-
Last visited
Everything posted by TweezerMan
-
Welcome to the forums, Brian!
-
Welcome to the forums, jaime!
-
Congratulations, BillH and family!
-
No experience here, but searching for "Compaq DL360 solaris" on Google turns up some results that may be of interest to you.
-
To my knowledge, there isn't one. What you're asking for just doesn't mesh with how databases work. If you really needed the results formatted in the way you describe, the application making the query (such as a PHP script) would need to do whatever transposing and reformatting of rows and columns that you require.
-
Take your pick: a) There's no such thing as a true psychic. b) Psychics, like magicians, never tell their secrets, so no one would know that a lottery winner was a psychic. c) A psychic using their abilities to win the lottery would violate the rules against using their powers for personal gain.
-
PHP evaluates the right-hand side of the assignment first [the "include('myfile.php')" part]. The include statement is executed just as if it had been on a line by itself, so any 'echo' statements in the file are still output to the browser. What gets added to $data is the include statement's return value, not the included script's output. Unless the included script explicitly returns a value, the include statement evaluates to true (1) if the include was successful, or false (0) if it was not. To return the included script's output back to the include statement in the main script, the included script would need to accumulate its output in a variable, then the last line of the included script (just before the '?>') would return that value with a 'return $var;' statement. Those are both PHP. When assigning new elements to an array, the '=>' is what separates the 'key' and the 'value' for that element in the array. Example: ><?php $arr = array('fruit' => 'apple', 'veggie' => 'carrot'); echo $arr['fruit']; // prints 'apple' echo $arr['veggie']; // prints 'carrot' ?> In your example above, there's a function called 'do_output' that expects to have an array passed to it, and it will retrieve the values passed to it by reading $arr['TITLE'], $arr['JS'], and $arr['NAV'] (assuming $arr is the array variable in the 'do_output' function). You can read more about PHP arrays at PHP's web site. The '->' is used with PHP classes and objects. I've never worked with them, but they look similar to Perl's classes and objects (which also uses '->' to work with them). You might try reading "Classes and Objects (PHP 4)" on the PHP web site.
-
It appears that there's a limit to how many quotes you can include in a single post. That limit appears to be 10, and your post has 20.
-
Is the URL you're using to log into MT the same as what you've configured for CGIPath in mt.cfg? For example: Logging into MT at http://my-TCH-domain.com/mt/mt.cgi, but having CGIPath set to http://www.my-TCH-domain.com/mt/mt.cgi. The login cookie gets set for my-TCH-domain.com, but MT will look for (and not find) a login cookie from www.my-TCH-domain.com, which is a different domain, and not think you're really logged in.
-
In your main script, its output is being accumulated in a variable ($data) - it is not immediately sent to the browser. After all of the page data has been accumulated, then the main script sends (prints) the content of the $data variable to the browser. In the script you want include, its output is not accumulated in any variable - it is sent to immediately to the browser. Since this occurs before $data is printed, its output will always appear at the top of the browser. If you want the included script's code to be inserted in the middle of what your main page outputs, its output needs to be inserted into the contents of your main script's $data variable. I'd suggest modifying your 'myfile.php' script to the following: ><?php $data .= "<h2 align=\"center\">TITLE</h2>"; <have some connect to Database stuff here> $sql = "SELECT * FROM table_name; $result = mysql_query($sql) or die(mysql_error()); //creates loop to list each html link // $data .= "<tr><td>"; while ($newArray = mysql_fetch_array($result)) { $tid = $newArray['tid']; $title = $newArray['title']; $data .= "<a href='http://www.mywebsite.com/$tid' target='_BLANK'>$title</a><br>"; } // $data .= "</td></tr>"; ?> With these changes to your 'myfile.php' script, you should now be able to include() it in the main script, and its output should be properly inserted into your main script's output. Hope this helps...
-
It is not something that can be run. Normally, what you would do is uncomment the line in httpd.conf (it appears exactly as you have it in the default Apache httpd.conf, commented out), or add it if it is not there, then restart Apache. You do not have the ability to load server modules or edit the server's httpd.conf file on TCH servers. But TCH servers appear to be configured to load that module already (I checked the server my account is hosted on, and mod_expires was loaded), so I don't know why you feel you need to do this. It might help if you could explain what you're trying to do that led you to believe that you need to 'run' this 'command'.
-
The command that you're trying to run is not a shell command - it is a line that belongs in an Apache web server's configuration file (httpd.conf).
-
Welcome to the forums, Tracy!
-
Congratulations, Dan!
-
Sending E-mail From Outlook Express
TweezerMan replied to rdolbec's topic in CPanel and Site Maintenance
Welcome to the forums, Edgar! -
Welcome to the forums, Ovelzygon!
-
You can turn off 'register_globals' by adding the following to the .htaccess file in your Gallery directory: >php_flag register_globals off
-
Since you want 'filename.php' to execute php code ("The <?php and ?> are in the filename.php file."), you probably should be using include() instead of fopen() and fread() in your script.
-
I know very little about metadot, but from what I've read, what you're asking is not possible. Sorry!
-
The minimum requirements for metadot on Linux lists mod_perl as a requirement. TCH servers do not run mod_perl. Also, it appears that metadot requires access to files outside of your account (its configuration file is stored at /etc/metadot.conf), as well as modifications to the server's configuration file (httpd.conf), neither of which I think would be allowed on a TCH shared-hosting server.
-
According to the MSKB, anything you do that turns on the Active Desktop will prevent icon labels from displaying with a transparent background. In addition to the setting that billyleeWPI mentioned, these are other things that can turn off transparent icon label backgrounds: - Using a background item or desktop item that uses a transparent image or an animated GIF image. - Setting a Web page as the active desktop. - "Lock Web Items on Desktop" is enabled (right-click on Desktop, under "Arrange Icons By").
-
Welcome to the forums, Jeremy! DNS appears to have propogated, but there is something wrong in the DNS record. A DNS lookup for giftsforeverandalways.com returns an IP address of 0.0.0.1, which is clearly not right (your site/account is not at that IP address). You definitely should open a ticket with the help desk.
-
Welcome to the forums, billyleeWPI!
-
That's not really an RSS problem - it's a character encoding issue. For some reason, that particular character appears to have been entered as UTF-8, as it shows correctly if you switch the character encoding in the browser to UTF-8. It seems to have been entered in a different way than that same character on other parts of your page. From a View Source of your page: >I´m Thomas >If you don´t I think you just need to edit the text where you see ´ and replace it with ´.
-
Welcome to the forums, PatGullett!
