Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

preview a php file

Enthusiast ,
Dec 18, 2019 Dec 18, 2019

Hi,

 

In a php file, I set up a testing server and previewed it with Chrome.

 

I expected to see the php file, which I am working on with Dw.

But the php, which is already on the server, is opened.

 

Am I mistaken about the functioning of the testing server?

 

Housn Kang

 

2019-12-19 (2).pngexpand image

TOPICS
Server side applications
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 18, 2019 Dec 18, 2019

A local testing server like Wamp, Xampp or Mamp needs to be installed on your local hard drive.  Also the connection is via local/network, not FTP.  See screenshots.

 

In this example, my local testing server is Wamp and my site folder resides in the www web directory.  If you use Xampp or Mamp, your default web directory is htdocs.

 

Local site folder

Local Site FolderLocal Site Folderexpand image

 

Servers

Add testing serverAdd testing serverexpand image

 

Testing server Basic tab

Path to localhostPath to localhostexpand image

 

Testing server model Advanced Tab.

Server modelServer modelexpand image

 

F

...
Translate
Community Expert ,
Dec 18, 2019 Dec 18, 2019

A local testing server like Wamp, Xampp or Mamp needs to be installed on your local hard drive.  Also the connection is via local/network, not FTP.  See screenshots.

 

In this example, my local testing server is Wamp and my site folder resides in the www web directory.  If you use Xampp or Mamp, your default web directory is htdocs.

 

Local site folder

Local Site FolderLocal Site Folderexpand image

 

Servers

Add testing serverAdd testing serverexpand image

 

Testing server Basic tab

Path to localhostPath to localhostexpand image

 

Testing server model Advanced Tab.

Server modelServer modelexpand image

 

Final screen.

Final screenFinal screenexpand image

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 18, 2019 Dec 18, 2019

Hi,

 

Thank you for your reply.

 

To add a text (Notice!.....) above "Contact Me", I added a few lines in contact.php and contact.css.

 

But there is a difference between "preview on laptop" and "iPhone".

css does not look like applied on iPhone.

 

I think both should be identical.

 

Is it associated with my try on the testing server?

 

Hosun Kang

 

https://gihand.com

 

contact.php

*****************

 

contact.css

https://drive.google.com/open?id=14WnkFoqNKbT-1IDPRbi1uKfba-LcPEiQ

 

 

2019-12-19 (6)_LI.jpgexpand image2019-12-19 (7)_LI.jpgexpand image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

laptoplaptopexpand imageiPhoneiPhoneexpand image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 19, 2019 Dec 19, 2019

Im not sure why you have the message 'Yahoo Mail is not recommended' above the form? There should be no issues for users who have a yahoo mail account sending to your email server. The only issue potentially could be if you used a yahoo mail account as the recipient of the form information ie the mail address where the form information is going to be sent.

 

Your independent remote mail server should be able to handle any email address. Its only when the information collected from the form is routed through the yahoo mail server, or gmail mail server or aol mail server that it might become an issue.

 

 

As an aside note, try using the Hex color #696969; rather than the color name DimGrey

 

 

.notice {
	margin-bottom: 8px;
}

.notice p {
	text-align: center;
	font-family: 'Abhaya Libre', serif;
	font-weight: 90;
	font-size: 16px;
color: #696969; }

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 19, 2019 Dec 19, 2019

Hi,

 

Thank you very much for your comment.

 

When I said, “Thank you” to you last time, everything was OK with ***@gihand.com as a recipient email address.

 

Yesterday, I updated files to the server. When I typed in Yahoo Mail in the php form, it wasn’t arrived at ***@gihand.com.

 

I asked the issue to the hosting service provider, they replied with;

1. SMTP setting

2. https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html

 

Hosun Kang

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 19, 2019 Dec 19, 2019

I'm not familar with how 'sendgrid' requires emails to be set up. I do know that using SMTP is far more complicated than using the php mail function.

 

It seems really odd to me that a yahoo mail address would be treated any differently to any other email address and why a gmail email address would work and not yahoo is even more of a mystery. Maybe sendgrid just doesnt like yahoo for some personal reason. I would request why its only yahoo that doesnt work through their mail servers - something doesnt add up here, unless of course I'm not gettng all of the story.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 19, 2019 Dec 19, 2019
LATEST

Until a few years ago, my main email was Yahoo Mail.
My complaint was so many spam mails in Spam Folder every day.
So, I changed my main email from Yahoo Mail to Hotmail two years ago.
I almost remember spam mails stopped that time around.

 

That is my experience with Yahoo Mail.

 

Hosun Kang

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines