39,393 Topics
![]() | |
I have a bit of a problem. I am opening a file that has been exported from access with fopen(), reading it to a variable with fread() and then closing it. these files unfortunately have a LOT of blank lines. ex(one of them has over 50,000 blank lines). So i … | |
I am new here and having a big headache. I have inherited a web site at my job. It is a site for a history magazine and I need to be able to have a search and advanced search option that allows users to search the article table by keywords. … | |
Hai, i want to send mail from my localhost in php,i try to using my outlookexpress smtp and email parameters but it gives warning like this Warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in D:\wamp\ww It's possible to send mail … | |
I want to make so that you can download a affiliate-link (exe-file) direct from a "download"-button... but the problem is that this company (who provide the affiliatelink) doesn't have a solution when it's about "download direct". I saw on a site ([URL="http://www.pokerlistings.com/betfred-poker"]http://www.pokerlistings.com/betfred-poker[/URL]) that apperently had a solution which makes a … | |
Bought webstore and using Lunarpages host, but cannot get past Parse errors in forum.php and forum_login.php to complete set up. Errors read: Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in /home/pagan4/public_html/forum_login.php on line 23, and Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home/pagan4/public_html/forum.php … | |
[php] <?php session_name ('YourVisitID'); ini_set('session.use_cookies', 0); // Don't use cookies. session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php # Script 16.0 - login.php // Send NOTHING to the Web browser prior to the session_start() line! … | |
I was trying to echo the quotation " in a string, but I realized it wasn't going to work the way I thought it would, does anybody know how to do this? Thanks | |
If .. Or Switch. Which one is better? Are they used for different things? Any pros or cons for each? Or is it just a matter of which one you like best? :) | |
See, I am using the following PHP code to generate a PNG image file [CODE]<?php // create a 100*30 image $im = imagecreate(100, 30); // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left … | |
Hi, I am very new to PHP and i am getting an ... Parse error: parse error, unexpected T_STRING i have removed this bit of code and the page works perfectly. but i need this piece of code... <? display_dl_menu("Related Links", " - <a href=\"http://www.indiana.edu/~jshouse/purpose.html\" target=\"_blank\">Jill's House Website</a>"); ?> I … | |
Hai friends previously I have optimized the query using index that time in my database only 65000 record ,right now in my database 1,50000 recoreds so i need again optimize the query .Now my site loaded very slow . Please give me any suggestion how to optiminze the query agian … | |
Please help, can't seem to see where problem lies. I have placed session_start() at start of script, yet problem recurs. Will appreaciate suggestions. [php] <?php session_name ('YourVisitID'); ini_set('session.use_cookies', 0); // Don't use cookies. session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" … | |
Here im working on this code and I cat quite get it to work I want it to take the entries from a form, check to see that they meet the criteria (pass must be 6 chars, must be 13 or older) and then insert them into a table in … | |
I am using a script that counts clicks on various links in the home page. The site is for the community channel of a cable TV company and the user can purchase ads or post an obituary or a weather related delay or calcellation. We want to add a count … | |
Hi all, does anyone know if it affects the way google ranks a page if most of the data in php pages is drawn from MySQL? For example - a simple [B]About Us[/B] page... One page in php with all body text drawn from MySQL, versus, one page in php … | |
My Contact form on my website [url]www.allinclusivewebdesign.co.uk[/url] does the job well. However, as the time went by, I've been thinking to make it do MORE than just a basic form, allowing me to receive the information viewers' submits (as it does perfectly well, at the moment). I wonder if anyone … | |
I'm dizzy trying to figure out what I should do, I will treasure whoever can help me! When a user comes to the site they are automatically in their own $_SESSION, they are greeted by their username, it looks professional really nice... If the person is not a member they … | |
I have three question: 1) how can i post a variable which is an array? 2) Lets say i post declare a variable by typing: [php]$_POST['test'] = 'hello';[/php] would it transfer that variable to next page. 3) is it possible to post variable with the header command: [php]header("Location: index.php?Successful=UPDATED&hello=yes");[/php] into … | |
Could someone please direct me on a way to make my phpBB forum more interactive like to say vBulletin? Thanks for any help | |
Hi all, I would some help in C++ (Files) and in web design using php | |
Hi,I can provide all the code etc if you like but this is a very general query and therefore im hopeful someone can answer without too much inconvenience caused.My position and steps so far are basically this - I built a database full of information in MS Access.I duplicated it … | |
sorry for my ignorance but i am a true learner at this web site building game and only started trying to build my site a few months ago. i have now created a monster ( be it a basic one ) my site is [URL="http://www.racehorsetrainer.com.au/"]www.racehorsetrainer.com.au[/URL] and i am offering trainers … | |
![]() | Ok I just installed the software that came with my book, (php mysql and apache all in one) The apache stuff, the mySQL stuff and the php stuff. Everything went smoothy apart from the php bit. I had to alter a few dlls or something to make it work? However, … |
[LEFT]I don't know if this is the right place (because I don't know if it's PHP-related). I've registrered two .com-domains (the will go to two dofferent unrelated sites) which I have on the same account on the sama webhost. When I asked my webhost about it they told me that … | |
how deposit a picture to MYSQL database below is the code : <?php $id=$_POST; $photo=$_POST; if ($photo<>""){ $fp=fopen($photo,"r"); $data=addslashes(fread($fp,filesize($photo))); } $sql="insert into product(id,pic) values('$id','$data')"; mysql_query($sql,$conn) or die ("插入数据失败: ".mysql_error()); ?> but always unsuccessful! why? plz help me! | |
Does any of you know how to mask a URL in php?? Like the one you see in free URL [URL="http://www.shorturl.com"]redirectional services[/URL] I mean I have a url like [url]http://www.my-server.com/[/url] which will redirect me to [url]http://www.some-other-server.com/abc.php[/url] by the following PHP command [CODE]header("location: http://www.some-other-server.com/abc.php");[/CODE] But I want the URL in the … | |
i m trying to do shopping cart. i am struck in between. i did chekout,add,update ext in shoopping cart and when person try to checkout he should complete the form with all credit card info ,addressext. and connected to payment gateway like verign for creditcard validation.anybody pls tell me how … | |
I need libxml-2.4.14 or later (libxml installs a DOM XML library that is used to construct and parse XML messages. Learn more about libxml at [url]http://us2.php.net/manual/en/ref.domxml.php[/url]) to be installed for a script on my site to work. However, this library is not installed on my server and I am currently … | |
Hi, Can anyone kindly help me to modify the following script to diplay the result in several pages if the resuts are greater than 10. [php] <?php $action = $_SERVER['SCRIPT_NAME']; ?> <?php //if(!$_POST['search']=='result') //{echo "<p style=' font-family: arial; color: blue; font-size: 14px;'>You are not authorized!</p>"; return false;} //$choice=$_POST['choice']; $name=$_POST['name']; $link=mysql_connect("localhost", … | |
I have created a login script using a session. Anyone can log into the website but I want to make it so a particular link is only shown if the user has permission. In the database, access is shown simply by a Y or N (for Yes or No). If … |
The End.