premiso
Members-
Posts
6,951 -
Joined
-
Last visited
-
Days Won
2
Everything posted by premiso
-
You may want to look up how a text is actually sent. You can find a list of the carriers and what the address is like for att it is [10 digit number]@txt.att.net you can find this list on the internet by googling. Now, if you want to interact with text's, say have something that receives a text then charge a person for a service like Joke of the day, that is something different. But to simply send a text, you can do that with email.
-
Yep, using the mail function. You have to know the 10 digit phone number and know what carrier to format the domain portion of the email.
-
$result = mysql_query("SELECT * FROM orders ORDER BY date DESC LIMIT 5");// retrieve 5 rows ordered by date. Change the limit to be how many rows you want to return.
-
PHP can utilize XML through various functions, more commonly simplexml. Other than that there is no relation. They are separate. PHP is a programming language, XML is a markup language which is generally used for data storage/configurations/news feeds.
-
FPDF would be my weapon of choice. But I am sure there is a way to generate an invoice using an Excel template, how I have no clue. You could look into Crystal Reports, but I think you would have to be on a Windows Machine for those to work. Not sure.
-
http://www.eggheadcafe.com/forumarchives/Access/Jun2005/post23219902.asp
-
Which PHP-Editor do you think is the best?
premiso replied to briananderson's topic in Miscellaneous
[quote author=jackpf link=topic=54859.msg1176622#msg1176622 date=1241462805] Shit, I download file over FTP all the time; I find it damn tedious. [/quote] Setup a CVS on the server. Makes it much easier than FTPing for code changes. Simply commit the file and it should push it to the server. Mine is setup so that there are 2 directories dev and prod. If the dev file changes do not break it I copy those to the prod svn which is where I commit it. This way I can easily go back a version if I screwed it up on the dev part :) But it did take me a while to get cvs working on my dedicated box and I do realize not everyone has full root access to their server. But I cannot begin to say how much time this has saved me from accidentally overwriting a file or truncating it or FTP dropping the connection at a bad time. CVS is the only way to go :) -
If you want to do a check, why not use the return of the preg_match So... preg_match('/\W/', $str, $match); if (count($match) == 0) // all valid Becomes: if (preg_match('/\W/', $str, $match) > 0) // all valid There is a reason they gave it a return value
-
Not that I suggest using spaces in table names (infact I would avoid it at all costs) but this would fix it: $LoginRS__query=sprintf("SELECT Login,Password FROM `Customer Login` WHERE Login=%s AND Password=%s", The backtick (`) will be needed whenever you call that table name because of the space.
-
PHP Newbie - Need Help with Registering a User form
premiso replied to mtnmchgrl's topic in PHP Coding Help
No problem. It can be frustrating, but any language is to start with. Once you get the baselines down it is much easier. If you come across a point in the code that you need help with feel free to post it, the main goal is that you try and do it/debug it yourself as when you learn with trial and error, those tend to stick out in your head. Also, if you would like it critiqued/looked over when it is finished, this forum would be a good spot to ask that. Best of luck. -
Add this to the top of your script right after <?php error_reporting(E_ALL); ini_set("display_errors", "on"); And see if an error shows up. If not chances are you have an infinite loop. If so post the errors here.
-
PHP Newbie - Need Help with Registering a User form
premiso replied to mtnmchgrl's topic in PHP Coding Help
Do you know how to make a function? If not read up on them here Functions. Specifically on the ones with parameters. IE: function yourFunctionName($parameter1, $parameter2) { // do something with the parameters } That is a basic example of how it is setup. As suggested look into use the file operators: fopen, fread, fwrite and fclose. Since this is an assignment, I am sorry I cannot just give you the answer, you would not learn much from it. The links I have provided should be more than enough to get you going on the right track to finish your assignment. -
Which PHP-Editor do you think is the best?
premiso replied to briananderson's topic in Miscellaneous
[quote author=jackpf link=topic=54859.msg1176532#msg1176532 date=1241458347] Meh. Guess I'm beaten. I still love my Notepad++ though. :P [/quote] Notepad++ is great for small simple projects, honestly. But it really does lack for big projects, it is very hard to manage them from NPP, an IDE tends to keep projects in line so you can see the different functions, parameters you defined etc for bigger projects. This way you know of issues. I love NPP too, so I use both. I do small and simple changes to scripts etc with NPP, but to manage my bigger projects NetBeans works great to keep me inline on what I have done without having to open each file individually :) It is not the sense of "being beaten". It is more or less you should use the right tool for the job. Most IDE's you can disable auto-complete if you want (As I know NPP comes with auto-complete). But for big projects, NPP really is not the tool for efficiently and effectively managing it. -
Frame linking is done client side by Javascript/HTML. Moved to appropriate forum.
-
So what is with this fascination with fsockopen? If you must pursue this I would suggest reading the user comments at fsockopen. As it seems there may be people who found out how to do cookies with it.
-
Why not ask one of them what their secret is? Use the right tools for the job. Just because you can "hammer" a nail in with a rock does not mean you should. There is a more efficient and better tool called a "hammer". curl was built for what you want to do, why not use it? Curl allows you to save cookies so it looks like they are enabled. Look into it.
-
mysql_select_db($$database_inteecom_ellen, $inteecom_ellen); Notice the extra $ infront of database. Remove that. That with the change that ken suggested should get you running.
-
set_time_limit should work, but know that a browser may timeout without data being sent to the screen. But give that a try and see if it works for you.
-
[SOLVED] Highlight keyword in search results
premiso replied to damian0612's topic in PHP Coding Help
$mydate = date('H:i',strtotime($row[0])); $linksource = str_replace($search, "<span>{$search}</span>", $linksource); echo "<tr><td>$mydate <A href=$row[2] target='blank'>$row[1]</A> $linksource</td></tr>";} Should take care of it. -
Why are you not using a cron job? Is your server on a Linux box? You can setup a PHP CLI and Cron Job which can run PHP scripts using the CLI (Command Line Interface). This way you just setup the script to run how you want without sleep and then setup a cron job in linux to run that script via PHP CLI. If on Windows, you can do this with Scheduled Tasks.
-
http://www.phpfreaks.com/forums/index.php/topic,242385.0.html Somewhat explains it, but not really.
-
Which PHP-Editor do you think is the best?
premiso replied to briananderson's topic in Miscellaneous
[quote author=jackpf link=topic=54859.msg1176092#msg1176092 date=1241424802] Yeah, that's what I mean. If I just typed it myself I wouldn't have to :P [/quote] Learn to put the semi-colon before you type in the statement. Just make that a habit and viola soon enough your speedier than you thought. -
I always thought it meant "Teletubbie" so I avoid using it less that purple freak comes out at me from my computer screen.
-
Nope, it is just a guess. But there should be no way to go from Beta to a RC version honestly. I would hope that they had some code-rewrite at the kernel level etc. So much that it would not be worth it to make it available to update. There is a way to go from Beta to the RC version. You just have to modify the install. It is a simple change in the file that checks the version you are upgrading. You modify that and viola you have Beta to RC1 update. Oh and I am sure of the Beta to RC1 cause I have done it.
-
It will either be update it or you just get a CD that updates RC1 to Windows 7 Retail.