Jump to content

Lefu

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Everything posted by Lefu

  1. hi micah1701, I think I am posting to site2 from site1. Or I may be misunderstanding what you wrote, as for this script I have tried to send data as "hard coded" and still nothing from site2, I do get a session that I have reached site2 and the output is my login screen. Please lemme know how it went schilly, and maybe if it worked you can share the code. Thanx.
  2. Hi guys, I hope this is the right place to post this. I have two subdomains, one has authentication login already setup, so I just want to use the "single sign on" method using curl to achieve this. below is my script. I have tested it and it does pass variables to the authentication page but I can not be logged in, I am hoping you guys can help. $passed_vars='l_username='.$_REQUEST["l_username"].'&l_password='.$_REQUEST["l_password"].'&returnURL='.$_REQUEST["returnURL"]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://example.com/play/login'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $passed_vars); curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt ($ch,CURLOPT_COOKIEFILE, 'cookie.txt'); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec ($ch); curl_close($ch); when I do print_r($store) I can see the login page returned but no sessions set. Thanks
  3. Lefu

    Images reference

    Thanks for your replies guys. have good times
  4. ul{ display:inline; } will show them aligned horizantally.
  5. Lefu

    Images reference

    dear friends, lets say I have www.example.com and an images and css folder. 1. background:url(../images/image.jpg) no-repeat; 2. background:url(http://example.com/images/image.jpg) no-repeat; I would like to know if there loading differences here. thanx a lot.
  6. Thank you rhodesa, you sugestion worked the exact way I need. I have sudoku cells and they are grouped in 9 cells. now I can add this module and it will be easy to solve problems for players who are still learning the game. Thanx once again.
  7. hello guys, I have an array like var letters = new Array('a',...,'i'); then I have created arrays dynamically like var pgA= new Array('a1','a2'); var pgB= new Array('b1','b2'); and so on untill pgZ = new Array('z1','z2'); I want to have a loop like output is "pgA" not the contents. I want to work with arrays in the pgA .. pgZ without having to write pgA to pgZ manually in their own separate loops. Thank you for you help and I hope you understand what I wanna do here.
  8. Thank you both and your points are valid will soon comeback with what both of you suggested, however I do not have iframe on the website and that is one thing I would like to avoid at all cost. I will remove ajax from menus and leave it on page navigations because I think iframe is not what I want anymore since I got ajax. Much respect and have a great day.
  9. just implemented ajax on it and please advise me. thank you www.infinitumphp.co.za apologies for not being clear with the options.
  10. Thanks to both of you I have tested eval(), it worked with no pain. have a great week no make that a year.
  11. Thank you, I am looking in to it as you read this. will let you know how it went. thanx to both of you.
  12. Dear all, I have this code: The results is instead of hello world the code in urlinclude.php file is I am fetching my code from the mysql db, I need to output the results on the screen. allow_url_include=off how can I achieve the results? thanks a lot for your input.
  13. topic solved, I have suse10.2 and installed apache2.2.8 with php5.2.5 and it did not budge too much. thank you, I have a clear head again.
  14. dear friends, I have apache firebird mysql php now I executed this command and it gave me assurance that interbase.so is available but I have no clue as to how to make it be loaded, ie. on phpinfo() page it is not appearing hence I get this error trying to connect to my FDB: . Your help will be great. here are loaded/compiled modules:
  15. ok I want to install enable php_firebird, but I use SUSE10 and I am not sure where apxs is my system, I want to leave the apache alone and uninstall php so that I can install php manually configuring it for apache and firebird, mysql, how can I do this with less stress. if I can get to apxs directory then maybe I will succeed. (if I posted in the wrong forum please direct me) thanx
  16. Lefu

    remove password

    Thanx it worked like hot knife on butter.
  17. hi, can you please explain exactly or refere me with an explanation of what this line does, Thanx
  18. dear friends, I am using xp and installed mysql 5, I want to know how do I remove password. I want to log in to mysql db with out entering password on my local machine. thanks a lot
  19. thanx I am trying that now, I will just place a python file and see if it does work, first is to configure python apache, they did work fine with no errors. you comment means a lot, and now I can work with it.
  20. Well, I have place .htaccess file in to one of my website and below is what is in that file, It does actually work, apache just doesn't allow me to work in side cgi-bin for reasons I don't know. please help.
  21. Dear friends, thing are now better than y'day. indide test.py I have this. I don't get an error after entering user name and password, I get a blank page. help me please
  22. thank you, I code in side the browser, put my code into firebird db, and now I want to retrieve that code and display the results on the browser. I am hoping that you understand where i am, the code i.e would give 1, since this is in the db, I want to see 1 on my browser not the actual code which produced 1. at the moment B) is giving the code not the results of it. I can use curl functions and write things in the a php file then include that file but it would be violating many laws, like response time. I believe there is a way of calling url as a file, I don't know the way.
  23. I am sorry B) should have been: my code is stored in the db, hence I need to retrieve it this way.
  24. hi, A)I used to call my files this way: I don't use this anymore because (allow_url_include = off) disabled by the hosting company. B)So I have to use: Gives the php code like echo " hello world"; How can I get : hello world. Thanks for your positive input.
  25. I have solve my problem this way. Then I was able to continue with my bad intentions. have a good time programming
×
×
  • 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.