Jump to content

hassank1

Members
  • Posts

    239
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

hassank1's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. that's what I was looking for , thanks.
  2. Hi I am creating an e-commerce website, where users who pay with their credit card are able to download pdf books. how can I make a PDF file only accessible for those users (who pay and validate their credit card) and not for everyone ? I want to know the main idea about securing these files.
  3. Hi I am working on a website where the change of the id (index.php?id=x) will lead to a different profile information based on the 'x' value till now, things are very simple, however, I want to change that so instead of example.com/index.php?id=x , I want to write example.com/userX similiar to when facebook create usernames instead of just a profile id I know that I can create directories each time dynamically (like user1,user2,etc... all directories) but isn't there another method where the links are virtual and not real directories ? so I can get the link and compare it with a database, instead of each time creating a directory then placing an index file inside of it that will redirect to the specific id ? ex : (db table) id name 1 user1 2 user2 etc..
  4. I may not be able to develop something from scratch in the limited time line, do you know any XML Flash script that will do a similiar job, (no need for text description, just similiar animation and on book click go to book URL) ? Thanks.
  5. Hii I have searched the net, but I didn't find what I am looking for I need something similiar to this to show books : http://www.hachettebookgroup.com/ it will show books behind each other,with a description for each one, but I want it to be CSS + JQuery.. does anyone knows any plugin or library available online that can do similiar work ? thanks
  6. thanks sasa, I still need a small regex, I want a regex that can detect a line that contains (require,require_once,etc..) and extract the file that was included, and it should work with ' and " ex: it should detect require("file.php"); => output1:require, output2: file.php require_once('file.php'); => output1:require_once, output2: file.php etc..
  7. thanks guys for the help, I will use the regex you suggested to parse the function, but I want the code to work on any php file (even if it is not mine) that means I can't place a unique delimiter, so I will make a code that will work on any php file, and I will keep you up to date with my progress,and the reason why I am doing this project,it is a good idea and I will share the code as an open source project..
  8. I have tested it on multilple functions in the same file, it didnt work correctly, and there's a problem when I have nested { } inside a specific function. by the way, I had to remove the $ from the end of the regex in order for the regex to work.. can you help me to solve the nested {} issue ?
  9. in ([\w\-]*) <== shouldn't be '_' instead of '-' ? because you are not allowed to put '-' in functions' name in php
  10. thank you, I will check it now
  11. I am working on a small script that upload a php file,open it, read it into a string, and then save functions data into database. can you help me to parse the functions using preg ? (seperate function name,parameters,function body) ex1: function x1($p1,$p2) { echo 'test'; echo 'test'; } function x2() { echo 'hi'; } output: array[0]=>x1 , array[1]=> $p1,$p2 , array[2] => echo'test'; echo 'test'; array1[0]=>x2 , array1[1]=> (empty) , array1[2] => echo'hi'; etc..
×
×
  • 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.