Ask a PHP source page security Question

www.1.com/a.php Fill out the information page www.1.com/b.php Save Data page b.php use Http-referer to determine if the source page is a.php Does this have a certain security effect? Reply to discussion (solution) OK You can also use the

Member Variable issues

Recently self-taught PHP to see a piece of code Class Queryfactory extends Base { var $link, $count _queries, $total _query_time; Queryfactory This class only $link, $count _queries, $total _query_time these variables. But there's a connect method

A better way to realize the number of group purchase products?

Buy goods, group purchase is generally false data bar, how to deal with it better? Reply to discussion (solution) ?? Crontab per minute? Since??? Increase M~n? Would it seem too fake to have other solutions ?? Crontab per minute? Since???

Some questions about login with session

So, I wrote a login, using the session. When you log in, store the SessionID with Redis. Now I want to implement a function, that is, two users login to the same account, after the login to the front of the login to squeeze out. One of my ideas

PHP will import the file displayed on the page of the problem

The requirement is this: After selecting a file, the file can be displayed on the Web page, and if you confirm the import, click the Import button to deposit into the database. The page is like this: Now the problem is to click the Select

Error in extracting TXT data

$file = ' 15.txt '; $content = file_get_contents ($file); $array = Explode ("\ r \ n", $content); for ($i =0; $i { Preg_match ("/\ (. *) \ ' U", $array [$i], $DSS); echo $dss [$i]; } Want to extract the data from all the "Jed" to ' in the text, I

How this query statement should be written is correct

$sns = $db->field (' DISTINCT (dname) ' as ' d_name ', ' COUNT (dname) ' as ' TJs ')->where (Array (' lid ' =>intval ($_get[') ID ']), ' Islottery ' =>1)->group (' Dname ')->order (' TJs DESC ')->select (); Reply to discussion (solution)

IIS accesses PHP written by WebService, reported 404 errors, but I can respond to my own machine access and log data into the server

Server Win7, two sites of the same machine, Site 1 is ASP. NET write, published in IIS 8080 port Website 2 is written by PHP, posted on the same machine Apach, 80 port Two sites can be accessed, can log on, their own data interaction is no problem,

Ctrip API Development

How do I get the content information? In Ctrip did not find the corresponding interface, ask the official group, basic ignore! Reply to discussion (solution) Has curl been used yet? If there is content in the source code, it should be able

SESSION_ID ()

I'm working on a Web page. Save the value of session_id () in a cookie. The value of session_id () is then removed from the cookie when it is used. Re-place the value of session_id () in the session_id () function. The value of the variable in this

Seek Apche redirection rules

Rewriterule ^ (?! Admin|user|inde\.php|config\.php|%{http_host})%{http_host} [R=301.L] In addition to the home page and admin directory and user directory, as well as index.php and config.php all jump to the homepage ... Reply to discussion (

What you need to be aware of is PHP uploading images to HTTPS server via curl. Ask for Femdom

Get Require_once '. /wechat/class/configwx.php '; Error_reporting (E_all); Image upload $file = DirName (__file__). ' \zzz.jpg '; The file to upload $ch = Curl_init (); $url = ' https://api.weixin.qq.com/merchant/common/upload_img?access_token= '.

Name is a variable, how to write value to the database

while (!! $_rows = _fetch_array_list ($_RESULT2)) {?> "> "> "> ">" value="正常" style="zoom:150%;">Normal" value="不正常">Not normal This sentence " value="正常" style="zoom:150%;">Normal" value="不正常">Not normal Do not know how

PDO is having a strange problem.

The question is written on the chart. Reply to discussion (solution) The execution of the statement on this side succeeds$stmt 3= $pdo->prepare ("INSERT into site (sitename) VALUES (: sitename)");$stmt 3->execute (Array (": sitename" =

Can I upload a file using the rest API?

Is it possible to make a restful API for uploading files? Client is a C program or DOS environment, how to call this API for file upload? Please give more advice, preferably have code, thank you! Reply to discussion (solution) The client uses

Phpmywind Modify the upload image path.

I want to change the address that was uploaded to the server. The actual path in the foreground input box is right I want to know where the upload path should be modified? Reply to discussion (solution) Post a file to receive uploads Post a

A Js+css progress bar effect, post-upload ie invalid, which friend can point, thank you!

Firefox is normal, IE and 360 no effect, if not put to the server, directly run the progress bar. Html,360 is normal, but put it on the website, run the progress bar. Html,360 is not normal, really do not understand what is the reason? My test is

Xmlhttp.responsexml is null

Reply to discussion (solution) What format do you fix in Ajax? Untitled Document Header ("content-type:text/html;charset= ' GBK '");$id =$_get["Key"];$link =mysql_connect ("localhost", "root", "");mysql_select_db

Problems with page pagination for multi-criteria query results

???????? Constructing query conditions req $show _m_dep=trim ($_get[' SHOW_M_DEP '); $show _m_pro=trim ($_get[' Show_m_pro '); $show _m_con=trim ($_get[' Show_m_con '); $show _m_tim1=trim ($_get[' show_m_tim1 '); $show _m_tim2=trim ($_get['

Preg_replace_callback use of the problem

$pattern = Array ( '/ |\n]*?({.+?})[^/',//replace Smarty Comment '/ |{|\n]*?-->/',//replace non-wrapped HTML comment '/(href=["|\ ']) \.\.\/(. *?) (["|\ '])/I ',//Replace relative link '/((?: background|src) \s*=\s*[' |\ ']) (?: \. \/|\.\.\/)?

Total Pages: 5208 1 .... 4417 4418 4419 4420 4421 .... 5208 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.