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

preview a php file

Enthusiast ,
Dec 18, 2019 Dec 18, 2019

Copy link to clipboard

Copied

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).png

TOPICS
Server side applications

Views

1.4K

Translate

Translate

Report

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 Folder

 

Servers

Add testing serverAdd testing server

 

Testing server Basic tab

Path to localhostPath to localhost

 

Testing server model Advanced Tab.

Server modelServer model

 

F

...

Votes

Translate

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

Copy link to clipboard

Copied

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 Folder

 

Servers

Add testing serverAdd testing server

 

Testing server Basic tab

Path to localhostPath to localhost

 

Testing server model Advanced Tab.

Server modelServer model

 

Final screen.

Final screenFinal screen

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.jpg2019-12-19 (7)_LI.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

laptoplaptopiPhoneiPhone

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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; }

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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