Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
80% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~95.9K People Reached
About Me

Student

Favorite Tags

250 Posted Topics

Member Avatar for solomonski

you need to set up a cron job (or crontab), make sure your webserver allows you to run a cron job, if so look in your control panel for how to set it up, if it's not in there then log in via SSH and type "man cron" to get …

Member Avatar for Ajaypal_1
0
261
Member Avatar for paradox814

I want to share files between two mac osx computers, connected in the same network. These computers are password protected etc... so after I enable Personal File Sharing in the System Preferences I can browse to the network, find the computer I want to connect and connect to it, everything …

Member Avatar for macmad
0
245
Member Avatar for paradox814

Hello all, I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this: 1 - User enters invalid current password 2 - New passwords do not match 3 - User's account is locked 4 - User cannot authenticate …

Member Avatar for Reverend Jim
0
155
Member Avatar for niamul

you would have to covert the string to char and you would use single quotes, example: case 'x': i think this kinda blows too but what are you going to do?

Member Avatar for jon.kiparsky
0
2K
Member Avatar for fernandodonster

[QUOTE=php_daemon;294456][code=php] if (!preg_match("#^http://www\.[a-z0-9-_.]+\.[a-z]{2,4}$#i",$url)) { echo "wrong url"; } else { echo "ok"; } [/code][/QUOTE]that looks good, except that only letters, numbers, and hypens are allowed in a domain name (underscores are not allowed), and due to ICANN limitation domain names are limited to 64 characters. This regular expression also limits …

Member Avatar for prof php
0
606
Member Avatar for stupidfly

[code]$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; echo $url[/code]

Member Avatar for ragstergurr2122
0
416
Member Avatar for DavidB

well if you are always going to be using the same html code for a given page, then what you could do is, put it in a different page and then just include it wherever needed, for example... [php]<? //a lot of php code here if (something_isnt_true) { include 'html_code.html.inc'; …

Member Avatar for Thomas.Fischer
0
381
Member Avatar for kentf

I don't understand what your question is, do you not know how to randomly select a user from the database? do you not know how to send an email from the script? If you know how to do that then that should be all you need to do here is …

Member Avatar for coolasr
0
353
Member Avatar for linux

go here: [url]http://www.winguides.com/registry/display.php/1097/[/url] they show how to hack the registry to change the background. Be wary of that hack, because I believe it might actually be in: HKEY USERS\ .DEFAULT\Control Panel\Desktop just remember hacking the registry can result in very bad things happening! Now just create a simple registry hack …

Member Avatar for Batch Devil
0
7K
Member Avatar for paradox814

I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function …

Member Avatar for NuMessiah
0
431
Member Avatar for josirucu

