php

How to login to a website programmatically from the server

Using any language (php, java, ruby, python), what's the best way to login to a website programmatically from the server? (for example, login to amazon, jetblue, etc. ) Are there are some frameworks to make this easier? ...

Creating a "two way" configuration file

Hello everybody, I am writing a PHP application targeted at non-geeks, non-programmers. I need to create an option page with a bunch of "options" and then store those options...somewhere. Using a database application (MySQL/PostgreSQL/SQLite) is out of the question because it will require more configuration than the user needs to do (I ...

PHP- for some reason I cant get my radial buttons to work

I used a form generator to create a simple for me to work with. I noticed that my radial and checkbox buttons didnt seem to be working. EDIT: This is out of my HTML DOC this is what i have for my buttons: <tr><td><label><input type='radio' name='gender' value='male'>Male</label></td></tr> <tr><td><label><input type='radio' name='gende...

<blink > tag not afftect on IE all version

Possible Duplicate: <blink> tag in Internet Explorer Hai I have used blink tag to blink a word. It's displays in mozilla. But IE it's not blinking. How I do this? I have used <blink>* New </blink> Does any one know this? ...

Many things to do on string in php

Hey guys, i am making one website. In that, their is one section in which i have to do some manipulation on some string, and that string data will come from the database. The things which i wanted on my string. First to check How many "<br>" tag character means how many line breaker are their in that string?" In between that tags[<br...

Adding a customized page in drupal

I have this page I want to link to my drupal site. The page contains a chatroom I customized. However, since I'm still new to drupal, I don't know how to link it. I tried creating a primary that linked my page to drupal and it did work but when I tried to print (in php) the "$user->name", there came an error since it cannot recognize t...

How to import gmail contacts using PHP?

I have to create a tell a friend section in my web site. How to import gmail contacts using php. any body can help me. ...

[php] text to random number

How can I get random number from text? function text_to_number($text, $min, $max) { .... mt_rand($min, $max); .... return $random_number; } $rand1 = text_to_number("text1", 1, 1000); $rand2 = text_to_number("text2", 1, 1000); So that "text1" always return 476 (for example) in mt_rand(1, 1000), and "text2" - always 241...

Generating serial or unique ordernumber

Hello, How do generate unique serial or order number in php without checking against db? ...

How can I access my PHP variables when calling ajax in jQuery?

I am attempting to create a simple comment reply to posts on a forum using the AJAX function in jQuery. The code is as follows: $.ajax({type:"POST", url:"./pages/submit.php", data:"comment="+ textarea +"& thread="+ currentId, cache:false, timeout:10000, success: function(msg) { // Request has been successfully su...

yahoo currency cache

I have a yahoo currency script in my site but they are taking too much time to load and are slowing my site. Can someone help me to made them caching and refreshing cache every 3600 minutes? Hope that someone can help me! Thank you in advance! ...

Parsing a string in PHP

My string is like the following format: $string = "name=xxx&id=11&name=yyy&id=12&name=zzz&id=13&name=aaa&id=10"; I want to split the string like the following: $str[0] = "name=xxx&id=11"; $str[1] = "name=yyy&id=12"; $str[2] = "name=zzz&id=13"; $str[3] = "name=aaa&id=10"; how can I do this in PHP ? ...

what is session and cookies in php and where it stored

Hi what is session and cookies in php and where it stored i googled. But i can't find the exact answer. kindly clarify thanks in advance ...

saving group checkbox and option values

Hello, i have many check boxes all named features, with different values, how do i collect their values in php and whats the best method to save an repopulate the form when its loaded, so tha it will show previously selected values. thanks ...

Optimal extended class naming convention?

Which of the following naming conventions is most used/accepted, or which is most optimal for most projects? I'm having a hard time deciding. Base class: \Model Sub class: \Model\User Base class: \Model\Model Sub class: \Model\User Base class: \Model\Base sub class: \Model\User So in other words, should I put the base class in the s...

https login form

What should i consider when switching a simple(user+pass) login form from http to https? Are there any differences when using https compared to http? From what i know the browser won't cache content server over https, so page-loading might be slower, but other that that i know nothing about this. Anyone has any experience with this thi...

Database error-kohana framework

I am getting a a page not found error every time i connect to the database. On the page of the database i have to login twice, but how can i solve this problem ? Because i think the problem is that i have to login twice. ...

URL Rewrite problem

RewriteEngine on RewriteRule bharani $ index.php in my .htaccess file . The above small snippet throwing 500 internal Server Error , ...

How can I get a Post with XML-RPC in Wordpress?

After some digging around with the Wordpress XML-RPC documentation, it seems that there isn't a way to remotely obtain a "post" (such as a news article) through the XML-RPC interface. The documentation only mentions wp.getPage - if I try and pass in a PostID to this method, it returns: [faultCode] => 404 [faultString] => Sorry, no suc...

accessing dynamicly generated array names using square brakets in an object...

object, contains 'array1'. $Obj -> array1 [12]; // works fine. however, dynamically generating that array name - you can't use square brackets... $var = 'array1'; $Obj -> $var [ 12] ; // nothing. no error, but no result. I had to do $ar = $Obj -> $var ; // copy out array $ar [12] ; // get value in array. note: $Obj -> $$var ...