Find Jobs
Hire Freelancers

https http trick php - need to use request_type

$10-30 USD

종료됨
게시됨 4년 이상 전

$10-30 USD

제출할때 지불됩니다
hi i have a piece of code case 'url': if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) { $check_query = tep_db_query("select takeaways_url from " . TABLE_TAKEAWAYS_DESCRIPTION . " where takeaways_url = '" . tep_db_input(urldecode($HTTP_GET_VARS['goto'])) . "' limit 1"); if (tep_db_num_rows($check_query)) { tep_redirect('https://' . urldecode($HTTP_GET_VARS['goto'])); } } break; but i dont want to force use https:// in the line tep_redirect('https://' . urldecode($HTTP_GET_VARS['goto'])); id like to use $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; or something so that it only attempts to load a https url if HTTPS is enabled on the server the way the code works is if i use tep_redirect('http://' . urldecode($HTTP_GET_VARS['goto'])); then it always goes to a http link (non secure) and if i use tep_redirect('https://' . urldecode($HTTP_GET_VARS['goto'])); it always will go to a https link (secure) but i dont want it this way i want it to go to the connection type which is returned by the following rule $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; this way if i disable https or my certificate runs out then it will automatically go to the http version. CODE I TRIED WAS --------------------------- $request_type = (getenv('HTTPS') == 'on') ? 'https://' : 'http://'; case 'url': if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) { $check_query = tep_db_query("select takeaways_url from " . TABLE_TAKEAWAYS_DESCRIPTION . " where takeaways_url = '" . tep_db_input(urldecode($HTTP_GET_VARS['goto'])) . "' limit 1"); if (tep_db_num_rows($check_query)) { tep_redirect('$request_type' . urldecode($HTTP_GET_VARS['goto'])); } } break; ----------------------------------------------- it threw up a comp[ete mess of a url NON SECURE and even request_type returned NONSSL even though my server is HTTPS please help
프로젝트 ID: 22603692

프로젝트 정보

7 제안서
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
7 이 프로젝트에 프리랜서들의 평균 입찰은 $26 USD입니다.
사용자 아바타
Hello, I have read your job details carefully and i can do your work if you will provide me more details of project.I will definitely give you a best solution to your problem. Thanks
$26 USD 1일에
4.8 (113 건의 리뷰)
6.3
6.3
사용자 아바타
Hello, I'll check and resolve your issue. Please inbox me for further communication. Thank you......
$20 USD 1일에
5.0 (33 건의 리뷰)
4.5
4.5
사용자 아바타
Hello, Happy Greetings!! I have looked your job description and I’m interested to do your project as I have 8+ years of experience in “web development and designing”. So, I think that I have all the skills you’re looking for. I would like to discuss the project with you so that I can exactly deliver what you need. I am absolutely sure that I can do the project very well. Please visit my portfolio- "https://www.freelancer.com/u/overtservices?w=f" Kindly revert as I am anxiously waiting for your response. Thank you.
$30 USD 3일에
4.6 (35 건의 리뷰)
5.1
5.1
사용자 아바타
Hello sir, i have read your requirement and can complete this using php script. There is one library in php which check the ssl in website. Drop a message and lets discuss about it more through messages.
$20 USD 1일에
4.9 (11 건의 리뷰)
2.9
2.9
사용자 아바타
I can fix this in an hour time. its a .htaccess file and can be fixed using the correct code. for details please initiate chat.
$23 USD 1일에
5.0 (3 건의 리뷰)
2.1
2.1
사용자 아바타
yes i can handle these type of tasks easily, just give me an chance and i will show u my skills, within 24 hours from now will show u good progress and to confirm my skills u can check my profile too
$40 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Any chance Relevant Skills and Experience Other
$25 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (UNITED KINGDOM)
Clydebank, United Kingdom
4.8
7
결제 수단 확인
8월 17, 2010부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.