Archive

Posts Tagged ‘filename’

Analyze And Fix .htaccess File.

December 28th, 2011 Comments off

I use PHP, MYSQL.

I’m trying to redirect all files with name1_name2-filename-filename in them to name1-name2-filename-filename.

(Note the original file names are not real file names. They’re in place of redirect script.)

However, when I add this command I get an error, that there is too many redirects. We currently have in place a few redirect commands in the .htaccess file.

I need you to analyze and tell me how it can be fixed.

Black And White Product Photo Catalog From Scentuouscents.co

September 20th, 2011 Comments off

I would like for you to create a black and white photo catalog from my website of scentuousscents.com

I have the attached info that I need included in this booklet, and I would like a sample of the job you can create. If you do not read the project in its entirety please do not respond. I do not want questions of what size,and how this is supposed to be done please. I would like this project created in letter size, so I can print from my own printer, one catalog with prices, and one without.

Attached File: https://www.scriptlance.com/f/?131515398161219092
Filename: incense list 2011.txt
Size: 1 KB

Attached File: https://www.scriptlance.com/f/?131515409080603235
Filename: Scentuous scents wax tarts.txt
Size: 206 bytes

Attached File: https://www.scriptlance.com/f/?131515417069548494
Filename: womens perfume list.rtf
Size: 928 bytes

Attached File: https://www.scriptlance.com/f/?131515419492816423
Filename: Scentuous Scents Incense List.rtf
Size: 935 bytes

Attached File: https://www.scriptlance.com/f/?131515432426872691
Filename: Nice Oil list #1.rtf
Size: 1 KB

Attached File: https://www.scriptlance.com/f/?131515560191482360
Filename: men cologne list.rtf
Size: 778 bytes

Nginx Filename Rename

September 13th, 2011 Comments off

Hi,

I have created a public proxy with nginx but when i download files the filename is not the original but simply “download”.

I need a rewrite rules that rename the filename with $args of url.
Eg:

site.tld/?url=proxed.tld/file.zip

the file.zip will be downloaded as “download” name, not with file.zip name. So i need a rule that rename the file with another with:

site.tld/?url=proxed.tld/file.zip&=filename.zip

This is very easy for who know rewrite of nginx.

Facial Tattoo

June 20th, 2011 Comments off

Reference 1

Attached File: https://www.scriptlance.com/f/?130856335923566734
Filename: linesoftattoo.jpg
Size: 30 KB

Reference 2

Attached File: https://www.scriptlance.com/f/?130666350080124943
Filename: tamoko4-big.jpg
Size: 7 KB

Image I want copied below

Attached File: https://www.scriptlance.com/f/?130666319729278054
Filename: MOKO.psd
Size: 1.1 MB

Need Quick Fix To Php Plugin

February 12th, 2010 Comments off

I am using a plugin called “Magic Fields” with WordPress, and it is working great with one exception…

When I upload a file, the Magic Fields plugin changes my filename, like this…

ORIGINAL FILENAME:
my-file-name.jpg

NEW FILENAME:
1266031848myfilename.jpg

I do not want it to add numberes to the front of the file name. And I do not want it to remove the hyphens.

I am pretty sure the change needs to happen to the attached file (RCCWP_Constant.php). But I do not understand PHP code very well. Please take a look at the attached file and see if you can see what would need to be changed to keep my filename from changing.

Oh, and I need it ASAP (within two hours if possible).

Thank you very much.

Categories: PHP, Wordpress Tags: , , , , , ,

Wsh Script Or Visualbasic

January 31st, 2010 Comments off

Windows Script Host I need a .vbs script that reads

This script must run local on a windows 7 pc
I was thinking about a wsh script in combination with vb.

Files:
File 1 (template)= Template a fixed file containing a template that is to be replicated.
File 2 (var) = a file containing only a list off variables with a value this is not fixed
can be 1 or 9 or 100
File 3 (list) = a file containing a list of words or url’s

