PHP File Change String
Dec 14, 2007
I currently have this code in my Image Upload script which changes the file name into sets of numbers and letters
Quote:
$new_file_name = "uploads/" . md5($_FILES['selector']['name'] . time()) . "." . $extension;
How can i make it so its smaller than an md5, about 6 or 7 numbers and letters.
View 2 Replies
ADVERTISEMENT
Aug 10, 2008
I am wanting to backup my VPS, though the backup manager requires me to enter something for "Backup File Initial String". It is shown in ....
View 2 Replies
View Related
Jul 29, 2009
I have a file and i need to change this file name.
But its have space now.
Its: My File Name.tar.gz
How can change this file name to: My-File-Name.tar.gz
View 2 Replies
View Related
May 17, 2009
well i am running into the problem of hitting 30k subdir limit. so i need to change to a file system that supports something much bigger.
question is, do hosts allow this ?
View 3 Replies
View Related
Sep 14, 2007
I am not able to change the attribute of a file using the command chattr. Please see the output below.
root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf
root@server [~]# chattr -ai /etc/exim.conf
root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf
In fact, I can change the attributes for all the other files.
I noticed that attribute of /etc is I
root@server [~]# lsattr -d /etc
----------I-- /etc
View 3 Replies
View Related
Jun 21, 2008
I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:
[user@domainname theme]$ chmod 777 header.php
chmod: changing permissions of `header.php': Read-only file system
[user@domainname theme]$
[root@domainname theme]$ chmod 777 directoryy
chmod: changing permissions of `directoryy': Read-only file system
[root@domainname theme]$
I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?
View 4 Replies
View Related
Jan 19, 2015
We have a website under httpdocs/. We can change/delete files with a ftp user : "ftpold". All is ok. We must create another ftp access for another company which can access only to httpdocs directory (not to logs/, error_docs/...).
So we have create a ftp access in Plesk. But with this ftp connexion, we can not update/delete files ou update rights.
So we decide to change rights on the files/directories under httpdocs with the new ftp access :
httpdocs# chown -R ftpnewsacln *
The is no errors but the files:directories are always with the old ftp user :
httpdocs# ls -l
ftpold psacln ... libs/
ftpold pscln ... index.php
Why ? How can i create another ftp access ?
View 3 Replies
View Related
Sep 14, 2013
Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?
View 1 Replies
View Related
Aug 22, 2009
I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?
View 3 Replies
View Related
Jan 3, 2008
I have been finding MRSPUTNIK in User Agent strings hitting my Website and was wondering if anyone had any insight. I can find other incidences online, but can't figure out what it is indicating.
Has anyone else seen this?
MRSPUTNIK 2 0 0 17 HW
View 1 Replies
View Related
Nov 24, 2014
I'm looking for a way to add a string to the end of an url if it contains a certain string (while using a .htaccess file).
If the url contains: derp.php it will add the following to the end of the url: &code=TEST
E.g. if an url contains derp.php?blabla it will be changed to: derp.php?blabla&code=TEST
How can I accomplish this?
View 2 Replies
View Related
Oct 11, 2009
Is it possible to call a cron job with a query string appended to the file. I have no problem setting up crons in the cron tab..but i'd like the cron to fetch a url that looks something like
/home/php/some-file.php?a=1
is this possible directly through the cron job? I guess an alternative is call some php file that uses curl but i was wondering if there 's a direct way.
View 2 Replies
View Related
Jun 16, 2008
OS: Windows 2003
I want to find out a string in a folder that holds 100+ files and sub-folders.
View 6 Replies
View Related
Jul 20, 2007
We have some Cisco servers that are being administrated by Affant. I recently downloaded a network management tool called SolarWinds and it looks really interesting and amazing because it can do so much for network monitoring. It seems that it needs not only the IP address for out server, but also a Community String. I tried the basic defaults (private, public) but they will not connect. I researched online and found some other defaults for a 3COM network, but none of those worked either.
I was going to try and telnet through to the server but port 23 (default telnet port) is closed. Im sure its for security purposes. I also read online that if I used a packet sniffer, I would be able to sniff out packets which hed the community string in them.
However, I could not find a sniffer which would actually do this. Any suggestions on a good packet sniffer that could do this?
Also, If the telnet port is closed, is there any other way I could telnet into the server on a different port? Or maybe use some other way to access the server?
I really want to use this program but I dont think my corperate office would like us to be monitoring it using this third party software, but us IT people dont really care...
If there is anything you can help out with, it would be most appreciated.
View 1 Replies
View Related
Feb 21, 2013
I have an [URL] ....
I use htaccess to rewrite it to: [URL] ...
and there is a problem, because I do not get what I need. The result is: [URL] .....
The last / sing dous not even matter, because if I write the url without the ending /, the three dots are still removed.
It looks like everywhere in the url the (in regexp) .+/ pattern is replaced with a simple / sign.
The RewriteRule is very simple, I can not imagine it has anything to do with this, but it looks this:
RewriteRule ^(.*)$ index.php?p=$1 [QSA]
I started to log the rewrite and it looks like if the specific parts of the url are replaced before the rewrite got it.
These are the first few rows of the rewrite log:
add path info postfix: E:/web/service/szerz....odes -> E:/web/service/szerz....odes/action/axgetszerzodesar/ugyfelid/46402/termekid/46032/szerzodesszam/2012.01.01/
strip per-dir prefix: E:/web/service/szerz....odes/action/axgetszerzodesar/ugyfelid/46402/termekid/46032/szerzodesszam/2012.01.01/ -> szerz....odes/action/axgetszerzodesar/ugyfelid/46402/termekid/46032/szerzodesszam/2012.01.01/
applying pattern '^(.*)$' to uri 'szerz....odes/action/axgetszerzodesar/ugyfelid/46402/termekid/46032/szerzodesszam/2012.01.01/'
webserver: Apache/2.2.22 (Win32) PHP/5.2.17
and Apache/2.2.9 (Win32) PHP/5.2.17 (I refreshed it today because of this problem)
os: win7 home premium sp1
It is tested on a linux os too, but there were no such problems.
View 9 Replies
View Related
Dec 30, 2014
I want to match a query string with modrewrite , the problem is that my query_string has a url as value:
%{QUERY_STRING} next=https://play.google.com/store/apps/details?pepe=1
and it doesn't work for me.
input='next=https://play.google.com/store/apps/details?pepe=1'
patttern='next=https://play.google.com/store/apps/details?pepe=1' => not-matched
but if I had to match only the uri , it works , the problem is when I try to add parameters to the query_string url:
http://someurl.com?next=https://play.google.com/store/apps/details?pepe=1
Is there any way to match that kind of query_string?
View 1 Replies
View Related
Jun 24, 2007
When running yum update from ssh, I've got this error:
--> Processing Dependency: perl(String::CRC32) for package: lftp
--> Finished Dependency Resolution
Error: Missing Dependency: perl(String::CRC32) is needed by package lftp
did try to removing the lftp, then yum update running like a charm but cannot re-install it ( lftp ) again.
View 1 Replies
View Related
Oct 25, 2009
I need to do this:
(1) domain1.com limit to 10 connections per IP per 30 seconds but allow if accessing file beginning with x.php such as x.php?981 x.php?o19
(2) domain2.com limit to 10 connections per IP per 30 seconds only if accessing file beginning with x.php but allow if accessing file beginning with y.php y.php?981 y.php?o19 .....
View 8 Replies
View Related
Oct 30, 2014
I've migrated from Apache 2.2 to Apache 2.4 few days ago. It is installed as a service on my Windows 7 developer machine and works in bundle with PHP 5.6.2.
Today I've discovered that GET parameters with Cyrillic characters in URL string are empty.
For example URL looks like this: site.com/search.php?q=%C8%E2%E0%ED%EE%E2
URL-encoded string here is Иванов (%C8%E2%E0%ED%EE%E2)
When I try to use this GET parameter in my PHP script - the variable $_GET['q'] is empty. If I put latin characters in this parameter - $_GET['q'] is taking the corresponding value.
Doesn't look like it's a problem of PHP as I think. Otherwise at least something should stay in the variable. And also I would like to add that this was working absolutely normal on Apache 2.2.
View 9 Replies
View Related
Mar 18, 2013
I don't know how to block a specific QUERY STRING url via .htaccess file, well actually I want to block this type of url :
test.php?q=RANDOMTEXT=&tl=The%20path%20ends
View 2 Replies
View Related
Oct 3, 2014
I am using connection string that written below but it does not work in your host.
<add name="LocalSqlServer" connectionString="Data Source=mssql.mydomain.at; Initial Catalog= mydb; User ID= myuserid; Password= mypassword; MultipleActiveResultSets=True;"/>
Any connection string instance for mssql webadmin ?
View 1 Replies
View Related
Feb 10, 2015
I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...
View 2 Replies
View Related
Jun 27, 2014
I recently upgraded from Plesk 11.5 to 12.0. I also just got an extra IPv4-address for my server (provider is Strato), unfortunately I have some problems with adding it to Plesk.
The IP should be assigned automatically through DHCP, but when I did a Reread IP in Plesk, nothing happened. I tried to manually add the IP, but then Plesk manually configured it and I lost the IPv4-connectivity (IPv6 kept working though).
Now when I want to remove the IP, I get the following error:
Is this a bug or a problem with my specific configuration?
View 3 Replies
View Related
Feb 9, 2015
I installed Plesk 12 on server, and deployed several websites.
If I tried to open ASP.NET Settings on websites & domains of any domain, I've got error:
Internal error: aspnetcfg failed: Version string portion was too short or too long. (Error code 1)
Message aspnetcfg failed: Version string portion was too short or too long. (Error code 1)
File Agent.php
Line 243
Type PleskUtilException
How can I fix this?
View 6 Replies
View Related
Sep 24, 2013
Every day we get a couple off Parallels.Diagnostics.RRD.RrdStorageProvider errors:
Parallels.Diagnostics.RRD.RrdStorageProvider - <log4net.Error>Exception during StringFormat: Input string was not in a correct format. <format>Update to database {0} has failed [{2:HH:mm:ss:ffff}]. {1}</format><args>{cpu-1.rrd, Parallels.Diagnostics.RRD.RrdException: Failed to update RRD database "C:Program Files (x86)ParallelsPleskvarhealthdatalocalhostcpu-1.rrd":ERROR: could not lock RRD
, 00:00:09.6084608}</args></log4net.Error>
Source: ParallelsHealthMonitor
We are running a Windows 2008 R2 Enterprise server with the latest Plesk 11.5.30 update 16.
View 3 Replies
View Related
Feb 21, 2015
I have a client on a dedicated IP, today we needed to downgrade the web hosting plan. As the web hosting plan puts users on a default shared IP, this plan change also changed the dedicated IP to the shared one causing some propagation issues for a small period of time.
I have contacted WHMCS about this asking if they had a way of changing the clients plan but keeping the IP address intact as this could lead to some very undesirable outcomes. They explained that it is not their fault and to contact Parallels.
I know I can change the plan directly in Plesk however by initiating the plan change via WHMCS, everything is automated.
View 1 Replies
View Related