Jump to content

Search the Community

Showing results for tags 'file content hidden'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi everybody .. i have a URL i am using it to send SMS, it is like h**ps://www.domain.net/api/?username=[username]&password=[Password]&sms=[Message]&mobile=[mobile_numbers]&binary=[language_Flag] and i am using the following code to get the file content because it show a message based on the result of sending the message (sent, fail, or other result) <?php $msgurl='h**ps://www.domain.net/api/?username=[username]&password=[Password]&sms=[Message]&mobile=[mobile_numbers]&binary=[language_Flag]'; $result=file_get_contents($msgurl); switch($result) { case '1': echo 'Success­'; break; case '0': echo 'Fail'; break; case 'Invalid login': echo 'Invalid login'; break; case 'Missing or Empty Field': echo 'Missing or Empty Field'; break; case 'Invalid Message Language': echo 'Invalid Message Language'; break; case 'Insufficent Balance': echo 'Insufficent Balance'; break; case 'Invalid Sender': echo 'Invalid Sender'; break; case 'Sender name is not activated': echo 'Sender name is not activated'; break; } ?> the problem that when i put the file name in the URL like (sendsms.php) and then the parameters, the above code show the result correctly , but when i remove the file name ... i don't get any result. So is it possible to get the file content from a URL like that?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.