69 Topics

Member Avatar for
Member Avatar for complete

What are the pros and cons of plain PHP or Classic ASP? PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with …

Member Avatar for Dani
1
111
Member Avatar for Chinney

Hello everyone, hope you're having a great day :D I have a project idea in mind but unsure how to go about solving it / unsure if i can solve it. I want to be able to classify messages to categories, where not all categories are known. I want the …

0
116
Member Avatar for koneill

All, Using the standard ac_quicktime.js as shown below - how does one get the video to auto play and then also keep looping: <script language="JavaScript" src="ac_quicktime.js" type="text/JavaScript"></script> <script> function jumpToTime(timeInSecs) { try { var vid = document.getElementById("iaatt_video"); if (vid && ('VIDEO' == vid.tagName) && vid.currentTime) { // video tag, use …

Member Avatar for rproffitt
0
438
Member Avatar for koneill

All, I'm looking for the best practice in regard to a CGI shopping cart - I am working on. What happens is that I have a checkout file that sends an email to our generic mail account and shows a thank you image once someone fills in their information. What …

Member Avatar for koneill
0
387
Member Avatar for cereal

###Simple Advice This is just a reminder. When setting environment variables through **.htaccess**, **CLI** or **dotenv** use `filter_var()` to evaluate a boolean. For example, start the built-in PHP server with these variables: DEBUG=FALSE LOG=TRUE SMS=1 SMTP=0 CONNECT=yes BACKUP=no php -d variables_order=EGPCS -S localhost:8000 And then test through `boolval()`: if you …

0
270
Member Avatar for RudyM

Hi all, I'm trying to replace text in a CSV. The CSV line looks something like this: "Field One","Field Two","Field Three","Field Four" So I tried something like: (Get-Content $csvfile) -replace "Field`n", "Field" | Set-Content $csvfile

Member Avatar for RudyM
0
376
Member Avatar for Niloofar24

Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line is not correct, so what should i type? Getting "ls" is just an example, i infact want to import this …

Member Avatar for Niloofar24
0
251
Member Avatar for Szabi Zsoldos

Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - …

Member Avatar for Watael
0
1K
Member Avatar for maxbummber

I am trying to learn how to use jQuery and I stumbled upon this code and the requirements below: * disable all the cells from "Every Monday" till "Every Sunday" as the initial status; * make "Never" exclusive from all the rest of options in the same row; * make …

Member Avatar for pritaeas
0
351
Member Avatar for tubs1

Hi All, Is GitHub the "gold standard" for finding open source scripts online for people to use in their own development? Where else do people look? Thanks, Tubs

Member Avatar for chriswelborn
0
196
Member Avatar for srinivas88

Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But …

0
169
Member Avatar for Zizou_1

Month CBS GFS HR HR Payroll INCV cbs1 gfs1 hr1 hr2 hrm incv1 Baseline <=97 <=125 >=11 >=19 <=25 10 (6mths) 2013-07 97 89 14 28 30 4 2013-08 58 103 18 6 24 18 2013-09 54 110 11 14 25 17 2013-10 108 129 17 8 23 18 2013-11 …

0
244
Member Avatar for theashman88

@echo off REM This batch file will play with shift command :loop echo %1 shift if %2 == GOTO end goto loop :end exit 0 When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3 I got this 1 2 end was unexpected at this time. Why do I keep getting "end …

Member Avatar for gerbil
0
310
Member Avatar for theashman88

I'm having some error in my code but I can't understand what the problem is. #!/bin/bash ARG_COUNT=$# EXP_ARGS=2 if [ $ARG_COUNT -eq $EXP_ARGS ]; then echo "The correct number of parameters was passed: " $EXP_ARGS"." echo "My name is: "$1 $2"." else echo "Incorrect number of command line arguments. We …

Member Avatar for theashman88
0
272
Member Avatar for mgold

First, just to clear this up, I did not post this is the wrong place. I know the difference between "Java" and "Javascript" I'm working on a project where I want to allow a simple, no intense programming required, way for users to create custom functionality. This is a simplified …

Member Avatar for JamesCherrill
0
367
Member Avatar for MrDavo

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does …

Member Avatar for yuvanbala
0
240
Member Avatar for old_apache

i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: comm -12 file1 file2 how do i do that?

Member Avatar for old_apache
0
182
Member Avatar for old_apache
Member Avatar for pooh1234qwerty

i am a beginner. i need online tutorial for shell scripting. there are many on the web.. which one to choose??

Member Avatar for DoRight
0
227
Member Avatar for gtam

Hello I'm writing a script to get content of web pages on different machines and compare them using their md5 hash hear is my code #!/bin/bash # Cluster 1 CLUSTER1_SERVERS="srv01:7051 srv02:7052 srv03:7053 srv04:7054" CLUSTER1_APPLIS="test/version.html test2/version.html test3/version.jsp test4/version.html test5/version.jsp" # Cluster 2 CLUSTER2_SERVERS="srv01:7055 srv02:7056 srv03:7057 srv04:7058" CLUSTER2_APPLIS="test/version.html test2/version.html test3/version.jsp test4/version.html" # …

Member Avatar for Watael
0
227
Member Avatar for ziyaddinsadigov

Hi, I watched some shell scripting codes and I saw that there is a command, which name is LISTEN. What is the logic of this command and how I can use it?

Member Avatar for rch1231
0
162
Member Avatar for ziyaddinsadigov

I saw that github commands in linux terminal always uses word "git" before all it's commands. How to use my own word for my shell script? for example, $ git commit or $ git status

Member Avatar for L7Sqr
0
184
Member Avatar for axymak

Friends I want to show results on my website from the other website. It uses the URLS to shows the result as for Roll number 123123 the results page is www.remotesite.com/B/Res/123123.html like wise for the number 124124 the results page is www.remotesite.com/B/Res/123124.html I want to add such a javascript in …

Member Avatar for pritaeas
0
200
Member Avatar for dharmendra1986

I have a .sh script which is as follows. #/bin/bash ssh uname@111.XXX.111.XXX | mysqldump -u uname -p test_db>/home/dm/Downloads/test.sql # script ended I want to extract the script from the server "111.XXX.111.XXX" and keep it in a server directory but I do not want to log in to the server. So, …

0
160
Member Avatar for dharmendra1986

I have a shell script like as follows #!/bin/bash # Downloading Dumps from the production server. Date=`date +'%d-%m-%y-%H-%M'` BACKDIR=/home/tmp/Backup #IP Address of the Server Host="localhost" #User Name USER="root" #Database Name DBS="test_db" echo "Backing up MySQL databases..." echo "Time: `date`" mysqldump -h $HOST -v --user=$USER --password=$PASS $DBS test_tbl1 test_tble2 ...... > …

0
129
Member Avatar for observ

I have an batch script that needs to concatenate several hundred of lines (72 chars) in one long line for base64 to decode. He used line reading because of the windows XP line limit (8191 chars per line). The script currently has 2 issues at result: It exports with 2xquote …

0
174
Member Avatar for saamsonn

#!/bin/csh echo -n "Enter a value> " set a = $< echo -n "Enter another value> " set b = $< echo "Doing mathematics> " @ r = $a + $b echo the sum a + b is $r tried runing this script and I keep getting this error report …

0
133
Member Avatar for philjon-aris

Im a newbie in PHP and I want to create a simple webpage app for my website, I was able to produce this page base on a tutorial here. <?php $con = mysql_connect("localhost","*****","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("*****", $con); $result = mysql_query("SELECT * FROM …

Member Avatar for philjon-aris
0
888
Member Avatar for nahsik

I am learning about networking and programming. I am trying to be a simple IM application. What i am trying to achieve having a server application route messages between computers over the internet creating a simple instant messenger. However i can't find any sort of tutorial for that. I want …

Member Avatar for extr3mex
1
313
Member Avatar for Doogledude123

when trying to output the string of a variable to a text file, the string try's to run and therefore pops up like this, %localDrive% 2>>fileCompare.log 'C:' is not recognized as an internal or external command, operable program or batch file. Any ideas?

Member Avatar for HTMLperson5
0
255

The End.