Jump to content

rfresh

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rfresh's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I had Tom Cat Java installed on my Linux sever and I need to call a java file, which isn't working. Someone told me to verify Java is in fact installed on my server using this command: echo exec('which java'); but when I run it, nothing displays! The java command I'm trying to run is this: exec('java -Xmx1024m -jar "/home/account/public_html/java -cp b4a_c2dm.jar anywheresoftware.b4a.c2dm.C2DM send $php_device_id \"test\""'); The .jar file is there. My path to java is: /usr/local/jdk/bin/java Thanks for any help...
  2. The script operates on 3 websites so it needs to know which domain it is running on.
  3. I need to get the name of the domain my PHP cron script is running on. Normally I use $_SERVER[sERVER_NAME] but that doesn't work when running a cron job under CLI. Is there a command I can use in CLI to get the domain name? Thanks...
  4. >May I assume you used $_SERVER['PHP_SELF'] somewhere? No I'm not using this. My index.php file doesn't take any arguments. As the home page file, it just contains links to get to the other php pages on my site. I think that's what is confusing me here. mywebsite.com?.script.foo.endscript shows up where? Should I just null any $_POST parameters that come from my index.php file? If so, how would I do that? I'm having a hard time understanding what is happening here.
  5. My website failed a PCI scan because of cross site scripting. The report gave an example of the code: http://www.mywebsite.com:80/?<SCRIPT>foo</SCRIPT> I don't understand how to code against this security failure. My site has an index.php file so I'm assuming I have to add some code in that file since the domain URL defaults to using that file. I have a sanitize function being used on all the fields coming from the index.php file already. But I guess I'm still missing something. Thanks for any help...
  6. I'm using the following code to play a wav file on my website. It works fine using windows IE, FF, Opera and WinSafari. print '<EMBED SRC="'.$php_config_new_message_sound_file.'" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED>'; However, no sound plays when I run my code on an iPad Safari browser. Anyone know of an iPad work around? Thanks
×
×
  • 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.