Jump to content

_will

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

_will's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you cannot get around passing variables in the GET, you can always [a href=\"http://us3.php.net/manual/en/function.bin2hex.php\" target=\"_blank\"]convert the values to hex[/a] and add or decrement an offset, or use the [a href=\"http://us3.php.net/base64_encode\" target=\"_blank\"]Base64 encoding[/a] so that the information in the URL looks like garbage to the user, but has a meaningful value to the web app.
  2. [!--quoteo(post=374132:date=May 15 2006, 05:21 PM:name=ikmyer)--][div class=\'quotetop\']QUOTE(ikmyer @ May 15 2006, 05:21 PM) [snapback]374132[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello, I have been working on this for a few hours now... I am trying to read the contents of a file that is on the local pc ( computer loading the page ). I am trying to read a text file, find a certain line and then store some data of that line in another text file. The problem I am having is I can't seem to get the file to open for reading... I get a permission denied error message. Is there a way around this or how can this be done. The page will only be accessed by a script that is calling the page and only PC's on the loca network will load it. Thanks for any and all help!! for some reason the site would not let me post code... [/quote] What is the exact error message you are receiving and can you please paste the line of code where you open the file. If you post that information we can be of more help.
  3. Oh, I agree that faking an X-Mailer and using it in a production environment would be a bad idea. I am just interested in seeing how the spam filters react to the same message coming from different clients.
  4. Additionally, it might be worth a try to see if the spam filters would treat your email differently if you made your X-Mailer header mimic that of say, Outlook, Eudora or Thunderbird.
  5. Is it possible to suppress the X-Mailer tag?
  6. What headers (arg #4, mail() function) are you using when you send your email? I ran into a similar problem a while back where I wasn't sending headers and a spam filter was flagging the messages as spam. Can you post the code where you call mail().
  7. [!--quoteo(post=374067:date=May 15 2006, 01:05 PM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ May 15 2006, 01:05 PM) [snapback]374067[/snapback][/div][div class=\'quotemain\'][!--quotec--] Thanks alpine [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] But what about varibles that weren't set? Another example: [code]$var=1; if(!isset($age)){ $var=$age; echo($age); }; [/code] Will any error occur? And is $var's value going to stay 1? Thx again, Orio. [/quote] Why don't you test the PHP code you put up? You could put that in a test page and echo the output to see if it behaves the way you think it will. It probably would have taken less time than it would to post to the forum.
  8. To help your session debugging, try using this to print all the session variables: [code] echo print_r($_SESSION); [/code]
  9. [!--quoteo(post=373985:date=May 15 2006, 09:47 AM:name=macdumbpling)--][div class=\'quotetop\']QUOTE(macdumbpling @ May 15 2006, 09:47 AM) [snapback]373985[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi. I have to write an windows application that sits on a server and sends variables to a php web page. I currently am using flash and MDM, but that's far too slow and we're looking for something a little cleaner. Any suggestions would be wonderful! Thank you, Kevin Biesbrock [/quote] Any windows application that has access to the internet (via ActiveX control or through the winsock API) should be able to send variables to a PHP script. If you can access 'http://localhost/myscript.php?my_variables_here' you can pass the variables you want to send to your PHP script.
  10. Both variables will be '1'. It will execute the first IF statement, and then exit the conditional, so $foo = 1 and $bar = 1.
  11. try this in your for loop... [code] var last = ""; var display = ""; for (i=0; i<manu.length; i++){ if (last == manu[i]) {   display = manu[i];   last = manu[i]; } else {   display = ""; }    document.write("<tr><td>", display, "</td>", "<td>", part[i], "</td>", "<td>", fits[i], "</td>", "<td>", price[i], "</td></tr>") } [/code] All I added was a variable to track the last product shown and then an if statement to see if the next product is the same as the last product shown. If it is, then no product name is printed.
  12. I don't think I have ever seen any evidence to support one method or another, but I would have to assume that having all your code in one file would slow your website down. With all your code in one file, the PHP interpreter has more code to load and process, regardless of whether or not the code is executed. If you had multiples files then only a very small portion of the code is loaded and executed. You may not be able to tell a difference on a small site, but using one file on a large site is IMHO, not only a bad programming technique, but should slow your site down.
  13. In terms of having a script execute itsself at a certain time, your probably better off to wait and setup the cronjob. Have you thought about scheduling a task on your PC to execute the script on your server?
  14. Try naming all of the radio buttons for the same question the same name, but give each radio a different value. blah blah blah <name=Q1 val=1> <name=Q1 val=2> <name=Q1 val=3> <name=Q1 val=4> blah blah blah <name=Q2 val=1> <name=Q2 val=2> <name=Q2 val=3> <name=Q2 val=4> .... This should make it so you can select one radio button for each row.
  15. suggestion: use single quotes when you are not concatenating with a variable in your expression. [!--quoteo(post=373797:date=May 14 2006, 01:51 PM:name=gtridez)--][div class=\'quotetop\']QUOTE(gtridez @ May 14 2006, 01:51 PM) [snapback]373797[/snapback][/div][div class=\'quotemain\'][!--quotec--] $sql = "SELECT * ". "FROM images ". "WHERE unique_image_id = $unid"; $result = mysql_query ($sql); [/quote] to [code] $sql = 'SELECT * '.      'FROM images '.      "WHERE unique_image_id = $unid"; $result = mysql_query ($sql); [/code]
×
×
  • 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.