Strip Whitespace From Each Line Of PHP File

Mar 3, 2008

I have a load of PHP files that need trimming down, so for example

Code:
<html>
<?php
$loads_of_stuff = 1231231;
?>
</html>
change to

Code:
<html>
<?php
$loads_of_stuff = 1231231;
?>
</html>

There are 000's of lines, so some awk command or something similiar would be great to execute on each file.

View 1 Replies


ADVERTISEMENT

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View 1 Replies View Related

Modify Conf File Using Shell Script/Command Line

Jan 17, 2006

i want to modify a conf file using commandline or a shell script. for eaxmple:

here is a line from my conf file:....

View 1 Replies View Related

Command Line To Detect Account/file With Video/music

Feb 20, 2007

What command line do you use to detect account storing music/video?

What command line do you search for file that is greater than 1MB?

View 1 Replies View Related

Mod_rewrite Strip Off Php Extension

May 15, 2008

I am trying to figure out how to use mod_rewrite to make my php url's friendly. I have read a few articles but none seem to do what I want.

Here is what I want:

/login.php -> /login
/home.php -> /home
/users/update_profile.php -> /users/update_profile
/users/update_profile.php?id=343242 -> /users/update_profile/343242

Basically just strip off the .php extension, so it seems like php files are actually folders.

View 0 Replies View Related

Apache :: HTAccess Index Strip And Force Www

Apr 1, 2013

My issue is with my code I have it rewwrites my addon domains to the main domain. I have a addon domain exclusion line. But each time I add a domain I have to go in and edit the htaccess. I foresee lots of addon domains in my future.

View 2 Replies View Related

Apache :: How To Strip Unsolicited Chars At The End Of URL HTAccess

Jan 11, 2013

I use WordPress and one Template added .menu to all of my URLs. I changed my Template and i got many 404. I d like to strip the ".menu" chars at the end of each Url and use a 301 redirect for Google to find the new right URL.

I would like to redirect Url like"http://mydomain.com/my-url/.menu" to "http://mydomain.com/my-url/""http://mydomain.com/my-url-2/.menu" to "http://mydomain.com/my-url-2/""http://mydomain.com/my-url-3/.menu" to "http://mydomain.com/my-url-3/"... and so on ....

View 1 Replies View Related

./chkrootkit.sh: Line 2: Cd: /downloads/chkrootkit-0.48/: No Such File Or Directory

Aug 6, 2008

I just try install
but as title I have this error
./chkrootkit.sh: line 2: cd: /downloads/chkrootkit-0.48/: No such file or directory
./chkrootkit.sh: line 3: ./chkrootkit: No such file or directory

I’m edite
pico /etc/cron.daily/chkrootkit.sh
and set it to
#!/bin/bash
cd /downloads/chkrootkit-0.48/
./chkrootkit | mail -s "Daily chkrootkit from Servername" ****@****.com

then I try make test by
cd /etc/cron.daily/

./chkrootkit.sh

and it give me this error
./chkrootkit.sh: line 2: cd: /downloads/chkrootkit-0.48/: No such file or directory .
./chkrootkit.sh: line 3: ./chkrootkit: No such file or directory

View 8 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

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

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Zip From Command Line

Feb 15, 2009

Im trying to zip up an sqlite database backup.

I execute this command

Code:
zip ../d/db/backup.zip ../d/db/09-02-15.sqlite
backup.zip never appears. Instead, I get some random filename in the directory. Like ziOHokOw

If I try to zip a smaller file(last weeks backup) everything runs fine?

Code:
zip ../d/db/backup.zip ../d/db/09-02-08.sqlite
So the 134mb file zips fine, but the 200mb one seems like its failing and im left with some type of temporary file. I tried downloading the weird filename and unzipping it. It has partial info like directory structure, the filename but the actual file inside is corrupt.

View 1 Replies View Related

A Line In My Crontab :: 0 7-23/3 * * * Top.sh?

Jan 13, 2008

I found this line in my crontab file

0 7-23/3 * * * top.sh

when it's running?

and what is it doing?

View 6 Replies View Related

What Is The Command Line

May 10, 2008

What is the Command Line, hoe do I get to it, when I do how do I update Perl to 5.88

View 5 Replies View Related

Open_basedir Line.

Jun 3, 2007

to append the directory that the accounting.php.inc file is located in to the open_basedir line.

How do i do it, where n how do i make these changes.

View 6 Replies View Related

New Internet Line

Jan 15, 2007

i have a win 2003 server and iis6

i have about 300 sites i will change my internet line

to change all web sites ip's to new ip in iis how can i do that?

View 0 Replies View Related

1Gbps Dedicated Line What Does That Mean?

Jun 28, 2008

I do not understand what network: 5 mbps and the traffic 1Gbps mean

=========
CPU Intel Core2-Duo E4500
2.2GHz-FSB 800MHz -L2 2MB

RAM DDR2 PC2-5300 (667Mhz) 2GB
HDD SATA2 250GB (7,200rpm)
LANcard Intel PRO/1000 PF Server Adapter
Rack Type 1U (4.5cm)
Network: 5Mbps
Traffic 1Gbps Dedicated Line
=======

View 12 Replies View Related

$100 Servers On 1 Gbit/s Line

Nov 4, 2009

I remember some companies were offering servers on 1 gbit/s line and 10 TB of bandwidth for $100/month. Or did I dream this one up?