File 3 (list)
Has to be read line by line and for each single name make a new file under the name it
read out of the list.

Example File 3 (list)
mouse
cat
dog

Creates 3 files (here 3 files if the listing contained 50 or even 5000 it would create 5000 files)
mouse.txt
cat.txt
dog.txt

The extension txt is stored in the File 2 (var):
Example of File 2 (var):
filename_extension=”.txt”

Standard variables in the File 2 (var) are:
filename_extension=”.txt”
filename_before=”"
filename_after=”"

If filename_before and filename_after are given a value:
Eample:
filename_extension=”.txt”
filename_before=”aaaa_”
filename_after=”_zzzz”

OUTPUT wil be:
aaaa_mouse_zzzz.txt
aaaa_cat_zzzz.txt
aaaa_dog_zzzz.txt

If variables for front and after are empty nothing is appended to the file name
only before or only after is also possible ofcourse.

Eample:
filename_extension=”.txt”
filename_before=”"
filename_after=”thisstringisappended”

OUTPUT wil be:
mousethisstringisappended.txt
catthisstringisappended.txt
dogthisstringisappended.txt

Example off an template the template contains text and variables:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”

“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>var1</title>
</head>
<body>
<H1>var2</H1>
<p>This is some text for the var3 off template for file %filename%</p>
</body>
</html>

As you can see there are some var(x) declared in the template.

If the file 2 (var) would be like the following example:
filename_extension=”.html”
filename_before=”"
filename_after=”_animals”
var1=”These are all animals”
var2=”Big or small”
var3=”EXAMPLE”

The output off this would be for the first line = mouse the file will be mouse_animals.html

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”

“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>These are all animals</title>
</head>
<body>
<H1>Big or small</H1>
<p>This is some text for the EXAMPLE off template for file mouse</p>
</body>
</html>

As you can see the variables are replaced with the text declared in the file 2(var)
These variables can be anything.
var3=”EXAMPLE” could be fftt99=”EXAMPLE” or pat88=”EXAMPLE”

ATTENSION !!!
%filename% is File 3 (list) = a file containing a list of words or url’s

Example File 3 (list)
mouse
cat
dog

So if it was at the 3e in the list:
%filename% in the template wil be dog

Only the line as example of the template
<p>This is some text for the EXAMPLE off template for file dog</p>

File 3 (list) can also contain url’s

If it contains a list off urls.

Example
http://www.microsoft.com
http://www.google.co.uk
http://www.yahoo.com

Then I must be able to use

http://www.microsoft.com
www.microsoft.com
microsoft.com
microsoft

In the template appending
A solution is to cut the string in parts so I can place the following

http://www.microsoft.com = %filename_full%
www.microsoft.com = %filename_www%
microsoft.com = %filename_ext”
microsoft = %filname% this one is used for the creation of the filename
that would be microsoft.html

Moet nog bij een beschrijving van als de list urls bevatten dat er een optie is
om de url http://www.microsoft.com zo af te drukken of
www.microsoft.com of
microsoft.com of
microsoft

In short its basicly that:
File3(list) a list of names or url’s that is used to create the name off the
new file created from the template.

File2(var) are variables that I place in my template file so the value
of these variables are replaced in the text off this template.
Where only %filename% and the %filename_xxxx% are the name or url from the File3(list)

File2(template) is simple the template with the variables so I can replicate them
with the values I have given in the Fil2(var) and the names or url’s from file3(list).

I need to write the name off the template, list and var file in a box or
maybe it can be placed in the var file, in short I have to be able to give the location and name.

Install & Configure Dompdf

January 23rd, 2010 Comments off

I need someone to install dompdf on my server and configure it to a simple function makepdf($html, $filename). Where the $html variable is all of the html needed and the $filename variable is the filename, including the extension (.pdf). Since dompdf is already developed and functioning, this shouldn’t take longer than an hour. You can view dompdf here: http://www.digitaljunkies.ca/dompdf/examples.php#demo

