" data-bs-original-title="" title="">
It may be a wrong path to the local file, make sure you use absolute paths: $file = $_SERVER['DOCUMENT_ROOT'] . '/path/to/file.ext';
Also **mysql.log.1** is not the current log file, it's an old copy, so it can be moved to another location for further analysis or deleted, the main in use is **mysql.log**. Since it's a general log you can stop it, by commenting the line related to the **general_log_file**. Just enable: …
Have you tried `union all`? (select * from table1 where field1 = 'value to search') union all (select * from table2 where field1 = 'value to search') union all (select * from table3) order by field1; Read this: http://dev.mysql.com/doc/refman/5.0/en/union.html
**@sandeepek** a suggestion: change the password of your gmail account, since it's included in the above script.
Try to remove the underscore from the CSRF cookie name: $config['csrf_cookie_name'] = 'csrfcookie'; From what I've read in the past, it seems that latests IE versions don't like it.
Check the color scheme inside `.config/geany/geany.conf`. Before editing the value, close Geany otherwise the current window will overwrite your changes.
Since it's a library directory another solution is to **.htaccess**: Order allow,deny deny from all this will return `403 Forbidden` to any direct web access, but the files will still be available for include(), require() and require_once().
Get Mint and then use **debootstrap** to chroot debian, so you can have both without rebooting: https://help.ubuntu.com/community/DebootstrapChroot
In addition, this `$from = $_REQUEST['Email'];` is not good to use: **1)** there is no validation and **2)** because an attacker can use $_GET or $_COOKIE to inject is own code.
Check your IF statements, this `<src="index.php?lang=nl">` is not a tag, so you have to change them all, also there is no default condition.
A simple method, for example, is this: <?php # declare variables to register $path = '/images/'; $image = $_GET['image']; $ip = $_SERVER['REMOTE_ADDR']; $browser = $_SERVER['HTTP_USER_AGENT']; $date = date('Y-m-d G:i:s'); $cid = $GET_['campaign_id']; # so you can identify the newsletter $ucode = $_GET['user_code']; # so you can identify each user opening …
Also, remove `ExpiresDefault "access plus 2 months"` which will try to cache everything and not only the mimes declared below in the list. And add `ExpiresActive On` at the top because it is required by [`ExpiresByType`](http://httpd.apache.org/docs/2.2/mod/mod_expires.html#expiresbytype): > Note that this directive only has effect if **ExpiresActive On** has been specified
With **mysqli** you can perform multiple queries in a single call: http://www.php.net/manual/en/mysqli.multi-query.php check the examples and the comments in the manual to get an idea of the method to apply. If you still have doubts post an example of data you want to submit and the table structure. Bye!
Read this: https://help.ubuntu.com/community/Grub2 Grub2 is a bit complex. At the end of the linked page there are some links that explain how to edit the config files.
> The French looked like a shadow of their former selves same of Italy :(
You're mixing **mysql** with **mysqli** which are two different libraries, so it cannot work, change this: if (@mysqli_num_rows($result_check) == 1)//if Query is successfull { // A match was made. $_SESSION = mysqli_fetch_array($result_check, MYSQLI_ASSOC);//Assign the result of this query to SESSION Global Variable header("Location: page.php"); }else { $msg_error= 'Either Your Account …
Press the button **Reset** in the back view of the router. Then to log in use **Admin** as user and leave blank the password field. For more information check the manual: ftp://ftp.dlink.com/Gateway/dir615_revC/Manual/dir615_revC_manual_300.pdf Bye!
You can type `python` inside the terminal to get the interpreter, if you want a GUI version then install **idle3** by typing: sudo apt-get install idle3 After that just run **idle3** to load the GUI.
It seems there's a bug related to your problem, for more information check: * https://bugs.launchpad.net/ubuntu/+source/php5/+bug/774452 * http://stackoverflow.com/questions/8367748/pecl-install-pecl-http-gives-no-releases-available Is this happening only with **html_parse** package? Anyway try by adding sudo: sudo pecl install html_parse Otherwise write the specific package version: sudo pecl install channel://pecl.php.net/html_parse-1.0.0 And if it doesn't work, download it …
It doesn't work because `mysql_query()` cannot handle more then a query: > mysql_query() sends a unique query (multiple queries are not supported) http://php.net/manual/en/function.mysql-query.php To do that use mysqli: http://www.php.net/manual/en/mysqli.multi-query.php
If I understood your request, I think it cannot be done. Since Google Analytics runs into an external javascript file, which is located in: http://www.google-analytics.com/ga.js Or for SSL: https://ssl.google-analytics.com/ga.js The referer cannot be changed by your server, but only by a client browser. This happens because when a page is …
As suggested before you have to enable the reading of .htaccess, so inside Thinklocal add: #Think local <VirtualHost *:80> ServerAdmin admin@thinklocal.dev DocumentRoot c:/wamp/www/thinklocal ServerName thinklocal.dev ErrorLog "logs/thinklocal.dev-error.log" CustomLog "logs/thinklocal.dev-access.log" common <Directory /> # relation with DocumentRoot Options Indexes FollowSymLinks MultiViews AllowOverride All # allow .htaccess Order allow,deny Allow from all …
This is part of Gnome and it's used by the system when you connect to a remote server (ftp, webdav, ssh): >userspace virtual filesystem - server >gvfs is a userspace virtual filesystem where mount runs as a separate processes which you talk to via D-Bus. It also contains a gio …
Something like this will work: <?php $path = '/vault/'; $f = $_GET['file']; $f = pathinfo($f); if(file_exists($f['basename']) && strtolower($f['extension']) == 'pdf') { $file = file_get_contents($path.$f['basename']); header("Content-Type: application/pdf"); echo $file; } ?> Just create a directory pdf, put a file index.php as above and build links like this: http://localhost/pdf/?file=thecbook.pdf The access to …
You can start by checking the MySQL error log: http://dev.mysql.com/doc/refman/5.0/en/windows-troubleshooting.html > The error log is located in the data directory specified in your my.ini file. The default data directory location is C:\Program Files\MySQL\MySQL Server 5.0\data. Once you have the error.log, if you still need help paste here the content. Bye.
Change both `or die("error")` with: or die(error_log(mysql_error(),0)); Add one also to the query, if the `id` is something like `int(9) not null auto_increment primary key` then you don't need to declare with `NULL` value, otherwise it will return a boolean `FALSE`. After these changes check `/var/log/php_errors.log` or the specified file …
Many, from surgical sutures to my fingers to a spinal disc herniation which is so painful sometimes that I remain breathless. But the one I remember worst, it happened while I was doing snorkeling and was caused by a sea urchin spine between the thumb and the nail of my …
Try `mysql-server` and `mysql-client`, these are metapackages that redirect to the latest version available in repositories. If it doesn't match try `dpkg -l mysql-*` it will list all the packages related to mysql. And to remove them all, you can run `dpkg -r mysql-*` __EDIT__ You can use `--purge` to …
I tried the form from the pastebin and it seems to work fine for me, I get: Array ( [name] => Anonymous [email] => [title] => [contents] => [id] => 30 [pid] => 21 [cid] => 1 ) I just hardcoded `$this->id` and `$this->pid`, so check if there is something …
**757** will allow everyone to write, **this is not good**. The directories hosting the website needs to be owned by the same user running Apache, so set: * 644 for directories * 755 for files If it doesn't work check your configuration.
In addition to previous suggestions, you can mitigate the problem by adding an **.htaccess** file to the directory in which are hosted the images and specify to treat them with the default handler for static files: SetHandler default-handler If you upload a php file to this directory and try to …
You have to install it from PECL: http://www.php.net/manual/en/printer.installation.php And it seems to be Windows only.
Remove all the `break` from the switch statment, actually when it resolves a condition it doesn't go further to check the others, read this: > It is important to understand how the switch statement is executed in order to avoid mistakes. The switch statement executes line by line (actually, statement …
Configuring a firewall for example, or using a version control system as git or subversion, ssh, PECL and PEAR if you are using PHP, building and using a chroot, dealing with compilation of a program: it's not true that if not compiled is not stable, imagemagick for example is available …
If you click on the links you will get error 404, I've seen this error when trying to download from a local mirror but in your case the fetch is done from the main server... so try to download directly from the repositories: http://packages.ubuntu.com/quantal/mysql-server-5.5 http://packages.ubuntu.com/quantal/mysql-client-5.5 ...and so on for the …
This is my little list of test tools: * http://code.google.com/p/skipfish/ * http://cirt.net/nikto2 * http://w3af.org/ * http://wapiti.sourceforge.net/ * http://sourceforge.net/projects/sqlmap/ Consider also to use BackTrack or Samurai, a live distro focused only in web sites testings. Bye!
While waiting for more appropriate support, try to load `randomize`. This seems to work fine for me: Program Test; var num:longint; begin randomize; num:=random(1000000); write(num, ''); writeln; end. Source: http://www.freepascal.org/docs-html/rtl/system/randomize.html
It's probably cached by the browser, try by adding a random value to the requested url: http://localhost/page?1234 During the test, on each request, change the numbers (i.e. this `?1234`) so you will be sure to get new content. Also the rules suggested by Squidge are working fine for me. Bye!
What happens inside **GraViewImg.php**? And do you get correct access to this url? http://'+hpath+'/dms/user/Gravity/GraViewImg.php From the errors it seems the applet is receiving `NULL`.
The expected value for `$staff['isadmin']` is a boolean true/false or a string? If it's a boolean then change it to: if($staff['isadmin'] === 1) If you have doubts use `var_dump($staff['isadmin']);` to get the type of value.
The problem is here: //fetching each row as an array and placing it into a holder array ($aData) while($row=mysql_fetch_assoc($Result)){ $aData[] = $row; } //feed the final array to our formatting function... $contents=getExcelData($aData); Since you are not declaring **$aData** before the `while` loop, if the result set is empty then $aData …
Italian, then English, Spanish, French and I can understand a bit of German and Portuguese, both written. As soon as I can I would like to study Farsi, Russian and Hebrew.
> There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years... read more: http://www.php.net/archive/2012.php#id2012-05-03-1
Hello, I'm trying to display a message depending on the value of an input field. But it stops working when going back to default. Here's the JQuery code: $(document).ready(function(){ test(); }); function test() { $('#quantity').keyup(function(){ var quantity = $('input:text#quantity').val(); if(isInteger(quantity)) { var msg = false; if(quantity > 1) { msg …
You can do that, but first you need to download the files from repositories and make sure you are satisfying all the dependencies, once you have all the files you can use `dpkg` for example: dpkg -i package_name.deb For more info type `man dpkg` or `dpkg --help`.
The End.