Cron Job And Query String
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
ADVERTISEMENT
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
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
Jan 5, 2015
I want to permanent redirect some .html page from subdomain to main domain WordPress page,Redirect permanent /cat/FSBO76.URL....
View 1 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
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
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
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
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
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
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
Aug 31, 2007
I run a small Fan community / forum that I am looking to move to a VPS server as these are a little cheaper than Dedicated
I have a couple of questions & wondered if anyone could assist?
I need a Control panel as I have had experience with Plesk & Cpanel & do not have any SSH experience whatsoever
I see Cpanel offered in some VPS offers, Would this include things like Fantastico etc?
Would I better suited to a Managed or Unmanaged account? I assume seeing I have no SSH knowledge Managed account would be better
I had looked at a site called nameway dot com & like the look of their VPS offer but would love to hear other peoples thoughts on them (I haven't posted enough to post a url so site is
www dot nameway dot com/resellers-hosting.htm )
If I were to go unamanaged or part managed if there is such a thing, would this mean I would have to upload things like apache for php, mysql etc? or would this still be standard in an unmanaged account if a cpanel or control panel is offered?
View 10 Replies
View Related
Jun 7, 2007
check the dns settings on my server?
I have a feeling there's something not quite right with it
I ran DNSreport.com's query and it said there were a few problems which might cause slowdowns (Which is what i'm experiencing), but didn't go into any detail on how to fix it
They've now put in a fee for doing anymore dns checks, so i'm abit in the dark as to what to do?
I'm running a WHM/Cpanel VPS at present.
View 4 Replies
View Related
Jul 11, 2008
Am just about to emigrate to USA (yay) and I want to keep my xxxxxxxx.co.uk domain active so I can recieve emails etc. I would also like to register a yyyyyyyyy.com domain.
Can anyone advise me on this please?
Can I host a .co.uk in the US?
Can I host a different .com and .co.uk on the same servers?
Can anyone recommend a good reliable, cheapish ($10-$20per month) host that provide MSSQL and asp.net 2.0 support.
View 19 Replies
View Related
Aug 21, 2007
I have a dedicated server with the 'typical' 2 ips pointing to the same instance of BIND on it for its nameservers.
I would like to actually have an ns2 to remove this single point of failure. Even though my 'infrastructure,' such as it is, is only a single server; my research on here and elsewhere suggests that this separate DNS server will make my site appear to be non-responsive when the server is down rather than simply non-existent. This is the behavior I would like to have!
I am still left with questions on implementing this. I know I need either a small VPS account, or an account with a provider such as DNSMadeEasy.com. What is not clear to me is how I would set up such an arrangement with the separate DNS server.
Does anyone have a link to a resource that shows how to do this, or would be willing to do a quick run through here?
I am not technically incompetent but am unfamiliar with this procedure and cannot seem to find documentation.
View 2 Replies
View Related
Jun 19, 2007
I've got a VPS, and its performance sucks.
I've got 18 domains parked on it, with only 4 of those having active websites. There are 3 mailman lists set up, and a further 10 or so email accounts with SpamAssassin active on them.
It also runs cPanel/WHM.
The server itself has 384Mb RAM, with 512Mb burst.
My beancounters are.....
Version: 2.5
uid resource held maxheld barrier limit failcnt
2102: kmemsize 8406834 10504002 30000000 30000000 2722182
lockedpages 0 0 256 256 0
privvmpages 111738 132127 131072 131072 1034096
shmpages 731 747 21504 21504 0
dummy 0 0 0 0 0
numproc 73 96 240 240 0
physpages 55335 75477 0 2147483647 0
vmguarpages 0 0 65536 2147483647 0
oomguarpages 55335 75477 26112 2147483647 0
numtcpsock 24 47 360 360 0
numflock 9 20 188 206 0
numpty 1 1 16 16 0
numsiginfo 0 17 256 256 0
tcpsndbuf 214656 1750788 53687296 61551616 0
tcprcvbuf 393216 786996 53687296 61551616 0
othersockbuf 30416 275664 53687296 61551616 0
dgramrcvbuf 0 55460 53687296 61551616 0
numothersock 24 42 360 360 0
dcachesize 0 0 2273280 2416640 0
numfile 2078 2449 5820 5820 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 10 10 128 128 0
Am I putting too much strain on the VPS with the amount of domains/emails I run through it? Is cPanel/WHM the problem? Is the server config suspect? Are VPS accounts only good for 1 or 2 domains?
View 9 Replies
View Related
Feb 20, 2007
I been logging queries for a whole 3 days and my logs is huge and the problem seems to be my phpBB search table thats causing such problems for me heres what I logged
Code:
# Time: 070219 19:41:53
# User@Host: admin_db[admin_db] @ localhost []
# Query_time: 11 Lock_time: 0 Rows_sent: 0 Rows_examined: 13274745
SELECT word_id
FROM phpbb_search_wordmatch
GROUP BY word_id
HAVING COUNT(word_id) > 259756;
Everything from phpbb_search_wordmatch takes more then 11 sec Query time.
How can I optimze this and lower the Query time to something like 1 or 2.
Some adivce would be helpful me not that good with mysql.
View 1 Replies
View Related
Jan 25, 2007
I currently have my jimpix site hosted by a really good Canadian company called Alentus. BUT, they are based in Canada, and I'm based in the UK.
I am working on a site at the moment which will require a timetable / scheduling facility, so working in the 7 hour time difference between the UK and Canada is a pain.
The package I need is:
ASP Hosting
MySQL Hosting
Use of ASPJPeg and ASPUpload Components
I've not been able to find a UK hosting firm offering these - or haven't spent hours looking for one, so wanted to check here if anyone could recommend a UK firm offering these - and a good one if possible! I have used other hosts before with other web clients, and some have been pretty ropey to say the least!
View 0 Replies
View Related
Jun 29, 2009
what does this mean? its been flooding /var/log/messages
Jun 28 08:12:50 host named[7649]: client 209.86.63.238#9427: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.230#42462: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 200.23.242.203#37863: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#8080: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.202.215.18#35119: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 212.93.151.237#40106: query (cache) 'root.domain.tld/A/IN' denied
Jun 28 08:12:50 host named[7649]: client 209.86.63.231#51272: query (cache) 'root.domain.tld/A/IN' denied
View 5 Replies
View Related
Apr 16, 2009
what causes an imbalanced load on a server? what/who makes a demand that causes something to be unbalanced?how is the problem solved?
View 1 Replies
View Related
Nov 17, 2008
Our local authority is looking into using MySQL database for some internal applications and possibly our website.
Do we need a commercial or enterprise license for this particular use or can we use a free version?
View 2 Replies
View Related
Jul 2, 2008
I've got mydomain.com using my own BIND nameserver hosted on a dedicated server.
I need subdomain.mydomain.com to have a dynamic IP. I know many dynamic DNS providers, but they all require you to change the nameservers of your domain to their own nameservers. Unfortunately I cannot do this - I need mydomain.com to keep using my nameservers.
I therefore need a way to get my nameserver to query a dynamic DNS providers' nameserver for subdomain.mydomain.com. Esentially my nameserver would just copy the IP that the other nameserver returns. Can BIND do this, or if not, any other name-server software?
View 2 Replies
View Related