Custom Bwcheck Plugin Mod

January 23rd, 2010 Comments off

Reference: http://flowplayer.org/forum/2/34820

As mentioned in the above URL, I’m trying to securely stream videos over RTMP and also detect the visitor’s bandwidth to serve an alternative video depending on their connection speed.

The Flowplayer BWCheck plugin currently uses a simple routine to determine which video to display by looking for the configured bitrate options into the video filenames.

For example if you look at the code posted at the reference URL above it would be:

filename_40.flv
filename_150.flv
filename_400.flv
filename_700.flv
filename_1000.flv

The problem I’ve run into is, because we want to use secure streaming, we have to append a security hash to the end of the video filename.

For example …

filenameforflv?h=5f2757f9b2614dfd8334ea471ea87a28

and because of this, BWCheck is unable to dynamically determine the URL of the correct file to play for the visitor.

So I need a modified version of BWCheck that will allow us to specify alternative video files in a way that is secure, that can’t be accessed by visitors (XML config with .htaccess protection?) and that is easy for non-technical assistants to be able to do for multiple videos on our site.

BWCheck Source Code Available Here:

http://code.google.com/p/flowplayer-plugins/source/browse#svn/flash/bwcheck

Categories: Flash Tags: , , , , , ,

Fix Parse Script

January 22nd, 2010 Comments off

I am using a parser for links for sites such as rapidshare and megaupload. Anyway I have a filechecker that checks for filenames and filesizes for megaupload.com and depostifiles.com but its not working correctly. megaupload will not grab the filename it stores filenames like this 9768G1E4 from links like http://www.megaupload.com/?d=9768G1E4 but it was suppost to store Master.rar from that link. Megaupload grabs the filesize ok so just the filename needs fixed. with depositfiles it doesnt seem to pick up filename or filesize so that needs fixed too. I just need someone to look at the script and fix those problems so that i can store filenames and filesizes for megaupload.com and depositfiles.com, but remember megaupload grabs filesize just fine and just needs filename grabbing fixed.

Whoever does this should have experience with crawler scripts and be able to look at the script and fix it without access to my server. If you think you can fix this script i am looking for someone asap. Thanks.

Ebook Descriptions

November 24th, 2009 Comments off

We have around 500 products, all RAR files. Each either contains an eBook, a script or a small program. According to the filename it can most likely be interpreted what it is.

We require a small 50 to 100 word description for each one, and it must be formatted in the following way

FileName.RAR – This is an example filename description, and is the center of the universe.

Example: 20InstantTemplatesV1.RAR

Result: 20InstantTemplatesV1.RAR = This is volume one of the 20 Instant Templates collection, inside are templates for WordPress, Joomla, and static HTML pages.

(All the information can be found in the RARs).

Very easy project, 500 products will be a lot of bandwidth, around 5gb or so. Be prepared.

Do not format the text, a simple WordPad document with 1 product per line should suffice.

Edit Php Function Add Javascri

September 2nd, 2009 Comments off

Autobidders will be removed and prevented from bidding on any of my future projects. Please put the word “apple” in your bid so I know you are a human reading this post.

Please see the PHP source code of the functions.php file I need modified.
http://www.dew-code.com/source/?filename=./dew-newphplinks.v.2.1.0.1b.sef/include/functions.php

Near the bottom, I need the draw_sites and the draw_search_sites functions changed to create a plain HTML HREF to $sites_array[site_url] instead of linking to /out.php?ID=$sites_array[site_id] BUT, I need a java/javascript that silently calls /out.php?ID=X so the outbound click is counted.

I’ll pay once I have a working file, but budget is small, sorry
Currently /out.php checks the ID of the site, incirments the click count in a database, and
does a 301 rediirect to teh proper site.

So the related files are …
http://www.dew-code.com/source/?filename=./dew-newphplinks.v.2.1.0.1b.sef/include/functions.php
http://www.dew-code.com/source/?filename=./dew-newphplinks.v.2.1.0.1b.sef/out.php

