![]() |
|
#1
|
|||
|
|||
Converting PHP to C and I need a little helpOk so I coded something in php (what I am good at) and it keeps timing out on my server so now I am trying to do it in "C" (I have not so much experience).
Basically all I did was take my PHP code and thak the function that does the calculations and try to turn that function into C code. (I know it's sloppy What I need help with is fixing some of my errors and getting the code to print the results of the calculations to a text file. CPP / C++ / C Code:
|
|
#2
|
|||
|
|||
Re: Converting PHP to C and I need a little helpError Log (If that helps)
Code:
|
|
#3
|
||||
|
||||
Re: Converting PHP to C and I need a little helpIf you are converting to c, then why does your file end with .cpp?
Anyway, (just for a start, there will be other errors/warnings) it looks like you have nothing in main(), because there appears to be an extra '}' in the wrong place. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 14-Aug-2006 at 11:11.
|
|
#4
|
|||
|
|||
Re: Converting PHP to C and I need a little helpQuote:
|
|
#5
|
||||
|
||||
Re: Converting PHP to C and I need a little helpQuote:
__________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Alternative PHP Cache (APC) | admin | Web Hosting Forum | 0 | 05-May-2006 00:41 |
| PHP - sizes and generation times | cable_guy_67 | MySQL / PHP Forum | 3 | 29-Sep-2005 09:26 |
| Help ! I need help starting up on Php ! | onauc | MySQL / PHP Forum | 11 | 05-Jan-2005 00:57 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 19:40 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 17:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The