15,897,291 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by G4mm4R4y (Top 106 by date)
G4mm4R4y
30-Jul-16 14:59pm
View
I've confirmed the audio is fine
G4mm4R4y
30-Jul-16 14:53pm
View
Although anything is possible, I doubt they are corrupted... See how the numbers are out of order? That's because I tried switching them to see if that's the case.
I'll try and get an .ogg extension for wmp so I can see if it's the files.
G4mm4R4y
30-Jul-16 14:31pm
View
"Note: I am aware not all pieces will play after one other, I'm waiting until this issue is fixed before continuing."
If this wasn't clear enough, I apologize for the confusion
G4mm4R4y
17-May-15 18:18pm
View
I've already explained why... I have a function that contains calls to other functions to do other things on the site. I want to be able to easily add to this, and if i split them, i can have all the calls be edited by php...
G4mm4R4y
16-May-15 23:03pm
View
This site is not for people to do things for you
G4mm4R4y
16-May-15 23:01pm
View
No, there is nothing wrong with the way it was, as that wouldnt have the variables value but the actual variable name
G4mm4R4y
16-May-15 22:58pm
View
This is a bit old but still this is in no way "absurd" I want to have part of the function ultimately in a different file so i can add lines to the code with PHP. If I could split the code like this it would tremendously improve the possibility to do this. Would it help if I showed you the website and code in question?
G4mm4R4y
16-Feb-15 15:26pm
View
The point is i would be able to add more code to a certain part of a function by editing a file with PHP
G4mm4R4y
16-Feb-15 1:57am
View
I would have it more like this:
<script>
function(){
//stuff
</script>
<script src="script.js"></script>
script.js would contain simply this:
//other stuff
}
G4mm4R4y
16-Feb-15 1:55am
View
The exact reason I stated above...
G4mm4R4y
26-Jul-14 12:32pm
View
I seriously apoligize for how idiotic i was... but seriously nl2br() works perfectly here...
G4mm4R4y
26-Jul-14 12:17pm
View
Still freezes, ill reupload it now, with your code.
G4mm4R4y
26-Jul-14 12:15pm
View
I dunno why the link does that but the link is allappsuite.tk/war/index.html
G4mm4R4y
26-Jul-14 12:14pm
View
Ill try that now
G4mm4R4y
20-May-14 17:56pm
View
This worked, thanks!
G4mm4R4y
18-May-14 15:55pm
View
Obviously you need to read, all I said is that creating a virus is not illegal. Therefore it is legal. So a virus is completely legal, until you start distributing it.
G4mm4R4y
18-May-14 15:45pm
View
A virus is not illegal, distributing it is. Learn your facts before spreading your hate on a question
G4mm4R4y
21-Mar-14 16:06pm
View
i got it working with this:
function menu(x){
if(x==1){
x=x-1
document.getElementById("menu").innerHTML="
<ul><li>Home</li><li>About</li><li>Profile</li><li>Coins</li><li>News</li></ul>
";
}else{
x=x+1
document.getElementById("menu").innerHTML=" ";
}
document.getElementById('mimg').innerHTML='<img id="himg" önclick="menu('+ x +');" height="40px" width="40px" src="menu.png" />'
}
G4mm4R4y
21-Mar-14 16:02pm
View
the exact code above i posted does not work, neither does yours... Idk whats happening then because i tried it in chrome, firefox, and ie.
G4mm4R4y
21-Mar-14 15:51pm
View
it doesnt work on chrome and internet explorer, isnt there any way without jquery?
G4mm4R4y
21-Mar-14 15:50pm
View
... A "Is not cross browser" is not enough. Does it work on chrome?
G4mm4R4y
21-Mar-14 15:48pm
View
Nothing worked...
G4mm4R4y
19-Nov-13 17:57pm
View
The OP posted an answer that uses ftp so what im saying could work?
G4mm4R4y
19-Nov-13 17:42pm
View
Sorry more of a typo i use dos a lot and get it confused with ms-dos. Nothing alike really. Ms-dos/batch has manny more commands. Another application or not it is still integrated into batch. I would think if this file is a zip file you could take, filezilla, for example and download/copy it from the web directory. It wouldnt be like using http to get to it but it would get the job done. -Jayden S
G4mm4R4y
19-Nov-13 17:23pm
View
What im saying is if he knows the ftp information could he download the file. FTP clients allow you to go both ways, does the dos ftp command do that also? -Jayden S
G4mm4R4y
19-Nov-13 17:14pm
View
I dont do anything with batch anymore but cant the ftp do that? I just thought about this. -Jayden S
G4mm4R4y
19-Nov-13 17:09pm
View
We dont write the code we help solve issues with the code. With that out of the way try the onclick attribute like this 'onclick="javscrfunc()" '
G4mm4R4y
19-Nov-13 17:03pm
View
Im not sure there is any original batch commands to silently open a browser and downloading without you knowing it. As of unzipping it there is probably many ways, google it! - Jayden S
G4mm4R4y
19-Nov-13 16:40pm
View
With the script i have it can never go above 2000 without hitting 2000 first. Good tip though.
G4mm4R4y
19-Nov-13 16:31pm
View
So 1. Use parameters, ill do that. . 2. Use the getElementById once returning the result. 3. Yes it will block everything but this ends up pausing the page in the original code. Ill upload it to this page(NOTE: This is a working version with no alerts): http://webagontrail.host56.com/ The goal is to reach the desired place and display alerts when you reach it or if your at a landmark.
G4mm4R4y
18-Nov-13 22:13pm
View
Actually I should've clarified... The togo variable isn't meant for that its actually a counter. It works and all but I just set the miles to 2000 so I didn't have to increment it and make the code longer. In the original code all the variables are changing usually. Originally there are multiple if statements seeing if the mileage is like 40 and then alerting the user of said mileage. That and the other if statements are wrong in my code somehow
G4mm4R4y
18-Nov-13 22:04pm
View
I meant to reply, see comment below
G4mm4R4y
18-Nov-13 22:03pm
View
I thought I did reply, I apologize to Sergey and will reply. I can't check the code at the moment.
G4mm4R4y
18-Nov-13 21:57pm
View
The goal is to alert the user when his mileage goes up to 2000. It checks the mileage every 5 seconds. I thought this is the proper way to layout if statements?
G4mm4R4y
5-Nov-13 20:53pm
View
"Dreamweaver reported no errors" and "I tested it"
G4mm4R4y
5-Nov-13 20:29pm
View
Oh if an http server with php is your means of a way of debugging thats already up, i tested it and it gave the message "Congratulations! Your file was accepted." But the file doesnt appear in my local web directory or its following subfolders. Dreamweaver reported no code errors.
G4mm4R4y
5-Nov-13 20:24pm
View
I replied to you because i was giving an example based on what you said notice "Elaborating on THIS" and using your numbers.
G4mm4R4y
5-Nov-13 20:16pm
View
Im not sure i have anything to debug with. Im limited to wamp server, notepad++, and dreamweaver which may be able to debug but im not sure how to work dreamweaver.
G4mm4R4y
5-Nov-13 20:11pm
View
Elaborating on this,
For 1: Consider the fact the session usually ends when the user exits the site
For 2(and 3): Consider storing a date in a database or flat file system. Then say if its after --/--/-- than unlink(--)
Hope this helped
-Jayden S / http://www.web-coin.org/
G4mm4R4y
5-Nov-13 19:53pm
View
What do you mean by validate? Do you mean make sure something was inputed or make sure what they put in was legal information. For it to be legal information it wouldnt really be possible. If you want to validate checking if it is like, a full name not a name like George G when it should be George Gionnochio. Than use a little php or javascript validation.
G4mm4R4y
15-Aug-13 23:45pm
View
Really, im lost? Allow me to give a link to a working model. I will gladly.
G4mm4R4y
12-Aug-13 21:45pm
View
The code wasnt wrong. No errors and is what i expected. Therefore it is right. What IS wrong was that i couldnt find a way to add br tags but i now know to use the nl2br() function.
G4mm4R4y
12-Aug-13 19:21pm
View
I have a question, i know this is an old question but why was the nl2br() function mentioned?
G4mm4R4y
8-Aug-13 3:09am
View
See this link: http://www.codeproject.com/Questions/632033/i-want-to-create-a-comment-box-in-which-we-post-co
G4mm4R4y
8-Aug-13 3:08am
View
Im confused, i code html fairly well, and i dont get what an element such as <html5:input>is BUT try one or both of these: take the false off autocomplete, use lowercase.
G4mm4R4y
8-Aug-13 3:05am
View
Deleted
Bro, either jquery php or mysql. I cant do jquery or mysql, im not even sure jquery can do it so that leaves mysql. Well you cant use mysql with php so... You need php!
G4mm4R4y
7-Aug-13 14:12pm
View
I updated my answer to show the code
G4mm4R4y
7-Aug-13 13:58pm
View
Ya basically solved i tested my site, it has a sort of web currency and people share it, im surprised no issues with the php happened when i used it to store give and recieve coins...
G4mm4R4y
7-Aug-13 13:57pm
View
Wait you need the code too? I will gladly give it very probably now. But this site is supposed to point out problems in your code not give you code.
G4mm4R4y
6-Aug-13 18:18pm
View
Sorry to waste your time but i just abandoned the array and used seperate txt files for passwords.
G4mm4R4y
6-Aug-13 15:30pm
View
Okay just abandon that issue I have a new way, but it also returns negative but for some different reason. Can you help me? Code:
session_start()
if((isset($_SESSION['logged']))
and
($_SESSION['logged'] == 'yes')){
// DO NOTHING
}
else {
echo <<<eof
<script="">
alert("Sorry you must be logged in to view this.");
window.history.back();
</script>
EOF;
}
$_SESSION['logged'] is defined and is set to yes
Why isn't it working THIS time
G4mm4R4y
6-Aug-13 14:45pm
View
... I just get confused easily, im new at php, I basically don't know any commands(functions). This is why I am confused!!
G4mm4R4y
6-Aug-13 14:38pm
View
By input format you mean instead of .php use .txt? As a separate array element isn't that what happens when you put a new line?
a => a
,b => b
A good why to explain would be with commands If you could
G4mm4R4y
6-Aug-13 14:22pm
View
This is what im trying to say: Isnt it already being parsed into an array of strings by using the array() function
$passwords_array = array($passwords);
G4mm4R4y
6-Aug-13 14:15pm
View
I too, do not know what he (or the error) is trying to say
G4mm4R4y
6-Aug-13 13:45pm
View
A string: A group of letters usually in a variable. I get it only one thing of text is basically what you are saying. I may have phrased that wrong. But only $passwords is a string. One string. A string the has this:
'username' => 'password'
,'username1' => 'password1'
Yes I get it. THAT variable is just a string. But the string is turned into an array:
$passwords_array = array($passwords);
So there we go its an array
Therefor $passwords_array is not useless, correct?
G4mm4R4y
6-Aug-13 13:18pm
View
Things can be free... Ill give any code for free
G4mm4R4y
6-Aug-13 12:45pm
View
Im confused: I want through line by line. I think it makes sense and should work. $passwords is the string of the passwords file. $passwords_array makes an array from the string. next it checks if the username(The key, is better to say) is in $passwords_array. It also checks if the username key is equal to the password value. But then it turns out false. Why is that? What am I explaining or getting wrong?
G4mm4R4y
6-Aug-13 1:31am
View
I've got the code online by stumbling across it, I figured I would give it a try, it's in php for I have no idea at all either but I figured it would not matter, how do I fix it excactly?
G4mm4R4y
4-Aug-13 20:17pm
View
Its not asking if a code is right its asking, what code can i add.
G4mm4R4y
4-Aug-13 15:15pm
View
No no code is wrong. No errors or anything i simply want it to be broken or something or someway how is this not clear? :\
G4mm4R4y
4-Aug-13 2:09am
View
Obviously as i see now my explanation to you was wrong sorry, Yes i know when they hit enter (BOOM) look a new line! But if you hit submit php stores that as one line that is all.
G4mm4R4y
4-Aug-13 1:28am
View
I would like to do it in whatever can do it before it hits php, so i guess i would have to use javascript?
G4mm4R4y
4-Aug-13 1:23am
View
Im not sure... how... Manipulate strings, that is. Im only fluent in html my php is VERY rusty. Learning from http://w3schools.com/ wasnt the best choice im trying to find something.. better. My problem with string manipulations is that i do not know how.
G4mm4R4y
4-Aug-13 1:21am
View
Thanks, i have been slowing going in to xhtml while not even realizing it so this is why i asked... I figured why not go in to it but i didnt know what the advantages are. Again, thanks.
G4mm4R4y
4-Aug-13 1:13am
View
How do I do this? <--- That is the main point I want it to add them but how?
G4mm4R4y
4-Aug-13 0:19am
View
Quick side question: What is the purpose of xhtml does it have any advantages besides making you code look better?
G4mm4R4y
4-Aug-13 0:19am
View
Will the user have to input them? Im so confused. I want something so when they hit submit it adds br tags or even better it adds \n and php looks for every \n and puts <br> after it so that it looks better in both php and html because it opens a text file and puts the textarea in there (The value of it) so like this
(IN A TEXTAREA)
Hello
Hi
(NOW IM NOT)
It automatically adds something to break the lines in php and html or just add br tags.. I don't know if im just repeating myself if I am please tell me.
G4mm4R4y
4-Aug-13 0:11am
View
It doesn't HAVE to be <br> tags I just need it to read the text file that is getting its text from a text area to have line breaks were you hit enter. Your answer is unclear to me.
EDIT: I know <br> only works in html, but the text file is read by php and outputted as html
G4mm4R4y
3-Aug-13 22:22pm
View
Than can you please help? Ive already searched google.
G4mm4R4y
1-Aug-13 2:41am
View
I do know a little python but not enough to get by without help, I know barely anything besides variables math and user input
G4mm4R4y
31-Jul-13 14:00pm
View
A little late to say this, but next time be more clear, the windows dos scripting language is often called "Batch" and this is a coding site so I was thinking you meant that. Please be more clear.
G4mm4R4y
31-Jul-13 13:56pm
View
Does it have to be javascript? Can it be php?
G4mm4R4y
31-Jul-13 13:54pm
View
Many things have not been said, im no javascript wiz but some problems may be in the html also. A few questions: External script or internal. What is the id of the javascript area EX: <script id="ID">YOURSCRIPT</script> If the id is something other than id="" Than it wont work. if it is id="ID" than the above would have to be href="#ID".
G4mm4R4y
31-Jul-13 13:50pm
View
I would think you could use javascript once the button is pressed and wait ___ seconds and after that stop the loading and say "Form could not be submitted"
G4mm4R4y
25-Jul-13 13:26pm
View
All semi-colons are the same as they are in the source file.
G4mm4R4y
25-Jul-13 13:17pm
View
What would i put in the fclose statement?
G4mm4R4y
23-Jul-13 23:22pm
View
Im new to php, what exactly do I do to do that
G4mm4R4y
16-Jul-13 22:39pm
View
Does not help, But opens ideas. Im trying to check whether or not %1 is defined if it is tthen echo it into a file (echo %1 >> file.extension)
G4mm4R4y
16-Jul-13 13:48pm
View
Why is this downvoted this is the exact command to do it? Am I getting something wrong?
G4mm4R4y
16-Jul-13 13:46pm
View
Sure, Id be happy to. What this is, is a chatbot maker. They have to write a
.cbs file (Chat-Bot Script) Then open the program and type the command "W"
It changes the .cbs to .bat and runs it. The .cbs would most likely consist of something like this:
b
s Hi
a Hello I am A chatbot name mary
q
s Hello
a Hi
q
n NAMEOFBOT
Or they could not use the cbs file and use the prompt and type something like this
b
s
hi
a
hello
q
n
name
Theres a bug that you cant edit the bot when you compile so I figured id let the right a file. They cant see much but the commands echo certain things into a file like
echo if /I %%prompt%%==%a% >> bot.temp
and before that there is
set /p a=:
I want there to be a if statement asking if %1 is defined but the results are very weird. Any more info?
G4mm4R4y
16-Jul-13 13:23pm
View
Criticizing my usage of batch is reasonable. I know its not worth trying but I still want to. Can you help me with this? The problem now is:
Jaydman2102 - 2 hrs ago
This wont work, im trying to make it condtionional. Heres the code
if defined %%1 (
echo "%1" >> bot.temp
) else (
cd Temp
echo :a >> save.temp
set a=
set /p a=:
echo :%a% >> save.temp
echo echo "%a%" >> bot.temp
echo goto prompt >> bot.temp
cd..
cd..
make
)
It wont work each time it says the variable is undefined
G4mm4R4y
16-Jul-13 10:28am
View
This wont work, im trying to make it condtionional. Heres the code
if defined %%1 (
echo "%1" >> bot.temp
) else (
cd Temp
echo :a >> save.temp
set a=
set /p a=:
echo :%a% >> save.temp
echo echo "%a%" >> bot.temp
echo goto prompt >> bot.temp
cd..
cd..
make
)
It wont work each time it says the variable is undefined
G4mm4R4y
16-Jul-13 10:05am
View
Ill try to make this work, but it might not.
G4mm4R4y
16-Jul-13 10:02am
View
Every person has to start somewhere I started with batch. I know more advanced things, but I wanted to go back and make a simple(Or not so simple)batch file. See my commant on the answer below and see if that clarifies
G4mm4R4y
16-Jul-13 10:01am
View
This is almost what I want except I need it instead of %1 to fill out set /p a=: by itself.
G4mm4R4y
15-Jul-13 17:51pm
View
This is not what I meant at all. I meant a different batch file puts in the prompt for me
G4mm4R4y
15-Jul-13 17:50pm
View
What for? Its a program that makes a chatbot. Its in beta but it wont be if I can do this
G4mm4R4y
14-Jul-13 2:09am
View
Fixed anyway
G4mm4R4y
14-Jul-13 2:08am
View
If your talking about how its post and not get, Im not to worried about it but I fixed the issue before you answered I noticed my mistake. I fixed that BEFORE this question, but forgot to save. That's why I had trouble. But good news: My forum is up and running :D
G4mm4R4y
13-Jul-13 13:17pm
View
Another problem arose. I get an undefined index wherever a variable in {} is.
G4mm4R4y
13-Jul-13 13:08pm
View
I have a question. Is it mandantor to put "\n" In a heredoc or will it automatically break?
G4mm4R4y
13-Jul-13 1:38am
View
Thanks for the reply! Now I can make a forum completely without MySQL.
G4mm4R4y
12-Jul-13 22:15pm
View
C# webserver probably wont be needed all you would need is javascript I would think. Something to grab the value of the checkbox and make it a variable. and an if statement would change the color.
G4mm4R4y
6-Jul-13 14:46pm
View
Ill accept this but still confused this is the best help I could get. But basically what I got was "Hey just make a new page!" So I will.
G4mm4R4y
6-Jul-13 14:26pm
View
Im offline right now for testing but here is an example
http://localhost/chat.php --This is what I load.
http://localhost/chat.php? --This is when I hit send
The message appears but that isn't the problem.
The undefined variable is Did that answer anything you said? Im not sure. This was the number 2 situation I don't understand the number one,
G4mm4R4y
6-Jul-13 14:07pm
View
The undefined variables are "$_POST['msg']" and "$_POST['uname'] I know there is a way no offense to your knowledge, because I found a tutorial that let me do this I believe you use javascript but I feel there is an easier way, but the chat box works it just displays the error message which is not very user friendly to my website. The action="?" uses the same page as the action. Can I hide the error message or fix it in any way? I don't want to have to make another page, as my hosting plan has limited space.
EDIT:
The undefined variable is the first script seen trying to append chat.txt
G4mm4R4y
6-Jul-13 13:53pm
View
( ! ) Notice: Undefined index: uname in C:\wamp\www\chat.php on line 4
Call Stack
#
Time
Memory
Function
Location
1 0.0015 249456 {main}( ) ..\chat.php:0
( ! ) Notice: Undefined index: msg in C:\wamp\www\chat.php on line 6
Call Stack
#
Time
Memory
Function
Location
1 0.0015 249456 {main}( ) ..\chat.php:0
This is the error report
G4mm4R4y
6-Jul-13 13:50pm
View
Not sure what line I will run the page again but the undefined variables? That's what I am asking how can I NOT use undefined variables there It may be a dumb question but I am new to php. Maybe im jumping into things. But I am trying to basically make a chat box and the variables aren't defined how do I make it wait till they are defined to run that code?
G4mm4R4y
7-Feb-13 15:58pm
View
I found that before you said that but thanks. I think i did mark it as answered...?
G4mm4R4y
31-Jan-13 19:48pm
View
I rejected because a new problem was found please if you can remake the code or tell me the error
G4mm4R4y
31-Jan-13 19:38pm
View
Wait i tried yours and it worked!
Thank the heavens!
G4mm4R4y
31-Jan-13 19:36pm
View
See it may have to do with the windows version because mine wold simply say
speechtext=("")
set objspeech=createdobject("SAPI.voice")
objspeech.speak speechtext
G4mm4R4y
12-Nov-12 23:16pm
View
Here is the article i posted and ill check out that website. Thanks!
http://www.codeproject.com/Questions/492898/Windowsplusbatchplusclosesplusonpluswrongplusvaria
G4mm4R4y
12-Nov-12 22:51pm
View
Well it solved but yes arithmetic I'm almost finished with my RPG that I needed this for but i have another question open holding another problem. Please help me with it if you can.
G4mm4R4y
12-Nov-12 22:39pm
View
Im very interested in this question. I do not think there is a way to get the date and time. Ill try to search the internet but if you dont hear back from me its probably impossible. I check through cmd commands from time to time and never see a command like that. I know this doesnt help much but i thought you should know
_______________________________________________________________________________
Remember "help"!
Show More