39,323 Topics
| |
I belong to a forum on forumer.com. Recently, we had a member sign up (it's a support group for parents of premature babies) using STOLEN pictures from other members' websites and this new member was trying to pass these babies off as her own. Although it is NOT against forumers … | |
Ok so I am trying to create some BB code from scratch, and my big problem is the \S and \s and .* are very greedy. For example, when I try to use bb code on something like this: [php]$text = "[b]abcdefg[/b] !@#$%^&* [b]0123456789[/b]"; $text = preg_replace("/\[b\](.*)\[\/b\]/","<b>\\1</b>",$text); //same thing: //$text … | |
I know how to create standard php files, but how would I add the ?blabla to the end of the url. IE my forum url looks like this /index.php?act=home How would I make it look like that? Thanks | |
Well i trying to make a logout link that will exit frames to go to normal html page: when someone logout this command is run 2 transfer to next page: [PHP]header("Location: index.php?result=0"); [/PHP] what i am trying to do is exit the frames so that the index file is showed … | |
I have been trying to insert google adsense ads to my website but everytime i try to add the code it says that thel HTML tags im using are not allowed. I know this code is javascript but i just cant seem to use it on my site! i emailed … | |
How can I make media photos at my site?When click them,the medias play.Which sofware should I use?Can you tell me how? | |
i write a script to display visitor IP address. I use this : $HTTP_SERVER_VARS["REMOTE_ADDR"] but my visitor say he has two IP different when show two website. With showmyip.com he has : 222.252.36.104 With my script he has : 203.162.1.49 and he say that the IP with showmyip.com is real … | |
If I have an array $abc=[0,0,0,1,0,2]; how to change it to $abc=[1,2]; (remove all 0), is there php function can handle that? thanks. | |
to help me add some new features to my dating site, im tryin to add video chat, if u know how to do this or have some good idea pm me | |
Hi, I am tryiny to write a program which will allow me to upload a image and after which i had uploaded the image, I will be able to calculate the RGB values of the image which i have uploaded. The code works this way: //user to upload image file … | |
This is my first time posting and I apologize for already beating a dead horse with resizing images using PHP but I am constantly getting an error. I have been to: [URL]http://www.daniweb.com/techtalkforums/showthread.php?t=1722&highlight=PHP+image+resize[/URL] and [URL]http://www.daniweb.com/code/snippet250.html[/URL] and I always get this error Call to undefined function: imagecreatefromjpeg() Any suggestions? Thanks a lot | |
OK I wrote this query but i keep on getting error on it: [PHP]$query2 = "INSERT INTO ATTENDANCE (Class,Time,T_User_Name,S_Number,Absent,Date) VALUES ('$Class','$S_Type','$_COOKIE[User]','$S_Number','1','$Date')"; [/PHP] the error i get from php logs is: [28-Dec-2005 17:51:07] PHP Parse error: parse error, unexpected T_VARIABLE in /test/teachers/take.php on line 27 ------------------------- line 27 is the query … | |
hey i own two forums that are the same, one is a free service with ads and stuff but its really good, i like all the features it has added to the admin panel [url]http://www.createforum.com/phpbb/index.php?mforum=ontarioforumtk[/url] then i have another one thats the same but paid for and hosted on one … | |
Hi guys, I have written a simple code here that should be able to display the image "tulips" from my database? But it does not work, wondering what is wrong with the code? <?php // database connection $host = "localhost"; $user = "user"; $pass = "password"; $db = "imagedb"; $table= … | |
I am looking for a very simple calander function that just reads info from mysql or txt file what ever is handier Can anyone recommend a setup? | |
I am still a bit of a newb, but am getting the hang of webdev. My problem is in changing/updating a user's password. The good news is that I know I am hitting the mySQL table b/c I am able to see data appended. However, that's also my problem. When … | |
Hi, I had written a small program in php, which will allow a user to upload an image to the database. My question is whether can i locate the directory of the image from where it was uploaded from? this is part of the code for uploading: " // Do … | |
I have a directory full of pictures how do i shrink them? Have juse installed gd Can anyone help me? | |
Hi! In LDAP base I have some attrs by hierarchy: cn=attributes,cn=stubs,cn=lookups,cn=domain Inside this node there is a list objects: cn=PhysDevName, cn=LogDevName, cn=Location... I read to read them in an array I do: ... $ds=ldap_connect("localhost",389); // must be a valid LDAP server! if ($ds) { if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { echo … | |
I'm kind of new to PHP. I wanted to know how to get my site to open in it's original url ie: [url]http://blah4site.com/name[/url] instead of [url]http://blah4site.com/name/index.php[/url] or having a slpash page and then going into the [url]http://blah4site.com/name/index.php[/url], when someone first visits the site. I hope this isn't too confusing. Here … | |
hi, I need help in installing gd library with php4.3.10 on windows platform. I have uncommented the line "extension=php_gd2.dll" and set the directory " extension_dir = "c:\php\extensions\" " where i have installed php in the php.ini file in c:windows. But it still doesn't work. Wondering where i had gone wrong. … | |
I have writen a scipts in linux its called user.sh i wounder how do i run it in a php script I can if i just run it in command line ./user.sh it works perfect but can i add it into my code. thanks | |
Hello friends i hope u all will be fine...am also enjoying the blessings of Life... Dears i am from Pakistan (Asia) and an IT Student.....i love to develope Web Site but hasnt any professional experience so i want to learn Php so that i may do something dynamically and i … | |
I have a database that returns information about a customer's jobs that have shipped. It displays correctly, but I would like the carrier name to be a link to the carrier's website so the customer can track it on line. I have the carrier's website listed in the database. how … | |
I need to improve our online calendar but the ones I have seen so far, will not handle the number of events I need to list, without horizontal scrolling. Several of our members have mobility limitations and horizontal scrolling is inappropriate. The calendar should have a chronological list for each … | |
hi guys, i ran into this error "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\web\imagedb\pixel.php on line 19" while running the code: <?php // database connection $host = "localhost"; $user = "user"; $pass = "password"; $db = "imagedb"; $table= "image"; $conn = mysql_connect($host, $user, $pass) OR … | |
hi, I need help in installing gd library with php4.3.10 on windows platform. I have uncommented the line "extension=php_gd2.dll" and set the directory " extension_dir = "c:\php\extensions\" " where i have installed php. But it still doesn't work. Any advice will be greatly appreciated. Rgds, tristan | |
I am developing my first e-commerce site and have run into a slight problem with the page counter. As you can tell in my code below, I set my number/Pg and start page level vars as follows: $numPerPage=3; $start=0; I know I am missing a limit in my SQL stmt, … | |
I seem to be having a problem getting this while() loop to work... [PHP]include("database_connect.php"); $query = "SELECT id, title, date FROM entries"; $result = mysql_query($query); while ( $result = mysql_fetch_assoc($result) ) { $id = $result["id"]; $title = $result["title"]; $date = $result["date"]; echo "<div class=\"recent_entries\">"; echo "<a href=\"archives.php?id=" . $id . … |
The End.