Jump to content

StormTheGates

Members
  • Posts

    170
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

StormTheGates's Achievements

Member

Member (2/5)

0

Reputation

  1. I am having a very odd error that Ive never encountered before. Here is the situation: I have a database table that gets echoed out in rows in a table, with checkboxes for each user. Everything works fine with only a few users, the entire thing runs normally. However, at exactly the 250th checkbox the form stops POSTing data. For example, given this code snippet: <?php $people = $_POST['change']; var_dump($people); ?> $people will only ever contain the first 249 checkboxes selected, even if all 400some are. Does anyone have any idea why this could be, or if there is some type of memory limit I should check? My memory_limit is 512mb and max post size is 500mb
  2. How can I get the page to be processed without lynx? Lynx was asking for permissions earlier for cookies, I told it to always accept. The code is a very simple: $ourFileName = "export.csv"; $ourFileHandle = fopen($ourFileName, 'w') or die("can't open file"); fwrite($ourFileHandle, "all data"); fclose($ourFileHandle); Cronjob setup is: 45 9 * * * lynx "site" > /opt/websites/wut.log But Ive also tried using a visit.sh shell script that did the following: lynx --dump "site" Same result from both.
  3. Hey all, having a very odd problem this morning. I have a cron job that executes a script that performs the following action: "lynx --dump "php page"" This executes fine, I see all the output. The problem is this: The php file is supposed to write information to a file. When executed by a user on a web browser like Chrome or Firefox, the data is written to the file with no problem. However with lynx the file is created with size 0, and no data is ever written. Any ideas why this may be? Thanks.
  4. Aye thanks for that. I discovered it during an attempted tracert. As it turned out in the end spam filters were activating because of a URL in the email, one that wasnt https for some reason. Also it seemed like the header that said "reply to:" was causing spam filters to activate as well. Solved
  5. What device are you looking at this email from? Sometimes handhelds like phones append that stuff to the end. Other than that do you control the server or is it hosted through someone else? And do you control the email its being sent from?
  6. What exactly is the problem? Your form is using POST, why use GET?
  7. Hey all, having a very odd problem Ive never encountered. I am trying to send mails via PHP's built in mail function. I set the From and Reply-To like so: <?php $headers = "From: noreply@contractortraining.energy.gov\r\n"; $headers .= "Reply-To: noreply@contractortraining.energy.gov\r\n"; Now here is when things get weird. When this email sends the return email gets changed to noreply@doe.golearnportal.org. Oddly enough it only happens when the From is "contractortraining.energy.gov". For example: If I send with these headers the email comes in as doe.golearnportal.org However if I change the headers to be something like "sometest.org" or "nowhere.golearnportal.org" or anything other than "contractortraining.energy.gov" it will come through using the specified headers. It is only when I use "contractortraining.energy.gov" that the headers get changed. Any ideas what could be responsible for this type of behavior? I dont think its a PHP issue at the moment, and this code is working successfully on several other servers.
  8. Have you tried changing to something like this? Just to see of course. if($Log['Revision1']&$Log['Revision2']){ $Message = 'Updated $Log[Name] from revision: $Log[Revision1] to revision: $Log[Revision2]'; }else{ $Message = 'Freshly downloaded: $Log[Name] revision: $Log[Revision1]'; } Also try putting a space at the end of $Message. Like so: $Message = 'Updated $Log[Name] from revision: $Log[Revision1] to revision: $Log[Revision2] '; That way you will know if the random numbers are part of the Revision number or are appended to the string.
  9. You assume that the government wants things functional and backwards compatible. The last time I mucked with their code they had a hissy fit. Trust me I know <? are bad tags, Ive seen benchmarks where the <?php is much faster. But sadly they are paying the bills so I just make our server run it.
  10. Well you helped me with my problem so I will toss a few ideas at you. Have you tried print_r, just to see if the numbers are inside any of the array elements? Also array_merge will merge strings of the same sequence, I think, but not numbers, could this be causing extra numbers to be appended? Also maybe print one thing out at a time to see where the 50 is coming from? Sorry I am not much help just tossing some ideas out.
  11. Relax boss, I didnt exactly get a choice. The government hands me the code, I just make it run on our servers.
  12. You are both a gentleman and a scholar. Fixed it right up, thank you.
  13. Hey all, I have an odd problem that I hope someone here has had and knows how to fix. I recently installed Apache, PHP, and MySQL on a new server we have at work. Everything works fine, oddly enough, except for PHP parsing. You see the following code: <? echo "test"; ?> Will display the PHP code, while <?php echo "test"; ?> Will echo "test". The problem seems to be that PHP isnt parsing the <? directive as a start command. Does anyone have any idea why this might be? Thanks for any 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.