iweb was offering 10 TB/month servers for $99 (I don't remember if it was 100mbit/s or 1 gbit/s line though), they don't seem to offer this anymore.

View 6 Replies View Related

Security Question Regarding T1 Line ..

Jan 14, 2009

This is our setup: We have two locations about 120 miles apart. We have direct connection with a T1 line.

My question: How much safer is our data passing through the same T1 everyone else is using. Most people sending data through the same T1 line are using ISP, so are safer by not using an ISP? .........

View 5 Replies View Related

Linux Get Last Line Of Output

Apr 4, 2008

What command could I use to get the last line of an output?

Heres why...

I use this command:

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
I would like to get just the last line of the output, the output looks like this:

1 203.118.105.*
1 80.195.165.*
1 87.211.51.*
1 91.40.90.*
8 82.2.222.*
213

The reason is because I'd like to get that last figure to place into a file on a certain time period (through a cron), which will then be graphed with PHP.

View 3 Replies View Related

Ip Adjustment Via Command Line

Feb 9, 2008

Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's

/etc/init.d/ipaliases start

How do I replace the old block with the new? I've never done it via command line before.

View 1 Replies View Related

Trixbox Server Line

Aug 3, 2008

if anybody in the community looks for trixbox as the os to be installed on a dedicated server. I am looking for a new line of servers to provide and i am thinking that Trixbox could be one of them.

View 0 Replies View Related

If There's 2 Ethernet Line, How Will The Traffic Be Like

Jul 13, 2007

I've a rack in the datacentre, and actually sharing the ethernet line with another partner's rack.

Something like:

Bandwidth -> Switch 1 -> Switch 2 (partner's rack)
Bandwidth -> Switch 1 -> Switch 3 (my rack)

After a previous uplinks issue, i'm never able to hit above 4Mbps of download speed to my home's cable broadband anymore. I have no idea whether it's because my partner capped my bandwidth from Switch 1, or his usage has increased such that it's affecting my traffic too. I can't be too concerned about it with him, as he's paying the bulk of the bandwidth costs.

For the whole rack, i'm not able to hit above 5Mbps accumulatively, and my normal bandwidth usage is only about 1-2Mbps.

So i'm thinking of getting another line for bandwidth directly from the datacentre to my Switch 3, perhaps starting from just 1-2Mbps only.

How will things improve? Just a silly thought, whether my total available bandwidth can now be 5Mbps + 2Mbps = 7Mbps.

View 10 Replies View Related

Configuring Apache To Run Php Without Shebang Line

Aug 15, 2005

I posted this problem in the PHP forum without a response. I thought this forum might be better.

View 0 Replies View Related

Reset Password With Single Line

Jul 18, 2009

how to reset a password via a single line command? Or script? To make it automated?

View 14 Replies View Related

Tortoise SVN :: Install SVN By Command Line

Oct 3, 2009

how i can install SVN by command line on centos OS

View 1 Replies View Related

KVMoIP - Visual OR Command Line

Jul 9, 2008

is KVMoIP like Remote Desktop or is it just command lines?

View 5 Replies View Related

Garbled Subject And From Line In Emails

Jun 23, 2008

I just moved to a new server and latly I've seen my mail going out like this:

071 Subject: =?iso-8859-1?B?U3BlZWRFYXJuZXIgUG9pbnQgRW1haWwgZm9yIHJhZmFu?=
039* Return-Path: Fast_Lane@XXXX.com
074F From: "=?iso-8859-1?B?U3BlZWRFYXJuZXIuY29t?=" <Fast_Lane@XXXX.com>

Using Exim 4 and that was the same as my old server. I also moved the exim.conf file over to the new server to see if that would fix it, but it didn't.

View 9 Replies View Related

Suggest Me A New Server With 50mbps Line

Mar 26, 2008

This is my current hosting

Virtual Server - $60/Month
100GB disk
1 CPU
512MB dedicated RAM
768MB shared RAM
100mbit unmetered connection

Now, I totally bombed the b/w. I am looking for a webhost that will allow 50-60mbps.

I will be hosting anime, which is unlicensed.

View 14 Replies View Related

Command Line On Shared Hosting

Sep 25, 2008

I have been looking around for a new shared host, I am currently with GoDaddy =( And it would be helpful to have command line access for some things I am trying to do.

Particularly with Zend Gdata API (which GoDaddy has trouble with anyway) Is this reasonable to ask for? I also need at least 150GB/month bandwidth for some relatively high quality streaming video.

View 13 Replies View Related

Website Backup Over Command Line

Nov 7, 2008

We have a dedicated server, with chroot access enabled.

We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis.

Is it possible for us to run a cron job to do this? If so, what commands would we want to use?

We have a local FTP server here, so would like to ftp these backups this machine.

I know it all sounds a little vague, but I just need to know where to get started.

View 3 Replies View Related

PhpBB2 Emailer.php Line 234 Error

Jun 22, 2007

I'm running CentOS with a postfix mail server.

I haven't experienced mail problems on other CMS systems - so the basic setup should be working okay - but apparently not that well.

I get the famous emailer.php line 234 error when some users send PMs to each other... The PMs go through, but the error is annoying none the less.

Does anyone have a decent solution for this?

The phpbb community advise to make a Google search (http://www.google.com/search?q=configuring+php+mail ) or use SMTP just don't do it for me - and I don't want to leave some big hole for spammers.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved