Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
Ranked #2K
~9K People Reached
Favorite Tags

52 Posted Topics

Member Avatar for zerey02

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 …

Member Avatar for krishnadaspc
0
180
Member Avatar for terabyte

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?

Member Avatar for deceptikon
0
142
Member Avatar for terabyte

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 …

Member Avatar for sepp2k
0
116
Member Avatar for terabyte

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

Member Avatar for deceptikon
0
166
Member Avatar for terabyte

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

Member Avatar for perl_monkey
-1
65
Member Avatar for terabyte

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 …

Member Avatar for maninaction
0
205
Member Avatar for terabyte

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 …

Member Avatar for d5e5
0
277
Member Avatar for terabyte

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 …

Member Avatar for d5e5
0
108
Member Avatar for terabyte
Member Avatar for vaibhav1983

[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

Member Avatar for terabyte
0
113
Member Avatar for terabyte

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

Member Avatar for masijade
0
118
Member Avatar for terabyte

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 …

Member Avatar for vaniliao
0
227
Member Avatar for rjbrjb777
Re: GUI

[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]

Member Avatar for rjbrjb777
0
95
Member Avatar for mushget
Member Avatar for terabyte

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? …

Member Avatar for smantscheff
0
113
Member Avatar for waddlydoodoo

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 …

Member Avatar for waddlydoodoo
0
84
Member Avatar for terabyte

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'; } …

Member Avatar for terabyte
0
104
Member Avatar for PCSAWICK829

try [CODE] #include <stdio.h> int main(void) { puts("Greetings, human!"); return 0; } [/CODE] it works with gcc

Member Avatar for anirudh33
0
255
Member Avatar for terabyte

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?

Member Avatar for Barrett1
0
70
Member Avatar for terabyte

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 …

Member Avatar for Trentacle
0
180
Member Avatar for terabyte

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 …

Member Avatar for mitchems
0
168
Member Avatar for marshal_ramdev

what about [url]http://www.adbrite.com/[/url] [url]http://www.smowtion.com/[/url] [url]http://www.xtendmedia.com/[/url]

Member Avatar for marshal_ramdev
1
326
Member Avatar for super_alex
Member Avatar for terabyte

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?

Member Avatar for terabyte
0
151
Member Avatar for zlegend
Member Avatar for somedude3488
0
106
Member Avatar for Awah Mohamed

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?

Member Avatar for diafol
0
349
Member Avatar for lse123
Member Avatar for Will Gresham
0
82
Member Avatar for tecktalk

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.

Member Avatar for terabyte
0
131
Member Avatar for niths

[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);

Member Avatar for nonshatter
0
176
Member Avatar for terabyte

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.

Member Avatar for terabyte
0
113
Member Avatar for terabyte

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

Member Avatar for RykeTech
0
163
Member Avatar for terabyte
Member Avatar for d5e5
0
95
Member Avatar for terabyte

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? …

Member Avatar for mitchems
0
181
Member Avatar for terabyte

I have been coding in Perl without using "my" before the variable name.. when should I use MY and why?

Member Avatar for mitchems
0
78
Member Avatar for Clarkeez

[CODE]<?php $numbers = file_get_contents("https://www.molten-wow.com/?display=info"); echo $numbers;[/CODE]

Member Avatar for rixius
0
309
Member Avatar for terabyte

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 …

Member Avatar for Bench
0
146
Member Avatar for omaiaa0p

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.

Member Avatar for omaiaa0p
0
126
Member Avatar for Griffin54

It depends on your browser. Use an Image if you want to make it look the way you want.

Member Avatar for logoonlinepros
0
160
Member Avatar for wickedsunny
Member Avatar for LogicWeb
Member Avatar for fuston05

You cant choose JS over PHP they are designed to accomplish different tasks. Combine them both to have a powerful and dynamic website.

Member Avatar for chrishea
1
254
Member Avatar for ZozOQ

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": …

Member Avatar for ZozOQ
0
316
Member Avatar for gazzy1

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

Member Avatar for terabyte
0
111
Member Avatar for terabyte

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 …

Member Avatar for terabyte
0
171
Member Avatar for terabyte

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 …

Member Avatar for pritaeas
0
296
Member Avatar for smithwills

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

Member Avatar for activinorm
0
163
Member Avatar for satotravel
Member Avatar for webdesigns12
0
387
Member Avatar for IchbinDumm
Member Avatar for terabyte

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 …

Member Avatar for terabyte
0
89
Member Avatar for Danny_501

Terminal > $tasksel Choose Lamp Server and you are ready to go! just paste your html file to the apache directory (usually var/www)

Member Avatar for Danny_501
0
131

The End.