Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3603754
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:54:41+00:00 2026-05-18T20:54:41+00:00

I am doing a payment by paypal using submit the item details to paypal.

  • 0

I am doing a payment by paypal using submit the item details to paypal.
Here I need to specify a link of my notify.php.
For this I need to get my site root dynamically.
how can I get it.

my system folder structure is
C:\wamp\www\website\store_esp\notify.php

and my url for notify.php should be
http://domainname/store_esp/notify.php

Presently my domail name is http://localhost/website/

How can I get the domainname dynamically using php.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:54:42+00:00Added an answer on May 18, 2026 at 8:54 pm

    $_SERVER['HTTP_HOST'] will give the domain name

     http://localhost/website
    

    In the above URL the domain is localhost
    As I think the website is never changed to website1 or website2 so you can statically mention this in your url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PayPal sandbox for the payment gateway, this is first time I'm trying
Doing an ajax get request works as expected using the following code: $.ajax({ type:
I would like to get some help on how to setup paypal payment with
I have an app using PHP and the PayPal API. The basic way it
I´m working on a paymentsolution and need some help with the PHP. I´m doing
I am doing an e-commerce solution in ASP.NET which uses PayPal's Website Payments Standard
I am testing integrating a website to Paypal, using Web Payments standard and HTML
Reading PayPal developer documentation (and this is a lot of documentation) I'm not sure
I'm working on a website which takes payment from a customer. I'm using Kohana
I am just wondering here.. Aren't the PayPal buttons that are dynamically created, very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.