2,113 Posted Topics

Member Avatar for Dani

That's the Unix time format, which is the number of seconds since 1970-01-01 00:00:00: http://en.wikipedia.org/wiki/Unix_time

Member Avatar for Dani
6
3K
Member Avatar for eburlea

The problem is that the loop goes to overwrite the function value and even the name. But this seems to work fine for me: <?php $myarray = array('myvalueone','myvaluetwo','myvaluethree','myvaluefour','myvaluefive'); $n=count($myarray); for($i=0; $i < $n; $i++) { define('FUNCTIONNAME'.$i,$myarray[$i]); # define the value ${$myarray[$i]} = create_function('$name = FUNCTIONNAME'.$i, 'return "The name of the …

Member Avatar for eburlea
0
348
Member Avatar for kubyk

Yes you can: http://www.daniweb.com/members/edit_membership Click on **Permanently Delete Membership** and the account will be locked. However I don't see anymore the option on the profile page. More info: http://www.daniweb.com/community-center/daniweb-community-feedback/threads/433570/how-do-i-end-this-membership Bye!

Member Avatar for <M/>
0
390
Member Avatar for Naga14

It may be a wrong path to the local file, make sure you use absolute paths: $file = $_SERVER['DOCUMENT_ROOT'] . '/path/to/file.ext';

Member Avatar for pzuurveen
0
278
Member Avatar for OsaMasw

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: …

Member Avatar for OsaMasw
0
224
Member Avatar for joseph.lyons.754

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

Member Avatar for Webville312
0
213
Member Avatar for sandeepek

**@sandeepek** a suggestion: change the password of your gmail account, since it's included in the above script.

Member Avatar for sandeepek
0
2K
Member Avatar for Dani

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.

Member Avatar for Mark_k
0
2K
Member Avatar for mferarri

Check the color scheme inside `.config/geany/geany.conf`. Before editing the value, close Geany otherwise the current window will overwrite your changes.

Member Avatar for cereal
0
209
Member Avatar for skliz

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().

Member Avatar for diafol
0
162
Member Avatar for Proglearner

Get Mint and then use **debootstrap** to chroot debian, so you can have both without rebooting: https://help.ubuntu.com/community/DebootstrapChroot

Member Avatar for bsimms86
0
253
Member Avatar for ACRDepos

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.

Member Avatar for Octet
0
276
Member Avatar for johndohmen1963

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.

Member Avatar for johndohmen1963
0
406
Member Avatar for showman13

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 …

Member Avatar for LastMitch
0
165
Member Avatar for Buppy

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

Member Avatar for cereal
0
180
Member Avatar for phpDave

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!

Member Avatar for phpDave
0
135
Member Avatar for lewashby

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.

Member Avatar for lewashby
0
132
Member Avatar for happygeek

> The French looked like a shadow of their former selves same of Italy :(

Member Avatar for diafol
1
1K
Member Avatar for Ctechnology24

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 …

Member Avatar for suresh.godavarthi.77
0
3K
Member Avatar for D4100

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!

Member Avatar for cereal
0
64
Member Avatar for asaidi

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.

Member Avatar for asaidi
0
97
Member Avatar for McLaren

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 …

Member Avatar for McLaren
0
377
Member Avatar for Shodow

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

Member Avatar for cereal
0
146
Member Avatar for vizz

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 …

Member Avatar for vizz
0
2K
Member Avatar for cgull

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 …

Member Avatar for cereal
0
578
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
194
Member Avatar for hlamster

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 …

Member Avatar for cereal
0
651
Member Avatar for shipra.behera

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.

Member Avatar for cereal
0
430
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
2K
Member Avatar for <M/>
Re: Pain

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 …

Member Avatar for GrimJack
0
308
Member Avatar for ScarWars9
Member Avatar for lewashby

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 …

Member Avatar for cereal
0
186
Member Avatar for eng442

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 …

Member Avatar for eng442
0
530
Member Avatar for OsaMasw

**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.

Member Avatar for OsaMasw
0
2K
Member Avatar for OsaMasw

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 …

Member Avatar for naphets
0
2K
Member Avatar for sri.

You have to install it from PECL: http://www.php.net/manual/en/printer.installation.php And it seems to be Windows only.

Member Avatar for akgreen
0
7K
Member Avatar for asaidi

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 …

Member Avatar for asaidi
0
103
Member Avatar for McLaren

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 …

Member Avatar for McLaren
0
216
Member Avatar for NardCake

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 …

Member Avatar for NardCake
0
494
Member Avatar for jLamp

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!

Member Avatar for jLamp
0
156
Member Avatar for hambu

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

Member Avatar for cereal
0
338
Member Avatar for fheppell

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!

Member Avatar for cereal
0
2K
Member Avatar for himvj1

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`.

Member Avatar for cereal
0
312
Member Avatar for np complete
Member Avatar for garwil

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.

Member Avatar for garwil
0
179
Member Avatar for kitschkath

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 …

Member Avatar for kitschkath
0
188
Member Avatar for <M/>

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.

Member Avatar for Lucaci Andrew
0
420
Member Avatar for cereal

> 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

Member Avatar for LastMitch
2
525
Member Avatar for cereal

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 …

Member Avatar for cereal
0
196
Member Avatar for M.Faisal

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`.

Member Avatar for cereal
0
80

The End.