upgrade php version

Status
Not open for further replies.

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
hi i wish to change the php version on my account please. nothing to do with register_globals as that needs to be off.
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Hello,

For security reasons register_globals can not be enabled.
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Hello Chritopher. Why are you deleted my Reply? I think it helpful?

It wont work. We don't allow changing php settings for security reasons. I removed it to prevent confusion.
 
Last edited:

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
sorry i did not request it be turned on. please read.

hi i wish to change the php version on my account please. nothing to do with register_globals as that needs to be off.

i wish to append "which it is" to that sentence.

i see the php version can only be changed once i request it be enabled, and that is what i am attempting to do here.
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Sorry.

You are currently using the highest php version. Accounts are set to that automatically for now.
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
are there any other php versions available that i can use? it seems phpmailer won't work on the current version. and i don't see errors.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
are there any other php versions available that i can use? it seems phpmailer won't work on the current version. and i don't see errors.

No, We all have the same version at them moment. And the PHP Mail functionality works perfectly on free servers. For your phpMailer which functionality is required so you are asking for upgrade?
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
well the business logic in the request_handler.php is to match associated suppliers, iterate through the list and load an html template, replacing certain keywords with values and sending each time.
then it sends a response to the consumer.
it could be the getFile php function, here it is - and it is passed relative url's which are correct.

Code:
function getFile($filename) {
    $return = '';
    if ($fp = fopen($filename,'rb')) {
    $return = fread($fp, filesize($filename));
    fclose($fp);
        return $return;
    } else {
        return false;
    }
}
[CODE]

if it would help, the document http://ferrety.pcriot.com/scripts/request_handler.php thats attached to this post as a txt (usernames and passwords blocked out).

ps: it just occurred to me... it could be due to the gmail port possibly being blocked? can you perhaps unblock it or let me know details to use an allowed mail server.
 

Attachments

  • request_handler.txt
    20.6 KB · Views: 65
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
well the business logic in the request_handler.php is to match associated suppliers, iterate through the list and load an html template, replacing certain keywords with values and sending each time.
then it sends a response to the consumer.
it could be the getFile php function, here it is - and it is passed relative url's which are correct.

Code:
function getFile($filename) {
    $return = '';
    if ($fp = fopen($filename,'rb')) {
    $return = fread($fp, filesize($filename));
    fclose($fp);
        return $return;
    } else {
        return false;
    }
}
The code seems not to be badly typed, but why do you need binary mode?

- xav0989
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
actually that function is copy and paste from a previous version of php mailer to load a text template. this function used to be included in the phpmailer package, but is not anymore so i included it in the page.
Edit:
i believe i can come right without binary.
Edit:
and no, that did not make a difference... it still works on my xampp 1.7.2 and not on x10. :/
Edit:
and as far as i know, phpmailer uses the php mail() function to send mime format emails via an external server. i believe the gmail port might be closed. could i please request that port 465 be opened on outgoing?
 
Last edited:

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
make sure that the email address sending out the mail is valid? Some smtp servers deny mail if the from: has an invalid address.
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
they are all correct, my personal email address is used to and from. i get the error messages if i get a response, thing is here i dont get any! it starts the loading sequence and posts to the ajax handler - then it never returns.

yet the exact same code works on my pc (localhost)... lemme go check the port on cPanel.
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Since you said that it works on your xampp under windows, make sure that all the paths are correct and that the folders are all in lowercase letters. Linux is case-sensitive.

- xav0989
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
they are... i've just finish checking the includes in the phpmailer directory i have too. i really believe it might be due to gmail usesing port 465 to send mail, a nonstandard mail port. this site, due to being in the development and testing phases - uses gmail as a mail server.
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
I believe gmail doesn't allow external mail clients to send via SMTP anymore if this is what you're using it for.
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
strange, they allow test mails to be sent from my pc with xamp 1.7.2 just not x10hosting... its the correct login info too, the account is set up for public access ie to log in and use it at various locations. 0o
 

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
it might also have something to do with a php call that is not supported on x10hosting... attached are the php files for the mailer - with usernames and passwords masked, please let me know if anything in there might be causing this ajax mailer malfunction. i've checked the db connection, table select, all of the sql calls over a 100 times, these are the latest updated functions too - but i cannot see the light. i simply get no response from request_handler.php via POST. 0o
i can try to remark the ajax response filtering to see any http errors...
 

Attachments

  • mailer_code.zip
    49.5 KB · Views: 3
Last edited:

cGamez010

New Member
Messages
37
Reaction score
0
Points
0
okay folks, i'll be off here for a while, the site has gone to official implementation :D
 
Status
Not open for further replies.
Top