Does anybody know a clean PHP-based solution that can backup remote web sites using FTP?
Must haves:
Recursive FTP backups
Possible to run through a cron job
Easy to configure (easy adding of multiple sites)
Local storage of backup files is sufficient
Would be nice:
Backed up sites are stored as zip files
A nice interface to manage things
Provides notification when backup has succeeded or failed
Does incremental backups
Does MySQL Database backups
I need this to be PHP (or Perl) based because it's going to be used on shared hosting packages that do not allow usage of the standard GNU/Linux tools available.
Hello everyone,
I am working on website (built using PHP, Mysql, Jquery) which require that admin set a variable in configuration and according to that configuration variable Jquery autocomplete is enabled or disabled to all website. Is there any way to achieve that functionality.
Please help me, its very urgent........
I'm using GlassFish v3. The following field is declared in a class:
@Resource
private javax.sql.DataSource _data_source;
The following is declare in web.xml:
<data-source
<namejava:app/env/data</name
<class-namecom.mysql.jdbc.Driver</class-name
<server-namelocalhost</server-name
<port-number3306</port-number
<usermyUser</user
<passwordmyPass</password
</data-source
At run-time _data_source is empty. What am I doing wrong?
I'd like to add a begin...rescue block to one of my controllers create method, in order to log better info and construct the correct error message to return to the client. Does the rescue in any way 'interrupt' the rollback process?
I'm assuming rails automatically does a rollback. When does it happen? Has it already happened by the time I get in the rescue clause?
I'm using mySQL on Dreamhost and I think they use innoDB.
Hello:
I have a simple webpage that displays the credit balance for calling cards. So far without any problems, with HTML, PHP and mysql, I was able to retrieve the balance from a data base. But I have to display the result in ANOTHER PAGE, wich looks akward because the page must reload.
Can I just load this value into a pre-drawed field under the input fields that collect the data from the customer? Such as :
Account Number: 134556
PIN: *
|send|
Balance is: $12.36
Thanks in advanced
I see this a lot now, jpg files displaying your IP address. To you of course, not to others, they would see their own
For example:
How is this even possible? If this is possible, would it be possible to log an IP into a MySQL database from the picture as well? Is my IP getting logged when I view this?
I use phpmyadmin to create mysql database. And I have set the auth type to cookie in the config.inc.php.
How do I change the time limit so that even if I logged in I stayed idle for hours it won't require me to log in again.
I need to limit number of entities returned by a query to some certain value inside a JPA query (through JPQL). Particularly:
select m from Manual m //constraint
e.g. in sql (mysql syntax) I would do it like:
select * from Manual limit 1
The only solution that comes up is simply to get all entities and then choose first one, which is out of the issue. Any ideas?
Hi,
I am trying to find a way for our users to very easily upload their outlook contacts into our web application (mysql database).
I'm not sure where to begin. I've seen various tools which are pretty complex. I am open to existing third-party solutions, but my hope is that there is something which is very simple to use or build.
Thanks.
PS: Ideally, it would not involve using visual basic.
Hey,
Currently i try to create some of my database export work more automated and i decided to go with exporting data from MySql database to .doc file in php.
So im doing some database work and store complete html to a $str variable and then write/make new file:
$fp = fopen($file, 'w+');
fwrite($fp,$str);
fclose($fp);
The problem here is not creating .doc file, but when i download and view that .doc file it's not in UTF-8 it's in unicode.
I am pretty new to Linux. Got a VPS set up yesterday, installed Apache2, PHP5 and MySQL.
When I do apache2 -l I get this:
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
prefork.c
http_core.c
mod_so.c
When I do sudo a2enmod rewrite I get this:
Module rewrite already enabled
And rewrite.load is in /etc/apache2/mods-enabled.
Can anyone tell what's wrong?
i need in an php file three drop down boxes or multiple select boxes.
the entries from these boxes are in a mysql database.
the single problem is that the entries in the thrid box depend on the second, and the entries in the second depend on the first.
can someone help? know any examples?
I have a list containing a tuples and long integers the list looks like this:
table = [(1L,), (1L,), (1L,), (2L,), (2L,), (2L,), (3L,), (3L,)]
How do i convert the table to look like a formal list?
so the output would be:
table = ['1','1','1','2','2','2','3','3']
For information purposes the data was obtained from a mysql database.
My script runs fine when I execute it from outside the application (terminal), but when its called from inside the C++ application it shuts down in the require("luasql.mysql") call.
Can anyone help?
Hello everyone!
I am now writing a report about MS Access and I can't find any information about its performance speed in comparison to other alternatives such as Micorsoft SQL Server, MySQL, Oracle, etc... It's obvious that MS Access is going to be the slowest among the rest, but there is no solid documents confirming this other than forums threads, and I don't have the time and resources to do the research myself :(
Hoping for your help,
V.S.
This has been a big question mark on my mind.
I'm moving to Mercurial or Git very soon for my web software, and sometimes my branches require significant database changes which other branches should not see. This, I can't always share the same database for my branches.
Is there some standard way of dealing with database changes for branching and cloning? What do you all do? I'm using MySQL.
Hi, I am currently working on the Application named (Blackberry Contacts Sync) and i am stuck at this point that how i sync Contact's Image. Please tell me how to store images in Database(MySQL) and how to retrieve it.
Is there a good tutorial or sample project of how to upload data from iPhone to a self-owned web server? The project is like:
A survey application on iPhone which stores the user input data in a plist
When there is internet connection, the program will enable an "Upload" button
When the Upload button is clicked, the program will upload the data via HTTP form submit (POST)
The server is Linux + MySQL + Apache + PHP
The data should be sent via a https:// connection
Introduction
I have some sort of values that I might want to access several times each page is loaded. I can take two different approaches for accessing them but I'm not sure which one is 'better'. Three already implemented examples are several options for the Language, URI and displaying text that I describe here:
Language
Right now it is configured in this way: lang() is a function that returns different values depending on the argument.
Example: lang("full") returns the current language, "English", while lang() returns the abbreviation of the current language, "en". There are many more options, like lang("select"), lang("selectact"), etc that return different things. The code is too long and irrelevant for the case so if anyone wants it just ask for it.
Url
The $Url array also returns different values depending on the request. The whole array is fully defined in the beginning of the page and used to get shorter but accurate links of the current page.
Example: $Url['full'] would return "http://mypage.org/path/to/file.php?page=1" and $Url['file'] would return "file.php". It's useful for action="" within the forms and many other things. There are more values for $Url['folder'], $Url['file'], etc. Same thing about the code, if wanted, just request it.
Text
[You can skip this section]
There's another array called $Text that is defined in the same way than $Url. The whole array is defined at the beginning, making a mysql call and defining all $Text[$i] for current page with a while loop. I'm not sure if this is more efficient than multiple calls for a single mysql cell.
Example: $Text['54'] returns "This is just a test array!" which this could perfectly be implemented with a function like text(54).
Question
With the 3 examples you can see that I use different methods to do almost the same function (no pun intended), but I'm not sure which one should become the standard one for my code. I could create a function called url() and other called text() to output what I want. I think that working with functions in those cases is better, but I'm not sure why. So I'd really appreciate your opinions and advice.
Should I mix arrays and functions in the way I described or should I just use funcions?
Please, base your answer in this:
The source needs to be readable and reusable by other developers
Resource consumption (processing, time and memory).
The shorter the code the better.
The more you explain the reasons the better.
Thank you
PS, now I know the differences between $Url and $Uri.
Hello guys,
I am looking for a hosting solution for my Java/JSP web application. Do you know any servers which provide Tomcat hosting for v5 or greater and MySQL database?
I am a .NET developer from last 7 years, now i want to move to OSS stack(Rails. mysql etc)
I don't have any idea about lunix platform.
Is there anybody who have been moved?
Any book, guidline, etc.
edit: reason - want to learn new platform.
Hi,
I want to show images that are requested from a binary field (blob) out of a mysql database. They are retrieved by a PHP script and outputs a 'real' jpeg image i.e. header('Content-Type') = 'image/jpeg'. This is working.
But how can i intercept this image that is being made by an ajax call ?