Jump to content

grim1208

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

Everything posted by grim1208

  1. Just out of curiosity why hasn't PHPFREAKS bridged their forums to the main site, so you only have to login once?
  2. Agreed, the id you have given the input is generally only used for java-script purposes.
  3. I know what you are experiencing for I am from Mexico doing a lot of spanish character outputs ... you need to change the settings in your phpmyadmin which i believe is the msqyl connection collation to spanish. Let me know if that does the trick
  4. I already know how to make the script that would count time (using javascript) that after a period of time it increments a field in a database a certain amount, but how could I make this so a browser window doesn't have to be open to have the counter countinueing counting? Any ideas?
  5. [!--quoteo(post=363677:date=Apr 11 2006, 09:40 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Apr 11 2006, 09:40 AM) [snapback]363677[/snapback][/div][div class=\'quotemain\'][!--quotec--] You are correct in that ASP has no native image manipulation objects although there are many [i]add in[/i] components available. In fact, ASP only comes with a basic set of 7 objects and around 60 functions. Php comes standard with alot more functionality. As for security. As always, security isn't really an inherent part of any language, its how you use it. You need to code with security in mind. Personaly, if I was to choose between one or the other, its php for sure. With ASP there will be the added cost of bying (or creating yourself in C++, VB) any of the extra functionality you may require. Of course, this all assumes you are talking about plain old ASP and not ASP.NET. If you meant ASP.NET, its a whole other argument, and one that I think you'll find hard for php to win if this company already has any time invested in .NET. [/quote] Thanks for the feedback. I am only talking about ASP not ASP.net. Let me explain more of the current server setup. They have IIS and a MSSQL server setup already. They want the realestate site setup with a sub-domain. Now I am 99% sure they can enable PHP and I can connect to the MSSQL server or create my own MySQL server. however the two databases if chosen to do it this way still will have to communicate together sharing information. Are there any RED FLAGS I should be made aware of? Will this cause bandwidth problems?
  6. Alright, I am to put together a report of what would be better used, PHP or ASP. Currently we have a site built in ASP that connects and utilizes a MSSQL database. Now I have been recruited in, to build a realestate site. The goals are to utilize the existing website with the MSSQL database information, and make it possible to use the realestate information to add into the MSSQL database. Does anyone have an opinion with backed up reason of which would be best to make this realestate? As of this moment, I am leaning towards PHP. A big functionality that will need to be implemented is image alteration. I read that PHP simplifies this process where ASP doesn't quite allow this type of feature. I want to know the security issues with the two, and if using the mssql manual with PHP is going to affect the sites speed or cause security wholes. Let's see what you all think :)
  7. What are the possiblities of programming with PHP and calling and adding to a MSSQL server? I have a site all programmed in asp, I want to add a subdomain, but program it in php using the existing MSSQL server databases. Where would I start to create my config.php to connect to the databse with the user and password, and what are some example codings to access table queries with PHP? Any links that direct me to tutorials would be great. Meanwhile I am googling, nothing too useful yet ...
  8. [!--quoteo(post=351309:date=Mar 3 2006, 09:30 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Mar 3 2006, 09:30 AM) [snapback]351309[/snapback][/div][div class=\'quotemain\'][!--quotec--] The error on your local machine is down to a configuration setting... Open your php.ini file and find the setting 'SMTP =' (its probably set equal to localhost. Now you need to change this setting to teh smtp of your own internet provided. I am with telewest so mine is SMTP = smtp.blueyonder.co.uk your will be different I imagine. If you have outlook or outlookexpress as your email app on you pc you can find the smtp you us in there.... TOOLS > e-mail accounts > view or change... > change. You shoidl then see a form and on the right hand side you will see 'Outgoing mail server' it is the text in that box you need to copy adn paste into your php.ini file. Oh and when you try it on-line again tell us what erros you are getting..... [/quote] Now I know I can fix the localhost problem, thanks. And yes please tell us the online error message.
  9. [!--quoteo(post=351250:date=Mar 3 2006, 01:05 AM:name=Prank)--][div class=\'quotetop\']QUOTE(Prank @ Mar 3 2006, 01:05 AM) [snapback]351250[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi Guys, I am trying to return 30 results per page with a simple 'next' link to the next 30... I have no idea why it wont work, I have passed the value of '$screen' through a form (and retrieved with $_POST) and have passed it in a link trader_convert.php?screen=$newscreen (and retrieved with $_REQUEST['screen]). It wont go to the next 30 results. Also, it seems to start at the 2nd record also, it will output id's from 2 - 30. Heres the code; [code] // Snip db_connect(); if (!isset($_POST['screen'])) {     $screen = 0; } else {     $screen = $_POST['screen']; } $start = $screen * $rows_per_page; $rows_per_page = 30; $q = "SELECT * FROM user_rate_trade LIMIT $start , $rows_per_page"; $r = mysql_query($q)or die(mysql_error()); $row = mysql_fetch_assoc($r); $total_records = mysql_num_rows($r); $pages = ceil($total_records / $rows_per_page); while($row = mysql_fetch_assoc($r)) {     $date = strtotime($row['userdate']);     echo ''.$row['userrateid'].'. '.$row['userdate'].' = '.$date.'<br/>'; } $newscreen = $screen + 1; echo ' <form method="post" action="trader_convert.php"> <input type="hidden" name="screen" value="'.$newscreen.'" /> <input type="submit" name="submit" /> </form> '; [/code] Thanks in advance! Christian [/quote] you could use a link and do something like this instead of a form [code] <a href="trader_conver.php?screen=<?php $screen = $screen + 30; print $screen;?>"> [/code]
  10. [!--quoteo(post=351145:date=Mar 2 2006, 06:47 PM:name=pneudralics)--][div class=\'quotetop\']QUOTE(pneudralics @ Mar 2 2006, 06:47 PM) [snapback]351145[/snapback][/div][div class=\'quotemain\'][!--quotec--] So once I add: <?php include ("mastervariables.php"); ?> me.php will use those variables? If I want to add variables in a different directory I'll just have to do this: <?php include ("/newdirectory/mastervariables.php"); ?> Correct? Thanks in advance. [/quote] That would work :)
  11. Could you provide some script as to how you are logging in? A little more information would help me guide you to fix this problem. :)
  12. Have you tested this online through your ftp or is this a local host error? What are you using for local host? Apache or IIES I ask this because I setup dozens of mail() source code, and I can't get it to work locally, it might be something with php.ini but I think it's just wether or not th feature comes with the localhost. (probably wrong :P) But when I test this online (just have the email go to me during testing) it works perfect on all the servers I have ever put it on. Let me know, also I have a little better script I could give you for the email. Let me know
  13. [!--quoteo(post=350130:date=Feb 27 2006, 11:28 PM:name=eranwein)--][div class=\'quotetop\']QUOTE(eranwein @ Feb 27 2006, 11:28 PM) [snapback]350130[/snapback][/div][div class=\'quotemain\'][!--quotec--] i have two dates which are formed by date and time. how do i get the difference between them. let's say i need the number of days or hours that pased between start and end? [/quote] You would want to start off with seperating the date into an array with the explode function and seperate each into month, day, year, hour, minutes, seconds etc. Also be careful with the dates you will want to look into the gregorian and julian format, this will help set off the different amount of days in the month. Let me know if you need me to expand in my explanation edit: google "php explode" or look in the php manual, also google "php GregorianToJD' or look in the php manual. I won't write out the script for you, doing just a little search will definately benifit you. Reply this with what you have come up with or questions and I would be more than happy to assist :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.