-
Replied To a Post in Using PHP and C++ together. What C++ can offer?
Check also HipHop: https://github.com/facebook/hhvm is used to convert PHP to C++ and speed up the execution of the code. -
Replied To a Post in Wampserver: OCILogon Error from command line
Hi, from the command line check if the **oci8** module is loaded: php -r 'echo extension_loaded("oci8") ? "true":"false";'; You can also list all the modules loaded by using: php -m … -
Began Watching sending mysql data to remote database using php cmd line
I would love to know whether this code is the correct manner to send mysql data to a remote database. $host = 'www.domain.tld'; $user = 'remote_user'; $pass = 'remote_password'; $time_end … -
Replied To a Post in Run cron job every few days
Yep. You can use `4-28/4` or the equivalent in V7 standard: `4,8,12,16,20,24,28`. -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
It means that you have to compare the date string with the one in the filenames and get the most recent. I suppose you cannot consider ctime/mtime/atime, correct? Because if … -
Replied To a Post in Run cron job every few days
Yes. `1-31` is the range, you can use `*` which, in this case, is the same because cron internally sets the `first_dom` constant to be always `1` and the `last_dom` … -
Replied To a Post in Run cron job every few days
The day of the month (`DOM`) refers to the `1-31` range, it does not consider when the job was created. There's a comment in **cron.c** source, extended in the **FEATURES** … -
Replied To a Post in can't login to my wordpress Admin page after changing The URL 's
Please give us more information. If you can login through FTP/SSH then you should be able to edit the config file and you can change the value of `WP_SITEURL`, that … -
Replied To a Post in HTAccess setup FTP web server
> I do not like how you can see the .htaccess file on the FTP listing. The .htaccess files are usually available to the clients so they can apply some … -
Replied To a Post in HTAccess setup FTP web server
> Having some issues with securing my home FTP server running FileZilla FTP Server. Ok, sorry I was confused by the above. The name of the file must be `.htaccess` … -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
> It should work minimum once evenif the file is two weeks old. The objective is just to display the date of file, if its not new, it will disply … -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
> `line 6: [: -eq: unary operator expected` The error means `$u` is missing or is null, so this fails: if [ ${u} -eq 1 ] ; then In my … -
Replied To a Post in edit_profile Form Issues
Regarding your first issue, this is probably caused by `nl2br`, everytime you print the code to the textarea it will translate the new lines to `<br />`, but [it will … -
Replied To a Post in edit_profile Form Issues
Try to zip it. By the way for me it works fine. -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
You can change the approach: with `$dateQ` you set also the time segment `%H%M`, not only the day, so if you search for a file of `20140106` you find it … -
Replied To a Post in HTAccess setup FTP web server
Hi, the `.htaccess` file is used for HTTP connections, not for FTP access. The article in LH talks about HTTP Authentication: when you open an URL it appears a prompt … -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
Ok, so the error is file not found or something else? Currently you're not checking if the file is available, try to add a check, and change the extracting command, … -
Replied To a Post in Unzip tar.Z file and check fianlename date by Shell Script
Add `$` to `"dateQ"` otherwise you get `filename_dateQ.tar.Z` instead of the date & time string: tar xvf filename_"$dateQ".tar.Z -
Replied To a Post in Wordpress Daily Random Post
Hi, you could use an external script and run it daily with cron job to set up a meta key in `wp_postmeta`, the name can be `post_of_the_day`, the value a … -
Replied To a Post in Help on registration form to logout using form action=SERVER['PHP_self
Move the form opening and closing tags outside the **IF / ELSE** statements, currently: * when the user is not logged the form is not closed; * when the user … -
Replied To a Post in Resource allocation - PHP/Joomla
To run these kind of events consider to use Gearman, Beanstalkd or other work queues: * http://gearman.org/ * http://kr.github.io/beanstalkd/ It enables you to perform parallel and background tasks in local … -
Replied To a Post in Pro/Cons: MySQL -vs- MySQLi
Consider also the [PDO library](http://php.net/manual/en/book.pdo.php), it supports more databases: MySQLi is limited to MySQL and his forks, while PDO can query MySQL, Oracle, SQlite, PostgreSQL, MSSQL and others. That way … -
Replied To a Post in pl/sql execution
Is the `dbms_output` enabled? If you run `show errors` do you get any information? -
Replied To a Post in Extracting string from webpage
You can use `preg_match()`, an example: <?php $string = "Decrypt the following random string: O2tsOGJeLj0saj07ODM1IQ=="; preg_match('/:\s(.*)/', $string, $match); print_r($match[1]); The pattern `/:\s(.*)/` searches the string after `:`, but you could … -
Gave Reputation to Dani in Link underline
OK, working links in code snippets are now only underlined when you hover over them and broken links in code snippets are crossed out when you hover over them. The … -
Replied To a Post in Temporary Table PhpMyAdmin
No, the temporary table is visible only by the current connection, if you start a connection from another mysql client (PHPMyAdmin or just a shell) the id will be different. … -
Replied To a Post in Temporary Table PhpMyAdmin
With `mysql_pconnect()` you can create temporary tables, these will not be destroyed when the script ends, because the connection will stay open, unless you don't use `mysql_close()` or you drop … -
Stopped Watching Passwords and encryption question
Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a … -
Replied To a Post in Passwords and encryption question
Sorry, I didn't edit in time. *Edit 2* I'm probably wrong, because actually there are few conditions: capitalization matters, you cannot use characters of the name and if you choose … -
Began Watching Passwords and encryption question
Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a … -
Replied To a Post in Passwords and encryption question
Interesting thread. In Yahoo mail when you set the password you are not allowed to use the characters included in the username, no matter if you're using only one of … -
Replied To a Post in Relationweb on website
Can you explain better what you want to achieve? > I just want point relation between Word A, B, C to Z Are you referring to the signifier or to … -
Replied To a Post in Help with directory access/ownership...
If the ftp user is not **apott** then add it to the **apott-site** group. That should fix the problem. -
Replied To a Post in Class SoapClient not found
You have to enable the module, you can do this at compilation or by adding: extension=soap.so to the configuration file of PHP, usually there is a `conf.d` directory where you … -
Replied To a Post in Overriding Headers - Redirection
Change line `12` to: if ($redirect === true) { And change the single quotes with double quotes on line `13`: header("Location:$redirect_page"); Docs: http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing -
Gave Reputation to nauticalmac in Use title Condition for fetching info from MySQL table - query needed
Also '==' does not exist in MySQL. Use '=' (unlike JS, PHP, C C++ Java...) -
Replied To a Post in help with this scrap please
Ok, if we are done here, please mark it solved. -
Replied To a Post in scrape the image
This is the same request of your previous thread but with a different schema to match: * http://www.daniweb.com/web-development/php/threads/470445/help-with-this-scrap-please Probably you can apply my suggestion by changing the pattern in `preg_match()`. … -
Began Watching Allowing only a single user on a particular page - Possible?
Hi. I am relatively new to PHP and Joomla. Basically I am building a website which allows registered users to login and use the online services that we provide. I … -
Gave Reputation to Troy III in Percentage of sites using jQuery UI?
> According to their statistics there are about 6 million websites that use JQueryUI. We should bare in mind that, -there are also as many clients times 10, who discard … -
Replied To a Post in Help with directory access/ownership...
If this is not a production server, but only for testing, you can add your user to `www-data` **group**: usermod -a -G www-data apott If in this server there's another … -
Replied To a Post in Link underline
>The reason why we turn URLs into clickable links within code snippets is because sometimes snippets include comments with a link crediting the origin of the source code and that … -
Replied To a Post in Link underline
In my opinion in the code blocks this is distracting. The link should not be clickable by default, no matter if this is broken or not and mantain his readability. … -
Replied To a Post in HELP ON USING TEMP TABLES!!!
Maybe I know what is happening, in the other thread I suggested you to create the table manually, maybe the one you created through PHPMyAdmin was `myisam` instead of a … -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
> can we not create Tables using PHP code? Yes, it is possible, but you need a [persistent connection](http://php.net/mysql_pconnect) otherwise create this table with another engine, you could use the … -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Ok, if you still want to create a temporary table, use my suggestion, change your code, then modify the insert query to: $query_insertintotable = "INSERT INTO everything (ArtistName, NAMEoftheDVD) VALUES … -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Also the name of a column cannot contain whitespace, use underscores instead, so `Name of the DVD` becomes `name_of_the_dvd`. That's probably why your temporary table does not work, you can … -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Yes, create the table with the columns you need and then post the result of the `explain` command here, or just post the **create** statement. After that we can fix … -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Yes, without the dot, just `explain temp;` -
Replied To a Post in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Without the semi-colon at the end of `mysql_query()`: $result_selecttemptable = mysql_query($query_selecttemptable, $dbhandle) or die(mysql_error()); And with `die(mysql_error())` which is more useful because it will display the actual error or the …
The End.