-
Replied To a Post in Apache on Windows Server 2012
Have you set the `DocumentRoot` with the correct path? Consider this must be an absolute path. More information here: * http://httpd.apache.org/docs/current/mod/core.html#documentroot -
Replied To a Post in images display in Html2pdf through dompdf library in codeigniter
Hi, not tested, but according to the library, dompdf works in a *chroot* so it will not consider files outside of his path, this is defined here: /** * ==== … -
Began Watching Feeling demotivated
I Started to learn my first programming language - Python about 2 months ago and I'm 3/4 the way through my book Introduction to Programming using Python - Daniel Liang … -
Replied To a Post in ThrowExceptionOnError
The first error happens because the `throwExceptionOnError()` method is missing from your class. Regarding the second warning, as explained by the message: define the default timezone in your php.ini file … -
Began Watching Help optimize MySQL conf. Memory to high
I am running a unmanaged VPS - CentOS 6, 1gig of ram, 60gig storage, 256mb Vswap my.conf file: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql symbolic-links=0 max_connections=100 max_user_connections=30 max_allowed_packet=64M wait_timeout=30 interactive_timeout=50 query_cache_type=1 query_cache_size=4M … -
Gave Reputation to diafol in Username and Password Not Being Saved to DB
There are so many things that should be updated in this code. 1) Use PDO or mysqli - mysql is deprecated 2) Never place raw input into SQL without sanitizing … -
Replied To a Post in Can you suggest me what should I follow to learn?
Check also the Mozilla Developer Network: https://developer.mozilla.org/en-US/ In particular read their HTML[5], CSS and Javascript sections. -
Replied To a Post in Difference between ??SQl
MySQL can store up to **16TB** per table, but it depends on OS/filesystem in use, with linux the limit is **4TB** per table, source: * http://dev.mysql.com/doc/refman/5.6/en/table-size-limit.html MSSQL seems capable of … -
Replied To a Post in Mobile video not embedded properly nor responsive
Hi, have you asked support to the AVS helpdesk? -
Replied To a Post in Bonfire CMS
Seems fine, go to C:\xampp\htdocs\Bonfire-master\bonfire\codeigniter\database\drivers\mysql\mysql_driver.php Line `73`, method `db_connect()`, you find: return @mysql_connect($this->hostname, $this->username, $this->password, TRUE); change it, temporarly for this issue, to: return mysql_connect($this->hostname, $this->username, $this->password, TRUE) or die(mysql_error()); … -
Replied To a Post in Apache Login Authentication not working
Your configuration works fine for me, just make sure to enable all the modules requested by this procedure, I did a fresh install of Apache and I had to enable … -
Began Watching PHP print to PDF
Hi I have a php file with html forms and variables in php. I generate a policy document that is displayed in the web page and is then created in … -
Began Watching Apache Login Authentication not working
Hi guys, I am trying to create a login page using apache mod_auth_form to authenticate users. Once the user is authenticated he/she should be able to access the main page. … -
Replied To a Post in Apache Login Authentication not working
Hi, your configuration seems fine, but try to remove the `mod_auth_form` directives from the .htaccess file, most of these can be applied only to **directory** context, not in .htaccess: * … -
Replied To a Post in Multi checkbox
Ok, I see the problem, in the update query that starts at line `25` you have this: interests = '".$_POST['interests']."' , If `$_POST['interests']` was a string then this would work … -
Replied To a Post in Multi checkbox
This because at the moment you're just looping the received array, I don't see any variable that could return a database result set. Can you show how you build the … -
Replied To a Post in Multi checkbox
Yes, but if you can give more details we can suggest proper solutions... just to consider a possible scenario: if these are going to be used in a search query … -
Replied To a Post in hacked
If referring to `filter_input()` this is not custom, it's part of PHP: * http://php.net/manual/en/function.filter-input.php and it's ok, even submitting something like `10 OR 1=1` the filter will sanitize it to … -
Replied To a Post in hacked
Hi, try to understand how the infection was accomplished, if by using a compromised FTP account (check server logs, change passwords, secure client machines) or because of a code bug, … -
Replied To a Post in How to resize images in php
> its fixed but the images are blur. its a transperancy thing? Hmm, it depends which kind of image format you are using, PNG supports the alpha channel (i.e. transparency), … -
Replied To a Post in How to resize images in php
Ok, the above code seems fine to me. Regarding your link, I see some PNG blob data injected directly in the source of the HTML page, so there's must be … -
Replied To a Post in How to resize images in php
Regarding this error: > PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ro265852/public_html/gd_imagic.php on line 4 Can you show full source of **gd_imagic.php**? By the way, … -
Replied To a Post in How to resize images in php
Hello, sorry for late reply. So, you're almost there, when you define this: $final_image='/public_html/uploads/photos/'.$filename; You have to specify the full path, in relation with the document root, you can do … -
Replied To a Post in How to resize images in php
Oh, now I understand, no, you don't have to pass the `$im` object **to display the image** you have to use the **web server path**. In your previous script there … -
Replied To a Post in How to resize images in php
Ok, the **GD library** is available also in the PHP linux distribution, however is you still want to use Imagick: **which distro are you using: debian, ubuntu, centos?** Do you … -
Replied To a Post in How to resize images in php
**@Simon** your web server is a Windows system, correct? If yes, then the dll pack to download is dependant on the PHP version and the web server configuration, i.e. as … -
Replied To a Post in Twitter Bootstrap Php form
The `$headers` variable is not initialized, if you check the error log you should see a notice: PHP Notice: Undefined variable: $headers in ... for this reason the `mail()` function … -
Replied To a Post in How to resize images in php
Yes, if you're using Windows follow these instructions: * http://php.net/manual/en/imagick.installation.php#113711 Under Ubuntu & Co. just type: sudo apt-get install php5-imagick -
Replied To a Post in Problem with resizing images with php
Hi, I suppose **SimpleImage** is this: - https://searchcode.com/codesearch/view/69726118/ Or a similar version of the above, the error in your code is that you're overwriting the variable `$final_image` with the new … -
Replied To a Post in Storing IP Address in Website Registration
Hi, at the moment this is not a good idea, two or more users could share the same IP address at the **same time**, if using a proxy or a … -
Replied To a Post in Call to undefined method PDOStatement::exectue()
Hello, it's exec**ut**e, not exec**tu**e , so change line 7 to: $getpic->execute(); -
Replied To a Post in How to resize images in php
Hi, check for **GD** or **Imagick** libraries, these are both part of PHP: * http://php.net/manual/en/book.image.php * http://php.net/manual/en/book.imagick.php Also, when saving the images you should optimize them for the web, or … -
Replied To a Post in Sending email in codeigniter
Hi, since you write: echo form_open("email/send"); The receiving controller should look like: <?php class Email extends CI_Controller { public function send() { # code here } } More information here: … -
Gave Reputation to Traevel in database/website crawl - legal?
In the sense of "I have a cinema app and I want IMDB's movie data for the films playing" or more like "let's see what the NSA is up to … -
Began Watching Laravel Ardent, relations not showing
Hi all, I am using Ardent as a standalone package, together with Laravels Database package. Things are set up, and I can query just fine - But when I define … -
Began Watching How to kill remote session when logout?
Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help … -
Replied To a Post in inserting value of radio buttons in database?
You can do: $ans = array_key_exists('choice', $_POST) && $_POST['choice'] == 'Yes' ? 1 : 0; so in case of **Yes** the value of `$ans` will be `1`, in all other … -
Replied To a Post in inserting value of radio buttons in database?
I've already wrote what is missing. From line `71` to `74`, you wrote: foreach($_POST['choice[]'] as $selected) { echo "<p>".$selected ."</p>"; $qry="insert into diseases (Ans) values ($selected)"; } Basically you have … -
Replied To a Post in inserting value of radio buttons in database?
If you want to save multiple values then use **checkboxes** not **radio buttons**, from a group of radio buttons you must get only one value, assign the same `name` but … -
Gave Reputation to Dani in Convert to UTF-8
I just thought I'd share this because it took me a bit of time to figure out tonight. When members post content with MS Word quotes, etc., and they look … -
Gave Reputation to Dani in Upgraded editor
Amazingly awesome. -
Replied To a Post in Upgraded editor
> Now that we got Problem 2 (as defined by the OP) resolved, on to Problems 1 and 3. Cereal and Mike, still experiencing those issues? Problems 1 and 3 … -
Replied To a Post in Upgraded editor
Now it seems to work fine, at least for me. I tested the short reply box, new thread & the codemirror link. Thank you Dani! -
Gave Reputation to Dani in Upgraded editor
So I *think* I finally figured this bad boy out. Yes? No? Testers? -
Replied To a Post in Upgraded editor
@Dani Yes, I'm using Ubuntu 14.04, here's my browser version: Google Chrome 39.0.2171.95 (Official Build) Revision 86b48442d063e82f94969f5439badf11c9baeacc-refs/branch-heads/2171@{#461} OS Linux Blink 537.36 (@186555) JavaScript V8 3.29.88.17 Flash 16.0.0.235 User Agent Mozilla/5.0 … -
Gave Reputation to mike_2000_17 in Upgraded editor
For me, this works on any editor (reply or new thread) and it is consistently happening for any text that spans multiple lines (wraps). If a line ends with a … -
Replied To a Post in $_SESSION
In which script do you set the value for this session index? Also: do you know that using single quotes will NOT return the value of a variable? If you … -
Replied To a Post in Codeigniter PHP MYSQL HELP
The method `result_array()` will return an array, or an empty array if the query does not return any results, so: if(count($events) > 0) { foreach($events as $event_item) { # ... … -
Stopped Watching Proud to announce...
Hi guys, It gives me great pleasure to announce that I will be collaborating with fellow Daniwebber Veedeo in creating a fully baked, no nonsense CMS in Codeigniter. I will … -
Gave Reputation to almostbob in Signup page
[smartass] this code, `<form action="" method="get" style="display:none">` where it fails, `style="display:none">` can you guess, what display:none means > its going to signup page but the page is empty. [/smartass] [helpful] …
The End.