Jump to content

VikR

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

VikR's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It's working now. I needed to provide full path info to gnuplot. Code currently being used: $shellCommmand = "/usr/local/bin/gnuplot '" . $pathToCommandFile . "'"; $output = system($shellCommmand . " 2>&1");
  2. Checking httpd.conf, I see: <IfModule !mpm_winnt.c> <IfModule !mpm_netware.c> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # User myAdminUsername Group #-1 </IfModule> </IfModule> Next to "User" it shows the same admin name I use when logging in. I would think this would mean it would have full access to all files and folders. What could I be missing?
  3. I am running Apache via MAMP, a local amp stack running on my development system on my iMac. I am running MAMP and the Terminal in my own user account. Will Apache have different permissions for accessing files on the disk, than I have when I am running a command via the Terminal?
  4. When executed from the terminal, the following command works perfectly: gnuplot '/Applications/IPG/htdocs/ftp/company_name/Charts/gnuPlotCommandFile.gp' However, when I run it from inside PHP with: exec("gnuplot '/Applications/IPG/htdocs/ftp/company_name/Charts/gnuPlotCommandFile.gp'"); ...or: system("gnuplot '/Applications/IPG/htdocs/ftp/company_name/Charts/gnuPlotCommandFile.gp'"); ...nothing seems to happen. How can I correct this? Note - exec is enabled on my system, according to the following function: function exec_enabled() { $disabled = explode(', ', ini_get('disable_functions')); return !in_array('exec', $disabled); } Thanks very much in advance to all for any info.
  5. This is my first time using GD. I've got an image with a transparent background. All the other pixels are the identical color (#8bc4ed). I want to replace all those pixels with a given color, say #CCC5AC. Here's my code that doesn't work yet: $filepath = $_SERVER['DOCUMENT_ROOT'] . "/images/source_image.gif"; $image = imagecreatefromgif($filepath); $indexToSearchFor = imagecolorat($image, 3, 0); imagecolorset($image, $indexToSearchFor, 204, 197, 172); $filepath = $_SERVER['DOCUMENT_ROOT'] . "/images/target.gif"; imagegif ($image, $filepath); The output image is identical to the input image - no color is replaced. What is the correct way to do this? Here is a link to the image I'm trying to change in case you can tell anything from it: http://www.generalwebapps.com/images/header_2_selected.gif. Thanks very much to all in advance for any info!
  6. A new, fully stripped-down demo, is now at: http://www.flavorzoom.com/anomalies/Table_Header_Anomaly_2/Table_Header_Anomaly.html
  7. The demo, including the css, is at this link: http://tinyurl.com/c3kj6g
  8. I've just applied the following rule to the demo, but it isn't yet working: table.food_planner th#TopOfTable{ text-align: center; } I really thought that would fix it. What could be keeping it from working?
  9. The demo page is available at this link: http://tinyurl.com/c3kj6g This is not a live page; it's just to demo the anomaly. Thanks very much in advance for any info!
  10. Yes, it is centered, which makes it even odder that it's on the left of the TH element. It should be centered within the TH element. What is the correct way to fix this?
  11. Thanks for checking out the page. Yes, I do have text-align: center on my top of table div. That's what's so odd. There's also a notice to IE6 users saying that a later version of IE is required to access the site. It may not show up on the demo, but it's on the live site.
  12. I have text in a table header element that is centered correctly in Firefox/XP, Firefox/Mac, and Safari/Mac, but on IE7/XP, it isn't centered. Here's a link to the demo: http://tinyurl.com/c3kj6g The text I am trying to center is "Clear All", "Save This", and "Friendly Helper". (screen shot attached). What is the correct way to get this text to center in IE7? Thanks very much in advance to all for any info.
  13. I think I just got it working using Views. Very cool! CREATE OR REPLACE VIEW NewAlloysPlusRatings AS SELECT brand_name, date_added, description, new_alloys_added_by_users.Alloy_ID_No, fz_score, id_of_user_who_added_this, id_of_user_who_provided_this_rating, let_other_people_use_this_info, Long_Desc, product_name, rating_was_a_plus from new_alloys_added_by_users left join ratings_for_fz_scores on new_alloys_added_by_users.Alloy_ID_No = ratings_for_fz_scores.Alloy_ID_No ; CREATE OR REPLACE VIEW UserPrefsPlusNewAlloys AS SELECT id, NDB_No, min, max, final_amount, user_prefs_for_alloys.Alloy_ID_No FROM user_prefs_for_alloys JOIN new_alloys_added_by_users ON user_prefs_for_alloys.Alloy_ID_No = new_alloys_added_by_users.Alloy_ID_No WHERE (user_prefs_for_alloys.id = 1) AND (user_prefs_for_alloys.Alloy_ID_No >0); SELECT * from NewAlloysPlusRatings JOIN UserPrefsPlusNewAlloys on NewAlloysPlusRatings.Alloy_ID_No = UserPrefsPlusNewAlloys.Alloy_ID_No; Thanks very much to everyone here for your help!
  14. xtopolis, I am not yet familiar with this syntax. I am running your code and, while it doesn't yet do exactly what I am seeking to do, it seems to be the right approach. What is the name of the syntax used to produce the variables, naabu, upfa, rffs, etc.? I will read up on it. Thank you very much for this great info!
×
×
  • 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.