Search found 46 matches

by Thunderbob
Fri Jun 28, 2013 5:50 pm
Forum: PHP
Topic: file_get_contents super slow ...use curl?
Replies: 1
Views: 893

file_get_contents super slow ...use curl?

So I'm grabbing some html tags from another site and the load times for file_get_contents is at least 8 seconds. Here's what my function looks like (query is submitted through user form) [syntax=php] function getTitle($query) { $opts = array('https'=>array('header'=> 'Connection: close')); $context ...
by Thunderbob
Mon Mar 25, 2013 4:12 pm
Forum: General Chat
Topic: Building an active forum
Replies: 1
Views: 3672

Building an active forum

I was wondering how I too can build an active forum. What are the steps needed to go about this properly? I'm the only one posting in mines and it's a barren wasteland with month old posts. I did a giveaway once but that only worked for a week and I don't want to buy inflation traffic. I joined this...
by Thunderbob
Tue Mar 19, 2013 7:46 pm
Forum: PHP
Topic: grabbing variable...from inside a string
Replies: 4
Views: 877

Re: grabbing variable...from inside a string

Thanks worked like a charm
by Thunderbob
Mon Mar 18, 2013 4:21 pm
Forum: PHP
Topic: grabbing variable...from inside a string
Replies: 4
Views: 877

grabbing variable...from inside a string

Hello So I want to make it very easy for site visitors to share videos that they find on youtube. At first I was requiring them to copy and paste the embed code and the video url(for like buttons) I feel that it's a little to much for them and most of the time they mess up. Now I want to store only ...
by Thunderbob
Fri Nov 23, 2012 9:45 pm
Forum: PHP
Topic: Echo PHP
Replies: 2
Views: 757

Echo PHP

SO on my site I have a navigation bar. yourtechview.com Now in the past I've had to manually change every single freaking link in the navigation bar on ALL 40 plus pages of my site. As you can tell this becomes a very very strenuous process. I am now trying to store all of the navigation bar informa...
by Thunderbob
Wed Aug 22, 2012 8:31 pm
Forum: (X)HTML
Topic: not being redirected to missing.html
Replies: 3
Views: 2366

Re: not being redirected to missing.html

[syntax=php]AuthType Basic AuthName "User Backups" AuthUserFile /home/content/66/9481266/html/stats/.statspwd require valid-user Options +Indexes [/syntax] This was not located under the root folder but under db_backups [syntax=php]register_globals = off allow_url_fopen = off expose_php = ...
by Thunderbob
Tue Aug 21, 2012 11:59 pm
Forum: (X)HTML
Topic: not being redirected to missing.html
Replies: 3
Views: 2366

not being redirected to missing.html

I'm registered with godaddy and in my root directory is missing.html. Until yesterday if anyone tried to edit the header to some bogus location such as yourtechview.com/grherugohg8t45oh8.php then it would redirected to missing.html. Now it's not. Is this even an html issue? this is missing.html [syn...
by Thunderbob
Fri Aug 10, 2012 12:21 am
Forum: PHP
Topic: session lost when using www.
Replies: 4
Views: 1018

session lost when using www.

Not sure what is going on but I have been having issues with automatically logging out when "www." is used in the header. when I log into the site such as www.blahblah.com .. then my session is working as long as "www." is in the header.. If the header is changed to blahblah.com ...
by Thunderbob
Tue Jul 31, 2012 3:34 pm
Forum: Tutorials
Topic: like button tutorial trouble
Replies: 3
Views: 898

Re: like button tutorial trouble

hmm it seems to work somewhat.
It redirects it to the general area of where the post should be on the page but if I'm
looking at a long list of items, it will still require me to scroll up to see the post I left off on.

Also this does not work with firefox and internet explorer.
by Thunderbob
Tue Jul 31, 2012 1:56 am
Forum: Tutorials
Topic: like button tutorial trouble
Replies: 3
Views: 898

like button tutorial trouble

So on my site a user as a "wall" where they can post status updates and other people can post a comment on their wall. The issue is that the like button refreshes the page and the user has to scroll all the way back down just to pick up where they left off. This can be quite frustrating fo...
by Thunderbob
Mon Jul 30, 2012 8:47 pm
Forum: PHP
Topic: Little help for a noob.
Replies: 4
Views: 841

Re: Little help for a noob.

You'd have to post your code for anyone to help you and change the title to something relevant to your problem. 8-)
by Thunderbob
Sun Jul 29, 2012 3:53 pm
Forum: PHP
Topic: displaying info from database using foreach- SOLVED
Replies: 8
Views: 1378

Re: displaying info from database using foreach

got it working did this [syntax=php]function fetch_subscribedto() { $users = array(); $result = mysql_query("SELECT `subtoid` AS `id` , `username` AS `username` FROM `subscribedto` WHERE `myid` = '{$_SESSION['uid']}' "); while (($row = mysql_fetch_assoc($result)) !== false){ $users[] = $ro...
by Thunderbob
Fri Jul 27, 2012 12:41 pm
Forum: PHP
Topic: displaying info from database using foreach- SOLVED
Replies: 8
Views: 1378

Re: displaying info from database using foreach

[syntax=php]function fetch_subscribedto($subscribedto) { $result = mysql_query("SELECT `id_user` AS `id`, `username` AS `username` FROM `fgusers3` WHERE `username` = {$subscribedto} "); $users = array(); while (($row = mysql_fetch_assoc($result)) !== false){ $users[] = $row; }echo mysql_er...
by Thunderbob
Thu Jul 26, 2012 6:19 pm
Forum: PHP
Topic: displaying info from database using foreach- SOLVED
Replies: 8
Views: 1378

Re: displaying info from database using foreach

good progress now I can see 1 our of the 2 users I am subscribed to. I made somechanges I made to separate tables subscribers contains id, myid, subtomeid, date subscribedto contains id, myid, subtoid, date changed the queries [syntax=php]<?php session_start(); require_once 'dbconnect.php'; $sqlComm...
by Thunderbob
Thu Jul 26, 2012 2:18 pm
Forum: General Chat
Topic: editor software
Replies: 4
Views: 962

editor software

Hey guys I noticed I come here a lot and ask questions regarding my php problems. Sometimes I am able to solve a problem just because of the way the PHP syntax tracker shows my code. I can easily pinpoint my errors especially..missing a ; , ' } and </div> . Would anyone know of any free software tha...
by Thunderbob
Thu Jul 26, 2012 2:02 pm
Forum: PHP
Topic: displaying info from database using foreach- SOLVED
Replies: 8
Views: 1378

Re: displaying info from database using foreach

cool. Now there are no errors. However, it's not printing any of the data. [syntax=php]<?php foreach (fetch_subscribedto() as $user){ ?> <p> <a href="profile.php?uid=<?php echo $user['id'];?>"><?php echo $user['username']; ?> </a> </p> <?php } ?>[/syntax] when I echo $subscribedto I get a ...
by Thunderbob
Thu Jul 26, 2012 5:39 am
Forum: PHP
Topic: displaying info from database using foreach- SOLVED
Replies: 8
Views: 1378

displaying info from database using foreach- SOLVED

I'm working on a subscription system that works similar to youtube so far I am able to manualy subsribe to users by inserting data into the database. Now I want to display the array of users that I am subscribed to on my profile page. However, I am a bit confused on the foreach function and I'm runn...
by Thunderbob
Tue Jul 24, 2012 1:20 am
Forum: PHP
Topic: Getting info from DB based on form submission - SOLVED!
Replies: 7
Views: 1011

Re: Getting information from DB based on form submission

Hey guys I got it working.

I did this

[syntax=php]if (mysql_num_rows($query2) > 0){
$row = mysql_fetch_array($query2);
$toid = $row['id_user'];}
echo mysql_error();[/syntax]


At first it was saying ==0 instead of > 0 which was a mental blunder on my part.
by Thunderbob
Tue Jul 24, 2012 1:04 am
Forum: PHP
Topic: Getting info from DB based on form submission - SOLVED!
Replies: 7
Views: 1011

Re: Getting information from DB based on form submission

Temor: Doesn't seem to do anything. The messages are still being inserted into my database just without that variable. Jacek I just want to make sure I am following your instructions properly....like this? [syntax=php]$query = mysql_query("SELECT `id_user` FROM `fgusers3` WHERE `username` ='{$t...
by Thunderbob
Mon Jul 23, 2012 5:51 pm
Forum: PHP
Topic: Getting info from DB based on form submission - SOLVED!
Replies: 7
Views: 1011

Re: Getting information from DB based on form submission

No dice.


Is it silly for me to believe the location of the query relative to the form will change something?
by Thunderbob
Mon Jul 23, 2012 5:16 pm
Forum: PHP
Topic: Getting info from DB based on form submission - SOLVED!
Replies: 7
Views: 1011

Getting info from DB based on form submission - SOLVED!

So I am still working on a pm system and it is 90% finished. Here is the form being submitted. This is the "send message" form [syntax=php]<form name="form id="form" method="POST"> Send To:<br> <input type="text" name="to_user" id="to_user&...