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

  • SEARCH
  • Home
  • 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 8826339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:06:43+00:00 2026-06-14T07:06:43+00:00

i am new to php. now i want to know these 1) how i

  • 0

i am new to php.
now i want to know these

1) how i can get url path upto last folder
suppose url is http://www.abc.com/xyz/aaa/bbb/login.php?id=23
i want to take upto http://www.abc.com/xyz/aaa/bbb

2)How i can give cryptic path to an image while displaying from database

<img src="<?php echo $path;?>" /> how i can give this $path cryptic one

3)how i can send mail daily at 11.pm

  • 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-06-14T07:06:44+00:00Added an answer on June 14, 2026 at 7:06 am

    Let’s start to collect a few answers. More might follow if you can give meaningful answers
    to the questions in the comments above:


    Question 1: Most likely this is what you want to do:

    substr($url, 0, -strlen(strrchr($url,'/')))
    

    Alternatively:

    dirname(sprintf('http://%s%s', $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI']))
    

    Question 2: There is little sense in obfuscating the path used inside a url to reference an image published somewhere: the url has to reference the image to enable anyone to see the image. For this to work the location of the image must be exposed by the url, so what is the point in that obfuscation? The obfuscated url references the image, however it looks. And everyone can use that url to retrieve the image.


    Question 3: You configure a crontab entry on system level that is run daily at 11pm. That job calls something like wget http://localhost/myapp/sendmail.php. That script sendmail.php collects the required data and sends an email.

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

Sidebar

Related Questions

I am new to PHP, I practised PHP setcookie() just now and failed. http://localhost/test/
im new in PHP and I want to know about PHP Zend Framework. What
We have an old legacy PHP application. Now I want to write a new
Im new to PHP and I can't figure out what the rules are for
I'm quite new in PHP dev and I can't find a way to solve
I am trying to use a PHP form (new.php) to update 2 MySQL tables
To put it simply i am a fairly new PHP coder and i was
We are in the startup build phase of a new PHP webapp that will
New to PHP and MySQL, have heard amazing things about this website from Leo
Rather new to php, so sorry if this seems stupid. I'm really copying a

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.