- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
52 Posted Topics
Re: The easiest way would be assigning the correct answers to some variables, get the user input from a form and compare the input with the correct answers. if the answer is true then you could add some points ($grade++) then echo the final score of course there are better ways … | |
Many string functions seem to work without the null byte... is it necessary to add it all the time? and my second question, does scanf %s automatically ads the null byte? | |
seems like I never need malloc to allocate memory dinamically when it comes to strings example: int main(void) { char *str; puts("keyword:"); scanf("%30[^\n]\n",str); printf("%s",str); } I never defined str size, yet it works sorry if this is a stupid question it's 2 am and I'm studying for some c quiz … | |
what is the difference of passing an array to a function like this function(int x[]){ } or like this(int x*){ } what is the difference both ways seem to work | |
I have a text file in spanish, how can I normalize all spanish characters (remove tildes and covert letters) example convert all ñ to n's ó to o I know about the Unicode::Normalize module but I don't understand how to use it | |
I've been programming a web crawler for a while, I'm almost done, it works perfectly but when it crawls vbulletin forums i get weird urls example: forum/index.php?phpsessid=oed7fqnm9ikhqq9jvbt23lo8e4 index.php/topic,5583.0.html?phpsessid=93f6a28f192c8cc8b035688cf8b5e06d obviously this is being causes by php session IDs what can I do to stop this? I tried using cookies with HTTP::Cookies … | |
I'm trying to convert html to plain text (remove all html tags) I don't want to use regex so I tried the module HTML::Parser and tried the parse() function but i got this error [CODE]Undefined subroutine &main::start called at getwords.pl line 27. [/CODE] and as a matter of fact I … | |
how can i get a variable inside a package example: [CODE] { package example; my $baz = "sometext"; sub new{ my $self = shift; bless \$self; } } my $foo = example->new; [/CODE] how can I get the value of $baz i tried [CODE]print $foo->{vv}; print $foo::vv[/CODE] and no luck … | |
Re: [CODE]sub uri_split { my $url = shift; return $url =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?|; } my ($scheme, $auth, $path, $query, $frag) = &uri_split($url); [/CODE] split the uri and compare it | |
y/A-Za-z/N-ZA-Mn-za-m/; it is a rot13 script but I don't undestand how it works, what is the y// operator for | |
How can I run my Perl scripts on my symbian phone? I have been googling for two days, I only found these two links: [url]http://search.cpan.org/~rgarcia/perl/symbian/PerlBase.pod#___top[/url] [url]http://perldoc.perl.org/perlsymbian.html[/url] and I didn't understand them lol so is there a way to use perl on my symbian? either the Perl interpreter or a compiled … | |
Re: [url]http://www.gtk.org/[/url] [url]http://www.gtk.org/documentation.html[/url] [url]http://www.wxwidgets.org/[/url] [url]http://www.wxwidgets.org/docs/[/url] [url]https://developer.mozilla.org/en/xul_tutorial[/url] | |
| |
I haven't used MySQL for a long time and I forgot a lot, I'm developing a script that saves a list of URL's but I have a lot of doubts.. should I use varchar or text? (what is the difference) Which characters should I escape? what should be the length? … | |
Re: weird try this: open a simple text editor add these html lines: [CODE] <html><body><h1>Example</h1> </body></html>[/CODE] save as index.html open with your browser if you see the html site instead of the source code it means you are doing something wrong, it could be the file extension or the development application … | |
I coded a simple program that pretends two users input random characters and the program tells you which user wrote what [CODE]#include <stdio.h> int main(void) { int x; char user; char ch; puts("type a character"); for(x = 0;x < 9; x++) { if(x%2 == 1) { user = 'x'; } … | |
Re: try [CODE] #include <stdio.h> int main(void) { puts("Greetings, human!"); return 0; } [/CODE] it works with gcc | |
How can I make my url [CODE]example.com/query.pl?q=Dummy+Text [/CODE] look like this: [CODE]example.com/Dummy-Text [/CODE] is that possible with .htaccess? | |
I'm very interested in learning C before C++ but I can't find good books The K&R book looked very organized and short but it seems it is very outdated. So my two questions are.. Should I read the K&R book even thought it uses an old standard, if I do … | |
I was wondering if there is a global matching flag, considering there is a global replacement flag (/g) I'm using this workaround to make multiple matches in a string [CODE] while(!$stop_var) { if($source =~ /(PATTERN)/i) { push(@matches, $1); $source = $'; } else { $stop_var =1; } } [/CODE] is … | |
Re: what about [url]http://www.adbrite.com/[/url] [url]http://www.smowtion.com/[/url] [url]http://www.xtendmedia.com/[/url] | |
Re: $i = 10; $t = 5+5; $i == $t TRUE $i === $t FALSE | |
Which is the best way to make a plataform-independent perl app, I tried Perl Packer but it seems it wont work on windows, I don't want to use activestate? what are my alternatives? | |
Re: So you are trying to get googlebot to index random search queries? | |
Re: Your question is hard to understand, how can you do what? which error did google told you about? is your website indexed in google? where are you uploading your site? do you own a domain name? ![]() | |
Re: why do you need to do that? it is easy to recognize google bot try playing around with robots.txt | |
Re: Keep away from "Learning PHP, MySQL, and JavaScript" try to get "PHP and MySQL Web Development by Luke Welling" use php.net and tizag.com as reference good luck. | |
Re: [CODE] $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $propermessage = "Name:\n ucwords($name)\n Email:\n $email\n Message:\n $message\n\n\n"; [/CODE] when you uses $propermessage variable again us it with the nl2br function echo nl2br($propermessage); | |
How can I print some numbers during a loop for example I have a while loop, and while the loop is running i want to print the numbers of times the loop has been repeated. | |
Recently I found this project: [url]http://www.ralpharama.co.uk/item.php?itemid=387&page=TPF[/url] it is a forum script with no mysql I know this can be dangerous but what are the advantages of a forum with no mysql? will it load faster? less robust? Thanks | |
What is the difference it seems push and pop work just like unshift and shift respectively . | |
I am starting to learn Perl and I have coded few tools (converters, calculators, etc.) to get some practice, I easily included these tools into my website just changing the extension .pl to .cgi and adding this line: [CODE]print "content-type: text/html \n\n";[/CODE] so..when should I start using catalyst and why? … | |
I have been coding in Perl without using "my" before the variable name.. when should I use MY and why? | |
Re: [CODE]<?php $numbers = file_get_contents("https://www.molten-wow.com/?display=info"); echo $numbers;[/CODE] | |
Hello I'm starting to learn c++ and I'm wondering if I should wait until c++0x standard is published (since I'm not in a hurry, currently learning Perl and Java) or should I start learning c++ with an old book I have If i do learn c++ w/ the 2003 standards … | |
Re: Firstly PHP is server side while Javascript is Client side. If you want a fully functional site you will need PHP and you can use javascript yo make it dinamic. | |
Re: It depends on your browser. Use an Image if you want to make it look the way you want. | |
| |
Re: You cant choose JS over PHP they are designed to accomplish different tasks. Combine them both to have a powerful and dynamic website. | |
Re: the ? passes parameters and the PHP code reads those parameters. for example I can point a link to index.php?site=privacypolicy and on my index page include a PHP code that acts depending on those paraemeters example: [CODE]<?php if (isset($_GET['site'])) { $page = $_GET['site']; switch($page){ case "articles": include("inc/articles.php"); break; case "home": … | |
Re: I coded a nice file hosting site long time ago it is very easy and fun try reading this: [url]http://www.tizag.com/phpT/fileupload.php[/url] do your best and if you have any doubt ask it here | |
how can I check if any field is empty i tried this: [CODE] $x = $_POST['a']; $y = $_POST['b']; $z = $_POST['c']; if($x or $y or $z == ""){echo "Please fill in all the fields";} else{ //rest of the code } [/CODE] but I allways receive the "Please fill in … | |
Well I got a doubt.. I have been away the whole web development scene for about 1 year and a half and I'm trying to finish some old projects but i don't remember anything. I have this blog I coded myself with basic php knowledge I have the index PHP … | |
Re: I have been away for a long time as well but it seems SEO is still the same :p the only thing that has changed is that a fast loading website will help you rank higher | |
Re: Get quality backlinks, some visits and write original content | |
I'm trying to create a variable with multiple lines but for some reason the <<<_END operator isn't working this is how the code looks: [CODE] <?php $author = "Anon"; echo <<<_END First Lines Second Line. Third Line. - Written by $author. _END; ?> [/CODE] Why might it be? I'm using … | |
Re: Terminal > $tasksel Choose Lamp Server and you are ready to go! just paste your html file to the apache directory (usually var/www) |
The End.