Jump to content

String Searches

- - - - -

  • Please log in to reply
2 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Hello all,

I want to know how functions like strcon() and other string-based functions work so I can better understand the code behind them.

Also, my shared server doesn't give me full access to their PHP core so I just wanted some advice.

Thanks to those who respond,
Jack
Creator, Owner, Webmaster
Brezerd.net

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
Hello Hunter100,

You can freely download the PHP source in here, and extract it with an appropriate file compression tool (i.e. 7-zip)

PHP 5.6.3 (latest stable) source code release:
PHP: Get Download

You could certainly find functions throughout the source with a text searching utility, Cygwin includes grep or you could use a Windows version of this function
Windows Grep: Grep for Windows

The standard exported functions would be defined as PHP_API functionname, following the code for the specific function and most of the string related functions would be in the file /etc/standard/string.c.

I am uncertain however of the function you are looking up, strcon is not a standard function for the PHP library, do you mean to say you wish to look at the code it generates was this a typo?

Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
What you have provided is fine. Yes, that was a typo.

Thank you for the resources.
Jack
Creator, Owner, Webmaster
Brezerd.net




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users