Hey there.
I'm currently working on a file uploading sript in PHP, but i'm kind of stuck. Users are allowed to upload files such as PHP and JS, but i don't want the scripts to run when a user is trying to download them. Is it possible to block that somehow using htaccess or something?
Thanks in advance.
...
Hi.
I wanna make an app that executes remote scripts. I am going to design it like a Windows Service that listen on tcp/ip port. Every new request I will execute a python scripts.
So I can handle any number of tcp/ip request at same time, so I will need to execute python script in separate threads. How can I do that? Is that simple?
T...
Hi,
After writing deployment scripts from within the ISE, we need our CI server to be able to run them automatically, i.e. from the command line or via a batch file.
I have notice some significant differences between the following calls:
powershell.exe -File Script.ps1
powershell.exe -Command "& '.\Script.ps1'"
powershell.exe .\Script...
I used server-side code to hide a div, but when I click the button tool for another event the div is always open. I'm using ASP.net C# code.
Boss below is my code... i use chekbox for control the div... but when i click button for server side code this div is open
plz solve the problem
****<div id="ChargeInvSlab" style="display:inline...
Hi Everyone,
I am new in Unix
I m doing some changes in .cshsc file, It is shell script which is hidden
So how can i compile this file
Can anyone help me for that Or Give some idea ?
Thanks in advance!!
Riddhi
...
I have a bunch of files containing x and y coordinates, representing time and value (space-separated, but can be amended)
For example, in each file I will have this sort of points:
15:06:59 0.0140
15:07:00 0.0142
...etc....
I want to create a word file (or some equivalent) to show all these graphs.
Currently, I am using Exc...
Say I want a certain block of bash script execute only if it is between 8 am (8:00) and 5 pm (17:00), and do nothing otherwise. The script is running continuously
So far I am using date command.
How to use it compare it current time within the range?
Thanks
...
Hi friends,
I'm developing a website using php, i want to know how can i protect my site from the attack of virus, like malicious scripts, hackers etc.
which are the ways this will happen, and how can i avooid such situations.
is there any protecting facilities in Curl or any technologies.
I'm more concerned about this because one of...
Say I have a bunch of time stamps
As I iterate over these timestamps,
01:23:00
12:34:14
17:09:12
...
I want to include only timestamps between 08:00:00 and 17:00:00
please suggest
...
I'm researching how to best extend a C++ application with scripting capability, and I am looking at either Python or JavaScript. User-defined scripts will need the ability to access the application's data model.
Have any of you had experiences with embedding these scripting engines? What are some potential pitfalls?
...
The best client-side scripting language is....Thanx in advance.
...
Can you please tell me some client-side scripting languages?Thanx in advance.
...
How can I write a simple shell script that will check if someone using display :0? This does not work:
if [ 'who | grep " :0 "' != "" ]
then
echo "hi"
fi
...
Hi all,
I'm trying to access the text of a QLabel using Qt script. Here is what I have:
var mystring;
var mylabel = objectFromPath("...someWindow::Label");
mystring = mylabel.text;
// then do something with mystring
This doesn't work and I don't know what I'm doing wrong. However, it doesn't give me an error.
mystring = mylabel.t...
I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename.
The filenames are in the form [email protected]. If I try to do something like p4 sync a\@b.xml on a mac (or p4 sync [email protected] on windows) it gives the error:
Invalid changelist/client/label/date '@b.xml'
Is there another way to esca...
I am doing a little scripting and i find sometime more power would be nice. Like the ability to keep trying to delete a file with a 1sec delay AND have it portable. I spent some time today translating a bat script to bash. I know i can use php or python but i VERY MUCH PREFER static/compile time checking.
Is there a way to run C# code a...
Hi,
I want to create a script that checks an URL and perform an action (download + unzip) when the "Last-Modified" header of the remote file changed. I thought about fetching the header with curl but then I have to store it somewhere for each file and perform a date comparison.
Does anyone have a different idea using (mostly) standar...
There are some tasks where the obvious language choice is with scripting languages: bash, Python, Ruby, Tcl... however I find it hard to protect a company IP once the product is delivered because the application is never compiled. The client will have complete access to every single line of code.
Which one are the choices to protect a p...
SSMS allows you to right-click a table and "Script Table as"->"Select to". I thought that almost everything in SSMS was done through the SMO scripting engine, but I can't seem to find a way to do this through SMO short of looping through columns and generating the script myself.
Is my Google-Fu weak, or are people just not using SMO for...
I want to move all the files to a new dir. From the command line I can do "mv . newdir" but if I try with this script:
#!/bin/bash -f
#
mkdir newdir
mv *.* newdir
I get the following message:
mv: rename *.* to newdir/*.*: No such file or directory
...