TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: core1024
Forum: Advanced PHP Programming 02-04-2012, 11:39 AM
Replies: 4
Views: 1,081
Posted By core1024
According to this source code...

According to this source code (http://theroanoker.com/wp-content/themes/RealEstate/library/functions/custom_functions.php_old) the function get_location_dl outputs HTML. The parameter...
Forum: Advanced PHP Programming 01-28-2012, 08:45 AM
Replies: 1
Views: 583
Posted By core1024
Of cource you can. This error is not related with...

Of cource you can. This error is not related with accessing globals. Somwhere in your code you're calling method of non-object variable. The easiest way would be to extend/edit your constructor...
Forum: Advanced PHP Programming 09-23-2011, 11:05 AM
Replies: 4
Views: 746
Posted By core1024
This two queries can be easely merged in to...

This two queries can be easely merged in to one.



SELECT stocklevel.*, COUNT(catID) AS numCats
FROM stocklevel
LEFT JOIN stock USING(catID)
WHERE jobID = '$jobID' GROUP BY catID

But English is not...
Forum: Advanced PHP Programming 09-20-2011, 08:10 PM
Replies: 3
Views: 1,012
Posted By core1024
I got 404 on this URL ie i got this message "Page...

I got 404 on this URL ie i got this message "Page not found
We are sorry, we could not find the page that you were looking for."
Forum: Advanced PHP Programming 07-23-2011, 02:04 PM
Replies: 4
Views: 671
Posted By core1024
I would suggest you try assigning this query into...

I would suggest you try assigning this query into a variable and just echo it inside a <pre> HTML tag. At the last line there is a space between "*mt.d" and "ays", but not sure if it is same in your...
Forum: Advanced PHP Programming 07-23-2011, 01:50 PM
Replies: 10
Views: 1,231
Posted By core1024
If you have shell access and your server is *nix...

If you have shell access and your server is *nix you can search for the bad code using:

user@host:~$ cd /home/imart/ #or where is your document root
user@host:/home/imart/$ grep -R 13060006407219...
Forum: Advanced PHP Programming 07-14-2011, 02:09 PM
Replies: 10
Views: 1,231
Posted By core1024
I think the easiest way to fix this is to create...

I think the easiest way to fix this is to create empty file, located at /home/imart/public_html/13060006407219.php and set it's permissions to 444 :)
Forum: General 07-08-2011, 07:58 AM
Replies: 3
Views: 1,263
Posted By core1024
Here is my js solution. <ul id="tabs"> ...

Here is my js solution.


<ul id="tabs">
<!-- **** INSERT NAVIGATION ITEMS HERE (use id="selected" to identify the page you're on **** -->
<li><a href="index.php">home</a></li>
...
Forum: Absolute Beginners 07-05-2011, 12:59 PM
Replies: 1
Views: 791
Posted By core1024
$sqlFull .= " FROM store_products"; $sqlFull .= "...

$sqlFull .= " FROM store_products";
$sqlFull .= " FULL JOIN feed_items";

Here if you see the word "FULL" means nothing but alias of store_products so either remove this word or change...
Forum: Absolute Beginners 06-02-2011, 07:03 AM
Replies: 11
Views: 1,247
Posted By core1024
<input type="text" name="ORDERING_DEPT" /> is...

<input type="text" name="ORDERING_DEPT" />
is repeated twice. Not sure if it is on purpose, but you should be careful with this.

SELECT ORDER_DESC FROM orders WHERE ORDER_DESC = 'CSF','LFT'
this...
Forum: Absolute Beginners 06-01-2011, 06:32 PM
Replies: 11
Views: 1,247
Posted By core1024
Do you want to add the values in separate columns...

Do you want to add the values in separate columns or joined in one column?

For all values joined you can just do something like this:
* * *
foreach($orders as $key=>$order) $orders[$key] =...
Forum: General 06-01-2011, 07:05 AM
Replies: 1
Views: 666
Posted By core1024
You can try indexing dle_post.title. I guess this...

You can try indexing dle_post.title. I guess this is what makes this script slow. Else could be slow connection to your DB server...
Forum: Absolute Beginners 06-01-2011, 06:51 AM
Replies: 11
Views: 1,247
Posted By core1024
How is your DB structured?

How is your DB structured?
Forum: Absolute Beginners 06-01-2011, 06:46 AM
Replies: 2
Views: 721
Posted By core1024
Hi! This is due DST. Just take a look in this...

Hi! This is due DST.
Just take a look in this example:
vlado@testing-pc:~$ php -r 'date_default_timezone_set("UTC"); echo ((strtotime("2010-12-13 23:00") - strtotime("2010-05-27 00:00"))/...
Forum: General 07-10-2010, 02:52 PM
Replies: 4
Views: 479
Posted By core1024
$nl=0; if(isset($testarr[0]['url'])) { ...

$nl=0;
if(isset($testarr[0]['url'])) {
foreach($testarr as $video) {
$nl++;
$yonlen = $video['url'];
echo "<a href=$yonlen>$nl - Download</a></br>";
}
}
Forum: Tips & Tricks 05-27-2010, 12:57 PM
Replies: 32
Views: 3,244
Posted By core1024
I see this threat is old, but I like classics...

I see this threat is old, but I like classics :-D
Here is my try:

$a=1;
$b=2;
function swab($x,$y){
global $a;
$a=$y;
$y=$x;
}
Forum: General 05-26-2010, 09:05 AM
Replies: 6
Views: 814
Posted By core1024
I've tested it and the result is...

I've tested it and the result is following

~/test$ php5 srv.php
Waiting for socket connection on 127.0.1.1:9996
Incomming connection accepted!
Socket file data read and saved...
Forum: General 05-22-2010, 02:26 PM
Replies: 8
Views: 630
Posted By core1024
you can even $r = mysql_query('SELECT no, matter...

you can even

$r = mysql_query('SELECT no, matter FROM whatever WHERE something');
mysql_fetch_assoc($r)
while ($row = mysql_fetch_assoc($r)) {
echo '<pre>'.print_r($row,true).'</pre>';
}
Forum: General 05-22-2010, 02:19 PM
Replies: 2
Views: 660
Posted By core1024
Hello, skibbly! The mistake here is that you...

Hello, skibbly!
The mistake here is that you thought "if username is wrong and password is wrong" instead of "either username or password is wrong" or even "if not username and password are ...
Showing results 1 to 19 of 19

 

All times are GMT. The time now is 09:29 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design