Comments (8)
Try to change your /tmp
folder permissions to 0755 or 0777.
Can you please provide information about server and software (apache, etc.) versons?
from google-translate-php.
Here you can see some Infos http://www.yakuzasubs.at/phpinfo.php
I dont know Apache Version, but I had PHP5.3 and now I changed to PHP5.5.
I dont have access with my ftp Account to the tmp Folder, but I think the permissions are already 0777, because I can upload files in this directory.
You can try this here: http://www.yakuzasubs.at/test.php
The code of this site is:
<form action="test.php" method="post" enctype="multipart/form-data">
<input type="file" name="datei"><br>
<input type="submit" value="Hochladen">
</form>
$type = $_FILES['datei']['type'];
echo $type;
$size = $_FILES['datei']['size'];
echo $size;
$dir = $_FILES['datei']['tmp_name'];
echo $dir;
//Dateiendung herrausfinden
$typ = explode (".", $_FILES['datei']['name']);
$count = count($typ);
$count--;
echo "<br>$typ[$count]";
include ('GoogleTranslate.php');
$tr = new GoogleTranslate("en", "de");
echo $tr->translate("Hello World!");
from google-translate-php.
Translation code works fine for me both on local and remote web servers. There is a problem with open_basedir
settings in your PHP configuration. Take a look at this answer on stackoverflow.
from google-translate-php.
Ok thank you, I will write a mail to my hoster.
But the funny thing ist that the translation works....with error but it works.
from google-translate-php.
I've pushed two commits 1fee0dc and try with this version of code. Changed /tmp
with sys_get_temp_dir()
to get directory path used for temporary files.
P.S. There's a huge difference between Errors and Warnings
from google-translate-php.
Yeah, sure. Okay, thank you for that code. I tried it, but the same error occurs.
My hoster told me to control my program code. The path to webspace is /home/.sites/117/site3029/web
.
By the way sys_get_temp_dir()
output is /tmp
- thats funny 😃
Now I made a folder with ftp with the permissions 777 and used the path /home/.sites/117/site3029/web/tmp
. Now it works.
from google-translate-php.
That's weird 😄 Okay, happy your code works. Good luck!
from google-translate-php.
Yeah! Thanks for your help, and a great Code!
from google-translate-php.
Related Issues (20)
- Brazilian Portuguese translation error HOT 4
- How can I translate to serbian? HOT 1
- can i translate a Array at one time? HOT 1
- setUrl is not work for me HOT 1
- setUrl() It is not available in mainland China HOT 1
- Memory Usage HOT 4
- Very slow HOT 1
- Country an cities sometimes are not translated HOT 4
- ErrorException: Maximum execution time of 60 seconds exceeded HOT 4
- Class "Stichoza\GoogleTranslate\GoogleTranslate" not found HOT 1
- How do I swap to using my own paid api key? HOT 1
- Loading Problem. HOT 2
- I use the IP of a VPN server as a proxy, I wonder why it doesn't work when I use 'https' instead? HOT 5
- Can you give me a list of free Proxies that I can use so that translation is not blocked in the future? HOT 1
- Can you fix this bug in your library for me?
- 400 Bad Request Client error: GET HOT 5
- Can you add the link of my package to your package? HOT 1
- Ignore escaped keys on translations HOT 4
- Error: Class "Stichoza\GoogleTranslate\GoogleTranslate" not found in file HOT 6
- Bug report: preserveParameters gives unexpected results when translating to French HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-translate-php.