Jump to content

invincible_virus

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.pgspace.com/

Profile Information

  • Gender
    Male
  • Location
    Delhi, India

invincible_virus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Apologies. Its working fine. I'm using ExtJS framework, maybe something is over-writing my css class properties. I need to spend some more time investigating. Thanks for help.
  2. Thanks teng84. Actually, I have a text-label & a combobox inside that <div> tab. Now, after using <div style="text-align:center"> - 1. text-label is center aligned. 2. combobox is still left aligned. text-align property only works for text & not for any html elements.
  3. I have a div tag, with some other HTML elements in it. <div align=center> ... <div> can I achieve the effect of "align=center" in the div tag using css somehow? I can align the text using text-align property, but it doesn't work for HTML elements. {text-align: center} Thanks, Saurabh
  4. I've seen the documentation of curl_init() and it says - There is no option to set the session id. can you please tell me where can I pass that? Thanks...
  5. Hi, My requirement is to initiate a HTTP post request using php code. There are two ways I know, both having their limitations - 1. Doing header("Location:./redirected.php"); It will redirect the browser to redirected.php, but there is no way I can specify POST variables. 2. Using cURL $redirect_handler = curl_init(); curl_setopt($redirect_handler, CURLOPT_URL, SITE_ROOT."redirected.php"); curl_setopt($redirect_handler, CURLOPT_RETURNTRANSFER, 0); curl_setopt($redirect_handler, CURLOPT_TIMEOUT, 60); curl_setopt($redirect_handler, CURLOPT_POST, 1); curl_setopt($redirect_handler, CURLOPT_POSTFIELDS, $post_fields_array); curl_exec($redirect_handler); if (curl_errno($redirect_handler)) { print "Error: " . curl_error($redirect_handler); } curl_close($redirect_handler); This one is pretty good as I can redirect the browser to redirected.php with some POST data. But, this will create a new session and I loose data set in the session. Is there any way using which I can preserve both POST & SESSION variables data ?
  6. I am also trying to achieve the same. But I guess its not possible, as per the documentation curl_init() initializes a new session.
  7. Thanks chronister. can you tell me, where is this configuration 'register_globals ' defined? Also, is there any security difference in using $_GET['varName']; and $_REQUEST['varName']; ?
  8. Hi, I had developed a web-site using php 4. Now, I have upgraded to php 5. I have a form which is something like - <form name="formPG" method="post" action="search.php" style="margin: 0pt;" > <tr> <td colspan="2" align="left" valign="top"><select class=textboxes1 name="Budget"> <option selected value="1">Select</option> <option value="2">1000-2000</option> <option value="3">2000-3000</option> <option value="4">3000-4000</option> <option value="5">4000-5000</option> <option value="6">Above 5000</option> <option value="7">Negotiable</option> </select></td> </tr> </form> and a php file acting on this form submit, which reads the request params as - $Budget Now, my problem is that after upgrading to php 5, this variable is never read by th action file properly and its value is always 0. I tried to read through the backward incompatibility issues with php5, but could not find this one listed there. Do I need to change the whole code to be like - $_REQUEST['Budget']
  9. I log in as a normal user. Then I open a terminal & switch to root, and execute command to start apache server. Also, In the same terminal I am able to do a 'cd' to that directory. Which means, both the normal user & root have access to that directory.
  10. thanks corbin. Already tried all these things without any success. I guess it has something to do with that AVC denial error.
  11. Hi, I have apache2 http server installed on Fedora 8. I generally log in as non-root user, so I wanted to change document root in httpd.conf to "/home/saurabh/mysite". After changing the files, when I try to start http server, I get an error - Also, I get a pop-up error saying But, when I click, nothing appears. Any Ideas??
  12. yes.. u can use HTML for formatting email.. but some email clients disable HTML for security reasons. So, in that case, your HTML is of no use.
  13. may be u can try using [b]session id[/b]
×
×
  • 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.