[CODE] /** * Requires j2se 5.0 (version 1.5). This uses class Scanner, static import, * and some methods of class Arrays. */ import java.util.Arrays; import java.util.Scanner; import static java.lang.Math.*; public class Prog3c_1 { public static void main(String... args) { Scanner sc = new Scanner(System.in); int j, k, number, size; boolean …

Member Avatar for foxpro21
0
348
Member Avatar for cherrypotion27

it could have been (but unlikely) removed, unfortanately it's a lot harder to readd it then it is to remove it. so to re-add, goto control panel if your not already in classic view, switch to it double-click on administrative tools double-click computer managment on the left hand column, under …

Member Avatar for gerbil
0
2K
Member Avatar for satees

you can use commands such as fopen to open files on the internet[php]$handle = fopen("http://www.example.com/", "r");[/php]then if you need more data use regular expressions to parse through whatever data you need

Member Avatar for keval_hack
0
123
Member Avatar for Internet_Sense

how much php do you know? you could make a simple form that you "post", once it is posted just use the php mail function. If your not sure exactly what I mean then reply to this message and i could do a very simple example

Member Avatar for naping
0
520
Member Avatar for paradox814

how can I hide a user from the login screen? for instance in windows xp, you can press ctrl+alt+del twice, and it will allow you to manually type in a username/password. I administer some computers at a non profit, and I rarely touch the users computers until something goes wrong …

Member Avatar for jesuaflores
0
224
Member Avatar for rosslad2004

generally when u pull it from mysql you would reference the item you want by column number, so.... if your query was something to this effect: [code]$result = mysql_query("SELECT login,age FROM some_table WHERE user_name='".$user.'"); $row = mysql_fetch_row($result); $login = $row[0]; $age = $row[1]; $link = "<a href=\"members.php?mid=".$login."\">".$age."</a> [/code]

Member Avatar for mhelmyh
0
309
Member Avatar for dss

if you have a youtube script, just copy and paste the code as they gave it to you from there website, you do not need to do anything else to it to get it running. Paste it as HTML and not PHP

Member Avatar for diafol
0
144
Member Avatar for gope_biswas

[url]http://cs.saddleback.edu/rwatkins/CS4B/Section13/Section13.html[/url] there are instructions on how to set up tomcat 3 once you have this running and are familiar with this I would recommend upgrading like jwenting said

Member Avatar for pragati12
0
246
Member Avatar for f3dor4core

if you just want to make sure it automatically loads the newest copy of the page, eg do a auto-refresh you don't need to use a meta tag, try using a header function instead... [php]header('Cache-Control: no-store, no-cache, must-revalidate');[/php]

Member Avatar for monstruo
0
11K
Member Avatar for MCAmy

what might be easier than usign that huge ugly regular expression is if you first break up your keywords I have not tested any of this so it still might need a slight amount of tweaking but this should give you the idea you need to get going from here. …

Member Avatar for rokape
0
171
Member Avatar for guyshahaf

[quote]1. why does a multiline text data get sended as a single line one?[/quote] this is because you are sending your e-mail as a html document, you need to insert <br> to break the line, alternatively you could just send it as a plain text email to do that replace …

Member Avatar for veetee
0
1K
Member Avatar for kbjustin

I think the safe bet is to say there's always going to be someone who figures out a way around any security setting. Then the question is how often does your hosting company update it's PHP server? And honestly, do you want to be caught completely off guard. Or what …

Member Avatar for paradox814
0
160
Member Avatar for itisnot_me

try adding readfile at the end [code]..... header('Content-Disposition: attachment; filename="'.$name.'.'.$ext.'"'); readfile($file); ?>[/code]

Member Avatar for itisnot_me
0
6K
Member Avatar for gagan22

You only need the first 2 lines of the headers below, but there's some additional headers in case you wanted to see how to add those as well. Also, make sure to "\r\n" in double quotes, not single quotes, AND they must appear at the end of every line in …

Member Avatar for hireaprogrammer
0
212
Member Avatar for Jintu

This sounds like a homework problem to me, maybe you should to a little more studying. Why else would you include the "answer."

Member Avatar for diafol
0
156
Member Avatar for Jintu

Something simple and straightfowrd... [code]$grade = 0; if ($_POST['QUIZ1'] >= 0 && $_POST['QUIZ1'] <= 100) $grade = $grade + $_POST['QUIZ1'] * 0.05; if ($_POST['Mid-Term'] >= 0 && ($_POST['Mid-Term'] <= 100)) $grade = $grade + $_POST['Mid-Term'] * 0.30; //continue code like this until you've included all the scores[/code]

Member Avatar for Jintu
0
3K
Member Avatar for Toxikr3

You would need a SELECT statement in SQL to do this, the same way you inserted all of your friends to the database just ...[code]SELECT id,firstName,lastName FROM Profiles WHERE isVisible='1'[/code]of course you will need to change the names based on your table structure.

Member Avatar for Toxikr3
0
232
Member Avatar for techied

check out sorceforge, while the idea won't be completly your own, it will allow you to help others and better tune your skills... [url]http://sourceforge.net/people/[/url]

Member Avatar for SanjitVigneshS
0
439
Member Avatar for smartsoft

if you know the service provider you can just email it to there cell number, since that is how most sms messages are sent. for instance if your cell number was 800-555-1212 and your company is verizon, then you could just email: [email]8005551212@vtext.com[/email] as far as that whole pin thing, …

Member Avatar for shefeekj
0
2K
Member Avatar for paradox814

Is there a way to change the color of the text in a JTextArea? I want to change all the text color to one color (other than black) and I just want to know how to do this. I see a lot of methods involving color but they only effect …

Member Avatar for carnado2008
0
1K
Member Avatar for ravikiran032

Cookies should never contain passwords. You can have a cookie contain a session id. The session id can then point to a user in a database. From the database you can easily cross reference the user's password. By doing it this way you can have the session expire in the …

Member Avatar for jwenting
0
155
Member Avatar for 1andyw

the other thing you could do with the private section is restrict downloads. Suppose you only want to let your members download certain videos from your website (or any other content) then you can keep the file stored in the private section and then just parse it out to those …

Member Avatar for alphaseinor
0
168
Member Avatar for jazzbo

there is this way i have used once but it was on the same machine so I dont know if it will work, and it will require usage of a fat32 partition. The reason i found this is becuase I was trying to fiddle around with the permission and I …

Member Avatar for Jagdfox
0
262
Member Avatar for scrapdaddy

you could always use phpnuke, not nearly as clean, but I'm sure you could just download a new theme/skin and change it [url]http://phpnuke.org/[/url]

Member Avatar for mlittkesmith
0
105
Member Avatar for jilly

do you have access to a database? if so then i wouldn't bother with loggin in, as that would be too much work for the sole purpose of adding latest news. Create a new php page with a form use that has everything you want, and then just put a …

Member Avatar for justin1206
0
195
Member Avatar for paradox814

I am stuck on something that I know is so simple that I can't figure it out... I have a BST class, and a private item: [code]Node<K> *root; // root pointer //and in a seperate class I have... template <typename K> class Node { public: // constructors Node() {}; Node(const …

Member Avatar for bugmenot
0
278
Member Avatar for paradox814

When you press the ALT button, a letter will usually appear underlined so that you can press ALT+letter that is underlined to do a certain shortcut. My question is, I remember finding a way so that this letter was always underlined in windows, but i don't know where it is …

Member Avatar for thunderstorm98
0
159
Member Avatar for boo_lolly

if you are going to use a header tag YOU CANNOT output any text/html to the user, which means you need to get rid of all the echo. when you see this error: [b]Warning: Cannot modify header information - headers already sent by[/b] it means that you've already send data …

Member Avatar for almualim
0
175
Member Avatar for paradox814

I am working with a function declaration of: int func1(char *, unsigned int) to the best of my understanding, I am not allowed to modify this. Now my question is that when I actually write this program what is the name of argument 1 and 2 for example [code]int intToHexStr(char …

Member Avatar for paradox814
0
127
Member Avatar for thewolfe

depending on how big your site is, you can use Google API and put there search engine right into your homepage for free! You would be limited to 1,000 queries via this method, or you can link to google directly via a form box [html]<form method="get" action="http://www.google.com/search"> <input type="text" name="q" …

Member Avatar for vishalldce
0
269
Member Avatar for HailttRedskins

[QUOTE=PeppySoft;293913]Normally file upload using files will be allowed 2MB in PHP (That is default setting in php.ini file). Ask your server admin about this limit. You can use FTP functions to upload can be found at [url]http://in.php.net/ftp[/url].[/QUOTE] to see your PHP upload size limit, make a file called phpinfo.php and …

Member Avatar for Dsiembab
0
164
Member Avatar for paradox814

I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the right direction. Thanks!

Member Avatar for jwenting
0
174
Member Avatar for alpakr

use a csv extenion on any text file for example, a file named output.csv with the following data: [code]a,b,c 1,2,3 x,y,x[/code] would produce the following in excel, cell a1: a cell b1: b cell c1: c cell a2: 1 cell b2: 2 cell c3: 3 cell a3: x cell b3: …

Member Avatar for masijade
0
102
Member Avatar for paradox814

what does it mean when you say z=1? Does it ignore what value you pass into the function? What is this called?

Member Avatar for Duoas
0
332
Member Avatar for ross017

[QUOTE=ross017;271068]i just download the sophos antivirus and it deletes all the infected files including explorer.exe. even my folder options is not accessible and active directory in administrative tools is also lost. please help to solve my problem because the infected pc is our server. thank you[/QUOTE] click start-->run-->msconfig then click …

Member Avatar for nextzone825
0
410
Member Avatar for adromidon

hmmm sounds to me like if you are reading some other site or usign a pre-made script then your traffic exchange won't really be something original but more of a "carbon copy of every other traffic exchange" Why don't you write down all the features you want in your site, …

Member Avatar for rkmailer
0
161
Member Avatar for Dani

paypal is decent but good luck getting your money back if you get ripped off from someone who you pay via paypal 2-3% is not bad at all this is right in line with what you would expect to pay if you got a merchant account and accepted visa/mastercards directly …

Member Avatar for Angie70
0
2K
Member Avatar for paradox814

I have a program that I want to run, but it will only run in the adminstrator account, is there a way I can create a shortcut by entering the admin password into it somehow to run? This is what I've tried and it didn't work: I created a regular …

Member Avatar for jwnaron
0
481
Member Avatar for paradox814

I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image. It's the one that is captioned "Please input the...." I don't need help on how to implement it (beyond knowing the class name), I just forgot …

Member Avatar for jwenting
0
120
Member Avatar for bucwyld

you need to create a table, ie this would be an example: [code]CREATE TABLE email_list ( email VARCHAR(75) NOT NULL, name VARCHAR(75) NOT NULL, PRIMARY KEY(email) );[/code] then just loop through it in whatever language you are usign and email it off to: name <email>

Member Avatar for GTHD
0
239

The End.