-
Replied To a Post in Codeigniter cron job that has exec
No worry, it happens! ;) -
Replied To a Post in Files uploaded outside /var/www
Great, thanks for sharing! -
Replied To a Post in Codeigniter cron job that has exec
Hi, regarding the ffmpeg execution in `$RF->newname` are you returning only the filename or also the path in which this file is located? Is the destination path writable? Regarding the … -
Began Watching Laravel 5
Anybody using L5 yet? Just got to grips with 4.2 and thought I had it cracked. L5 was a shock. The "simplicity" of 4.2 has disappeared IMO. The documentation sucks … -
Replied To a Post in CI CRUD - routes
The current stable version is 2.2.1, version 3 is still in development status, it is not stable and probably not even complete, but I'm not sure of this havent tried … -
Replied To a Post in CI CRUD - routes
So you have a `ci` controller and a `/ci/` directory in which you installed CodeIgniter, when you try to access your `ci` controller you do something like this: http://website.tld/ci/ci/ Correct? … -
Replied To a Post in CI CRUD - routes
Davy: 1. are you able to directly open this link? 2. do you experience this problem just with these two controllers or it is a common issue to all controllers? … -
Began Watching Using <a href="filename.ext" download> for a download link
I have the code below for a download file link on a web page I designed. It works fine in Firefox, but will not work in Internet Explorer nor Safari. … -
Replied To a Post in Files uploaded outside /var/www
It could be, do: ls -lh /mnt ls -lh /mnt/storage ls -lh /mnt/storage/uploads And return the output for each command. Question: the web server is chrooted? -
Replied To a Post in Files uploaded outside /var/www
Ok, regarding the **Alias** directive, did you created the correct setup with a **Directory** directive as [suggested by the documentation?](http://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias) > In particular, if you are creating an Alias to … -
Replied To a Post in Files uploaded outside /var/www
Use an absolute path to define the destination directory, then test and check Apache & PHP error logs, it should return the reason: permissions, wrong destination or something else. In … -
Replied To a Post in initialize a public variable
Hi, try: <?php class One{ public $a; } $b = 'Hello'; $test = new One; $test->a = $b; echo $test->a; For more information read about the **visibility** of class properties: … -
Began Watching Bulk sms sending using SMS gateway and MySQL table
Hello! I am Basil and I am a freelancer, I work in the United Kingdom. I wish to start my own business but for starting I need a solution for … -
Replied To a Post in Files uploaded outside /var/www
> does it shows the full path for file No, the aliased path will not be directly accessible or visible so, only `/uploads/file.ext` will be visible to clients. There are … -
Replied To a Post in Files uploaded outside /var/www
Also explain the reason, because you could simply use the [Alias directive](http://httpd.apache.org/docs/2.4/mod/mod_alias.html) to point the external directory to clients: Alias /uploads /etc/mnt/storage/uploads that way you don't have to alter your … -
Gave Reputation to mattster in Wordpress Child Themes Copyright Issue
If the child theme has been changed or had any work done on it by a person (which it probably has), therefore the changes/work/theme is copyrighted to them. It will … -
Replied To a Post in Generating thumbnail from mp4
If you can use the command line then use ffmpeg with the `-vframes` option, example here: * https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video Through PHP you can use `exec()` or you can use this PHP-FFMpeg … -
Began Watching Wordpress Child Themes Copyright Issue
Hi, I want to know that is there any kind of copyright issue when you use child theme? As you know that you can modify child themes as you want. … -
Replied To a Post in num_rows not working when used SUM()
`SUM()` is a function of the `GROUP BY` clause, so, in order to get correct results you have to add a *group by* statement to your query, otherwise: > If … -
Began Watching Php Soap Client
Hi, I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of … -
Replied To a Post in Image code validation
Hi, maybe you have multiple file type fields in your page? Try by identifying the field by the ID attribute, for example: // by default, submit is disabled $("#submit").attr("disabled", "true"); … -
Began Watching help on Bing Ads Auto click
hi my name is faiyaz i m an bing and google adwords account manager i have issue sgoing on from last few days my Competitor are using some kind of … -
Replied To a Post in Array in email (phpmailer), how to put into message part
Hi! Each field name of the form must be an array, so for example, change: <select id="field-BX_height" name="BX_height"> To: <select id="field-BX_height" name="BX_height[]"> As you are already doing with `BX_NAME[]`, apply … -
Replied To a Post in Help with Array Walk
I see, thanks for sharing your solution! Besides my regular expression pattern was wrong, sorry for that... here's an updated version to match only `\n`: $pattern = '/^([\\\\]?n|[\n])(.*)+$/'; This will … -
Replied To a Post in Help with Array Walk
The function `array_walk_recursive` will set the index key as second argument of the mapped function, the third argument will be the third of the function, since `ltrim` takes only two … -
Replied To a Post in Google maps API not working
Ok, there is an API key for **server applications** and another for **browser applications**, with the Javascript Google Maps API, you must use the browser applications API Key. Can you … -
Replied To a Post in Bonfire CMS
@cilla I believe it also, for this reason I wrote: > at first I thought your was a simple edit to cover your credentials... since English is not my main … -
Replied To a Post in Apache on Windows Server 2012
> Would those be in the same file or separate? You can use both methods, by default the Windows setup will use a single file, httpd-vhosts.conf, as defined by httpd.conf. … -
Replied To a Post in Apache on Windows Server 2012
Hmm, not that I'm aware of, but I haven't a good knowledge of Apache Windows setups, in linux each VirtualHost needs a specific DocumentRoot and a matching Directory, used to … -
Replied To a Post in IS NULL mysql
Then try `empty()`: if( ! empty($trans_autista) && ! empty($cat)) { # execute query } This will match null, false and empty strings: http://php.net/empty But be careful: `empty()` will match also … -
Replied To a Post in IS NULL mysql
Hi, If you are referring to the value of the variables then check it before executing the query: if( ! is_null($trans_autista) && ! is_null($cat)) { # execute query } If … -
Gave Reputation to happygeek in How to check for and securely remove Superfish badware from your Lenovo PC
Chinese computer manufacturer [Lenovo has admitted](http://support.lenovo.com/us/en/product_security/superfish) that it installed an adware component called Superfish on 16 million PCs shipped between September 2014 and February 2015 in order to "help customers … -
Replied To a Post in Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given
It happens because the query returns FALSE instead of returning a result set, there is an error in your query, try to add the quotes around `$name`: ... category = … -
Replied To a Post in CI CRUD - routes
It means you're using [version 1.7.2?](http://www.codeigniter.com/user_guide/installation/upgrade_200.html) My opinion: since you're using CI it is highly convenient to switch to the last version, there are not much changes to do to … -
Replied To a Post in Build a championship table
Hi, you can set only one `thead` for each table, here you're setting two of them, and the number of columns must match those in the `tbody` block. You can … -
Replied To a Post in CI CRUD - routes
Ops! There's still an error, change: class Cadd_latihan extends Controller To: class Cadd_latihan extends CI_Controller -
Replied To a Post in Large OP font
Since there were suggested few solutions... here's mine :p Use CJS or GreaseMonkey (TamperMonkey in Firefox) extension to embed a tiny javascript: Target = document.getElementsByClassName("post-first")[0]; Target.className="margin-bottom clear"; It removes `.post-first` … -
Gave Reputation to diafol in Large OP font
However, have a look at this thread: https://www.daniweb.com/web-development/aspnet/threads/492036/first-mvc-application-and-problem-with-database#post2152176 Sheesh. That looks like a lot. I know it would be the same amount of text whatever the font size. But that … -
Replied To a Post in CI CRUD - routes
If you write: onClick="parent.location='cadd_latihan/'" your link is relative to the page in which this is clicked, so if you open it in `/home/` the client asks for `/home/cadd_latihan/`, if you … -
Replied To a Post in sql from mysql in php
You're inserting `$id` directly in the prepared statement, use the array in the execute method: $stmt = $pdo->prepare("UPDATE van SET `position` = @a:= @a + 1 WHERE day = ?"); … -
Replied To a Post in Bonfire CMS
You're welcome! I would try to change the database configuration values, line per line, and verifying if there are some changes. In particular I would focus on these lines: $active_record … -
Replied To a Post in fully qualified URL from a form file input
What's your purpouse? You cannot access the client path of an uploaded file, because the browser operates in a sandbox and will send only the file and the name. If … -
Began Watching Website Migration Causing Migraines
Hey guys and gals, Newcomer here, and new to IT world as well. Recently overhauled company website, installed Wordpress. Same webhost and DNS. After the changes, visiting the website via … -
Gave Reputation to JorgeM in Website Migration Causing Migraines
Does your company have a split-dns design? You may have an internal DNS zone (with the same zone/domain name as the one you host externally) that needs to have the … -
Replied To a Post in Website Migration Causing Migraines
Hi, do you have some sort of [referer](http://en.wikipedia.org/wiki/Referer_spam) [filter](http://stefaanlippens.net/refererspam) that could block the access from your company network? Are you using [access control directives](http://httpd.apache.org/docs/2.4/howto/access.html) to block an IP range or … -
Replied To a Post in Apache on Windows Server 2012
Ok, this seems to be the httpd.conf file not a VirtualHost config. Anyway, when you set the `DocumentRoot` [you must set](https://wiki.apache.org/httpd/CommonMisconfigurations#Changing_the_DocumentRoot_value_without_updating_the_old_DocumentRoot.27s_.3CDirectory.3E_block) a `Directory` directive to setup the matching path that … -
Replied To a Post in Apache on Windows Server 2012
Ok WordPress doesn't require that config, so it must be something with the virtualhost configuration, can you share it? Besides have you added index.php to the `DirectoryIndex` directive? Docs: http://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex -
Replied To a Post in Apache on Windows Server 2012
Ok, are you trying to install custom code? Sometimes the **DocumentRoot** should be something like: E:/public_html/SiteName/public It happens, for example, with Laravel and other frameworks or CMS systems: in the … -
Replied To a Post in sql from mysql in php
By using PDO you can execute two prepared statements, for example: <?php try { $pdo = new PDO("mysql:dbname=db", "user", "pass"); } catch (PDOException $e) { die('Connection failed: ' . $e->getMessage()); … -
Replied To a Post in reinitialize the count to 1
Hi, let me understand, you get two arrays from a form, for example: $a = [1,2,3,4,5]; $b = [10,11,12,13,14]; Then you combine them to have `$a` as keys and `$b` …
The End.