If you like, you can download the script that these files are part of and install it
http://www.dew-code.com/component/option,com_jooget/Itemid,27/task,detail/id,7/ For questsions regarding the script, please see the FAQ
here http://www.dew-code.com/content/category/3/18/25/

Art-in-progress

August 31st, 2009 Comments off

I need a video script in php language to available for users a form with upload field that work in background process.

Example:
I did the registration to website and i’ve an account, after I go into my control panel and I go into the video section where I can upload a video
through a little form with only one field (file field) for make upload my video file. When I push send button form the file go to the videoscript in php that transform the file receved and trasform in extension .flv (I’ve installed into my server all modules for video sharing: LAME MP3 Encoder
Libogg + Libvorbis
Mencoder and also Mplayer
FFMpeg-PHP
GD Library 2 CGI-BIN)

This is the script that I use :

<?
ini_set( “max_execution_time”, “3600″ ); // sets the maximum execution time of this script to 1 hour.
$fileName = $_FILES['video']['name']; // get client side file name

if( $fileName ) {
// Check File Type
$fileNameParts = explode( “.”, $fileName ); // seperate the name from the ext
$fileExtension = end( $fileNameParts ); // part behind last dot
$fileExtension = strtolower( $fileExtension ); // reduce to lower case

if( !$fileExtension == “mpg”

Image Converter Tex Xet To Dds

August 14th, 2009 Comments off

We are in need of an image converter to convert current images that are in TEX/XET format to DDS for editing and then back to TEX/XET.

Part 1.
——————————————————————————————————-
The images are currently stored in a modified KPAC using the following layout.
(SEE ATTACHMENT #1)

————————————————
struct KCAPHDR {
unsigned char signature[4]; // “KCAP”
unsigned long file_count;
};

struct KCAPENTRY {
unsigned long filename_length;
char filename[filename_length];
unsigned long length;
byte unknown1;
};
————————————————

The requested program does not need to deal with the above information as we can create a program to unpack and pack the images afterward.
——————————————————————————————————-

Part 2.
——————————————————————————————————-
This is to be the main function of the requested application. The image structure is currently unknown, we are assuming that the engine used with the images is the Serious Sam engine, but no tools currently available will convert it or load them successfully. The following information is provided from a 3rd party source about this specific image format.

————————————————
That game is using standard Direct3D pixel formats, RGB/RGBA/DXT1/DXT3. The latter two are a lossy compression method. Some of the textures are also encoded with multiple mip-levels.

The structure of each texture is obvious:
TEXHDR = { sig, ?, type, width, height, mip_levels, ? }
MIPHDR1 = { width, height }
DATA1
MIPHDR2
DATA2

The length of each data section is not specified but can be deduced from the dimensions and bits-per-pixel of the format (3, 4, 0.5, 1).
————————————————
(SEE ATTACHMENT #2)

The code and methods used to create the requested application does not mater, as long as it functions correctly in the end.
——————————————————————————————————-

Final Notes.
——————————————————————————————————-
Attachment #1: KPAC example with 2 packed images.
Attachment #2: Image example once removed from above mentioned KPAC.
No additional code about the image format can be provided.
Please do not bid on the project if you are positive you can complete the task.
If you have further questions please post them and I will take the time to address each one time permitted.
——————————————————————————————————-

Best Regards.

Javascript For Adobe Acrobat 2

May 5th, 2009 Comments off

JavaScript programming for Adobe Acrobat 8.0+

We would need source codes and files for the application, so we could do some additional changes or adjustments. As stated in the description, it will be possible to change some values in the scrolling lists. They are so specific that some particular administration should not be developed. It would be easier if we can edit it ourselves in the source codes.

Criteria:
- Price
- Delivery time (by May 7th if possible, May 19th at the latest)
- References

Description:
——————————————————–

1. use active opened PDF file in Adobe Acrobat; if there is no opened document, use Open PDF dialog with browse

2. Input variables in form:
NR = Number (01-99) (default: empty)
TY = Type (Re;3K;1K;V1;V2;N1;N2) (default: empty)
CO = Country (CZ;SK) (default: empty)
PR = Proof version (1-9) (default: empty)
DIR = Directory for files (Internal=INT|External=OUT) (default:
internal)
Editable (Yes|No) (default: Yes)

3. Save every page from opened PDF as single page PDF
- if switch Editable is Yes, than every single page PDF should be “Enabled for Commenting and Analysis in Adobe Reader”
- if switch Editable is No, than every single page PDF should NOT be “Enabled for Commenting and Analysis in Adobe Reader”

4. New files should be saved into directory and filename on variables:
Directory path construction:
\servercustomerproof%DIR%%NR%-%TY%-%CO%Proof-%PR%
Examples:
NR=11; TY=Re; CO=CZ; PR=1; DIR=INT
\servercustomerproofINT11-Re-CZProof-1
NR=12; TY=3K; CO=SK; PR=2; DIR=OUT
\servercustomerproofOUT12-3K-SKProof-2

5. Final filename construction:
%NR%-%TY%-%CO%-P%pagenumber%
Examples:
NR=11; TY=Re; CO=CZ; PR=1; DIR=INT
11-Re-CZ-P01.pdf; 11-Re-CZ-P02.pdf; 11-Re-CZ-P03.pdf; 11-Re-CZ-P04.pdf …

NR=12; TY=3K; CO=SK; PR=2; DIR=OUT
12-3K-SK-P01.pdf; 12-3K-SK-P02.pdf; 12-3K-SK-P03.pdf; 12-3K-SK-P04.pdf …

6. Other remarks:
%pagenumber% = Page number in source multipage PDF document

Source multipage PDF document may contain non-continuous page numbering!
e.g.: pages in PDF: 2,3,6,7 > filenames: XXX-P02.pdf, XXX-P03.pdf, XXX-P06.pdf, XXX-P07.pdf

For pages 1-9 there should be used 0 for correct filename sorting.
There is not expected more pages than 99.

If there is already file with the same name in directory, it should be overwritten without asking.

Main part of directory path (\servercustomerproof) should be editable in JS source code by our admin.
Values: Type, Country and Directory should be editable in JS source code by our admin.
Value Number will be written by user, it should be checked for correct input (only number from 1 to 99)

Web2.0 + Small Mysql Db

April 2nd, 2009 Comments off

Hello, I need a very small project that need:
1) Simple Web2.0 Design
2) Database MySQL to manage data

What I need to do ?

1) Web2.0 Design:
a very simple layout (fixed width) of only 1 webpage (the homepage) that need to contain:
a) Header (very simple, it not need words like logo or something, just a simple header without logo)
b) 2 Buttons (Home – Contacts)
c) Search form (to search a file)
d) Under the Search form it need to have 2 columns (49% each size) that will contain:
e) Latest Added Files (extracted from MySQL)
f) Most Viewed Files (extracted from MySQL)

2) MySQL Database to handle data:

a) I need to insert 2 parameters:
b) File name (imagetest.gif)
c) Description with html tags (&lt;b&gt;Image of Cartoon&lt;/b&gt;….)
Conditions:
d) If the file name exists then UPDATE the second parameter (description) else INSERT the filename and the description.

e) I do NOT need an Admin Panel for manage tables/values.
f) The filename need to be clickeable, so if an user click over one filename listed on “Latest Added Files” or “Most Viewed Files” it will print (under the search form) the filename and the description.
g) If an user search a file, the result will be printed under the search form

Note:
The results of a search or the result of a file will be printed between the search form and the Most Viewed Files / Latest Added Files columns.

An example of a very simple web2.0 design for a search homepage is like:
http://www.iconfinder.net/

Bear