Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by RussellReal

  1. RussellReal


    can you be more specific?
  2. IN is sort of an "IS IN" Understanding the WHERE clause.. WHERE is basically IF statements that are compared against the rows in the table.. WHERE 1 = 1 is a valid where clause, because when you do WHERE id = 17 its basically evaluating the >>id<< and then comparing the two values which would look something like: WHERE 47 = 17 now, the IN clause, basically is looking for VALUE in VALUESET for example WHERE id IN (1,2,3) that code would be evaluated and look like this: WHERE 177 IN (1,2,3) and would be false, therefore the row will not be taken why would it be false? because 177 is not equal to 1 OR 2 OR 3 so what your IN clause is looking for.. WHERE 177 = 0 OR 177 = 4561 OR 177 = 0 which makes no sense, which is why I gave you a more in depth explanation
  3. How do you get from the first page to the second page, you're not showing the whole code, how are we supposed to help you?
  4. psycho, I know this, I explained that in the post above, thats why I linked him to the COM Object Model of internet explorer, and instructed him to use Kiosk mode (full screen) also loading internet explorer as a com object, basically gives you certain events (the same events the browser's environmental javascript uses) to know when the page is fully loaded, etc.. I'm even sure there are functions to know if the scrollbar is present and is scrollable, to actually interact with the browser (via php) and scroll the scrollbars, to take screenshots of the entire page, and you can use PHP to fuse the images together with PHP:GD.. I mean, Psycho, I don't want to argue, you're totally right that there are probably better alternatives, but if you want a free, totally capable alternative.. Need look no further
  5. Yes you can, please omit passwords, and send them as files to me, so I can do a physical inspection for you
  6. <?php function listNavText($PHGlidA, $PHLobA, $PHLodA){ //GET THE LANGUAGE $langBS = basicSettings::find_by_id(1); $langID = $langBS->language_id; //GET THE LIST ORDER $PHLoa = PhLists::find_by_order($PHGlidA, $PHLobA, $PHLodA); foreach ($PHLoa as $PHLoas){ $PHLidA = $PHLoas->id; //GET THE LIST TEXT IDS $PCba = PCbridge::find_by_list($PHLidA, $langID); foreach ($PCba as $PCbas) { $PCidA = $PCbas->pageContent_id; //GET THE TEXT $PCa = PageContent::find_by_pageContID($PCidA); foreach ($PCa as $PCas) { $title = $PCas->title; $link = $PCas->link; if (!empty($PCidA) && !empty($title)) { echo "{$PCidA} {$title}<br />"; } /* echo $title; echo "<br/>"; */ } } } } ?>
  7. config.php is not full code #1... #2, The errors that you're receiving, are exactly the same? #3, if you're getting these errors, there is usually a problem, possibly an error, getting output #4 the first error pertains to the login page, and I don't see any output anywhere, which means its prolly in your copies and not what we're seeing here.. I suggest you look around for errors in your code, warnings, fatal errors.. whitespace..
  8. I don't see how you're getting those errors, with copied files and no whitespace, can you post full code, omit passwords, in brackets so that there is syntax highlighting..
  9. <?php ${strrev("sniWsiDrd")} = 0; $match = array('A','B','C','H','B','H','C','C','H'); for ($i = 0; $i < count($match); $i++) { if ($match[(int) ${'i'}] == strtoupper(substr("abcdefghijklmnopqrstuvwxyz",7,1))) { ${strrev("sniWsiDrd")}++; } } echo ${strrev("sniWsiDrd")}; ?> ahahaha, sorry I was bored
  10. Those errors don't come from nothing man.. Check for the whitespace, you might have pasted with 1 space before the <?php also, check that you're not getting errors from connecting to the database, and thats outputting, forcing the headers to be sent first.. it seems looking at the errors again, that config.php at line 1 (probably your opening <?php tag) is where the output is starting.. which is almost 100% a whitespace problem -Russell
  11. technically if you are on windows, (possibly linux too, but I've actually accomplished this on windows) you can use COM objects for windows internet explorer, in kiosk mode (full screen), then you will want to use the php function imagegrabscreen that will take a screenshot of your entire screen, you can save this to a file, and queue that file for printing, or stream that to your end user, and allow them to print it, if you intend for PHP to print this page FOR the user, its impossible 100%, but if you want PHP to print this, at the server's location, its like 95% possible, if you execute a printing function/program or something using `` or exec Its not impossible, and you honestly don't need to spend money on it, I'm sure there are way better paid alternatives.. now before I end this post, I will point you in a few good directions.. http://php.net/manual/en/book.com.php http://msdn.microsoft.com/en-us/library/aa752084(v=vs.85).aspx http://us.php.net/manual/en/function.imagegrabscreen.php I hope I helped - Russell Crevatas
  12. check for whitespace before your opening <?php tag.. That error means that there is output being sent somewhere before you're attempting to modify header information.. E.G. cookies(includes sessions), use the header() function/language construct.. etc... - Russell
  13. try doing this: var_dump($_SERVER); and look thru the server variables for a value that may better accommodate your needs... You could peer into the log files, you should be able to see where the logs are stored by checking out your httpd.conf file from apache, or contacting your hosting provider to tell you where they're stored, you should also be able to format your errors to show IP addresses and dates, so you can use the request time and the IP address to get a relatively good idea of which error belongs to which user.. and can email from there.. But the second alternative is only if $_SERVER doesn't give you the information you need, I haven't done much custom error pages, especially with emailing of problems, but those 2 places are a good place to start looking
  14. If you want, you could use file_get_contents and a relative url, not a remote url.. for example.. $content = file_get_contents('../code_repository/gridview.php'); and then $content will contain the content of the php file...
  15. while($events = mysql_fetch_array($events_set)) { $check_location = ""; if($check_location != trim($events['event_location'])) { like Muddy says, $check_location is being set every interation, to an empty string, are you trying to test if $events['event_location'] is empty? if so you could just do empty OR you could do strlen and use the output as a bool (0 = false, else = true) what exactly are you trying to do, lets not focus on this broken code, lets try and figure out a way to accomplish what you want to accomplish, and I'll help you write the new code, and help you understand it..
  16. what is the value of $check_location and what are the potential values of $events['location'] I already see 1 issue, you named $events['location'] "$events['event_location']" in your code, that could be your problem:P
  17. can you show code from page 1, and code from page 2... wrap it in code blocks please as scoot said, you can use Sessions, but if page 1 is the form page, and page 2 is the Action page, then you CAN use $_POST or $_GET to transmit data.. I can give you some hints, however, you must be sure the form elements are named properly.. You must be sure that the elements' names are used appropriately in your code as $_REQUEST['theFormInputName'] or you can get specific and use $_GET or $_POST, $_REQUEST holds all of the request parameters, parsed ofcourse.. if you ARE looking to collect this data, THEN redirect a user to a better place to DISPLAY this data, then you could do this 1 of 2 ways.. header('Location: theNewPage.php?id='.$theStudentId); and then pull the information from the database, using this new student ID.. this is the ugly way.. OR you can use Sessions.. like this: <?php session_start(); $_SESSION['id'] = $student_id; $_SESSION['first_name'] = $student_first_name; $_SESSION['last_name'] = $student_last_name; $_SESSION['major'] = $student_major; $_SESSION['minor'] = $student_minor; header('Location: theNewPage.php'); ?> then: theNewPage.php <?php session_start(); var_dump($_SESSION); ?>
  18. Nvm, I've figured it out, I can't believe I overlooked the session over and over, no wonder it wasn't working, there was a lock on the session so each request after the first needed to way to secure a lock on the session file.. Thanks PHPFreaks, sorry for the nooby problem!
  19. I understand that many browsers have limitations (such as 6 requests per "group" meaning I guess how many tabs you have for lets say 'google.com') Now, I only have 1 constant request.. It starts, and has a timeout of 60 seconds, I then start a separate request to "send" a message to the server, which will impact what is "returned" by the server on the longpoll connection.. My current model, or design, albiet fully functional, has 1 major flaw.. A request is made to the server, which islong polled, (E.G. thrown into a loop) The Long Poll will continue to long poll until one of the following two conditions are satisfied.. 1) The time() is > initial_time+60seconds 2) There is data to be displayed, and found.. the above works just fine.. However, while this is running, if I try to send a Message to the server, javascript wants to wait until the previous request has finished, before sending another request.. which sometimes could take a full minute to showup.. Hardly real time, which defeats the purpose of long polling? I figure maybe you can't have two connections running at the same exact time in Google Chrome, so I stop the current long poll - XMLHttpRequest.abort() - But that still, takes until the request (the server side code) ends processing and still takes up to 60 seconds until the message is sent to the server (which seems to be because it is processing till a specific time)... this is extremely frustrating.. is there any way to fix this problem? Thank you all very much!
  20. I heard ioncube scrambles up your code with a certain salt that correlates to an ioncube key that you generate for each user, then they can't view your source php code, but it will still run, aslong as they have ioncube installed on their webhosting but I may be misunderstanding how ioncube works! But, theres a starting point! -- edit -- Also, you will need to think long term, you will need to generate new ioncube keys and packages everytime you change a bit of code, that means there will be times where your "world" will be more up to date than the rest of the "worlds".. Its best just buy the other servers yourself, and keep them on the same domain, only subdomain changes like: china.ThatOnlineGame.com, north_america.ThatOnlineGame.com, south_america.ThatOnlineGame.com -- edit 2 -- or you could join the cloud movement, and get yourself a cloud server, and that will generate new clouds during spikes of activity, and I also believe you could allocate X clouds, and use them independently, but the second bit I'm not sure of
  21. I'm curious as to what kind of code you want to publish, and of your theories.. Add me to skype? RussellReal, or PM me here, or something, Or post them here, this is the miscellaneous section anyway lol. But if not, thats fine too Thanks!
  22. Well, In my honest opinion, for large size projects, you can be looking at too wide of a range to give you a ballpark, because there is no ballpark for lets say "anywhere from $300 to $10,000" I mean, there are the low end developers, who obviously are starving, or the kids who want to earn their own xbox 360 (way to go kids, no insults there at all!) aswell as overseas developers where $1 here equates to alot over there (E.G. Indians, Chinese, Etc) so they work for cheap, however, developers over there are a dime a dozen, which basically means you're most likely going to contract a LOW-END Overseas Contractor, not saying there aren't good ones out there.. And be warned, that price doesn't mean everything, sure you can get quoted 10,000 dollars and think, man oh man this guy must be legit! But really, its just a guy or girl that wants to make 10,000 dollars, and may never even finish the job, oh and beware of the developers who take your "50% Deposit" and leave! I mean, you just need to feel your developer out, and see how well you would trust him, and look for previous work, how much of that work actually would possibly mean he has the qualifications to get this site done, the price isn't always the way to judge a developer.. So, all in all, Price isn't the only factor.. I don't know average price per hour on this site, or a global standard, but if you went to an actual company, you'd probably be paying around $10,000 - $15,000, because if it takes them 2 weeks to finish the project, they need to pay their developers and designers and other people, with the same money you paid just for development. P.S. I'd be willing to discuss a quote to actually work on your site for you, feel free to add me to Skype: RussellReal
  23. you are probably not increasing X in the loop.. try this instead: foreach ($array as $value) { echo "$value<br />"; }
  24. I don't quite understand what you want.. if you mean you want to count the number of rows in table_B which match an ID from table_A, here is how you will do it: $user_id = 1; $qry = "SELECT count(id) FROM referals A JOIN liked B ON (A.id = B.user_id) WHERE A.id = '$user_id'";
  • 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.