38,022 Topics

Member Avatar for
Member Avatar for yesiamchamp

<?php session_start(); $_SESSION['number']=$_POST["number"]; $userAgent = "Googlebot/2.1 (+http://www.google.com/bot.html)"; $target_url="http://example.com/".$_SESSION['number']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$target_url); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile"); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile"); # SAME cookiefile curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $html= curl_exec($ch); echo $html; $dom = new DOMDocument(); …

0
57
Member Avatar for AdventDeo

Hello it's me again! So I've managed to create 4 linked drop down boxes like: Country : [===Country===|v|] Client : [===Client===|v|] Environment : [===Environment===|v|] System: [===System===|v|] And it's working fine with the codes written at the end of this post. Next step is I wanted a Table to contain 2 …

Member Avatar for Josh Connerty
0
233
Member Avatar for mbirame

Hi folks, I'm really at a loss here, and I'm no really even sure if this is the place to post-if not, please feel free to send me where you think I can figure this out! I have a php login page that is connecting to a database that is …

Member Avatar for Josh Connerty
0
95
Member Avatar for IntoDEV

Ok.. i have a script that lets the authorized user to browse and download the files they want(that's what it supposed to be), but... i can't get to give the user files via links. The files are in a different drive and folder then apache, so how can i make …

0
38
Member Avatar for jonow

Hello I am very new to PHP. I want to make it so i can edit a certain div in an HTML page using a WYSIWYG editor such as TinyMCE. Is there a way to do it so lets say I have a list of all the pages on my …

Member Avatar for jonow
0
131
Member Avatar for koyel555

I have created a form, created a table with background image (image can be changed dynamically) & inside table there are some divs <div>. There are some texts in div, these texts can be altered. What I need to submit/preview the form, when the form will be submitted 'only table' …

Member Avatar for FlashCreations
0
168
Member Avatar for rayhova

First off I want to apologize for any confusion as I'm not a programmer, so what I say, and am trying to convey, may come across as backwards or excessive. So I apologize for my ignorance. Somehow though, I manage to lumber my way through these scripts.. lol PHP Code …

0
82
Member Avatar for kote_p

Hi all, i need to write a script for the web portal that uploads pictures and text on the specific location on the page. I uploaded the picture but i can't display it.

Member Avatar for digital-ether
0
48
Member Avatar for lucky13

Hey I have a website and the administration panel is powered by cPanel. I cant seem to find out why i cant send mail when using the site I have squirrel mail installed and I have a cPanel password changer plug-in installed for squirrel mail., . here is the codeing …

Member Avatar for digital-ether
0
152
Member Avatar for whitestream6

I've been trying out arrays recently, and this is my coding: [ICODE]<?php $data = array('autoguide1'=>'car', 'baz'=>'boom', 'scotland'=>'haggis', 'php'=>'hypertext processor'); echo http_build_query($data); // autoguide1=car&baz=boom&scotland=haggis&php=hypertext+processor echo http_build_query($data, '', '&amp;'); // foo=bar&amp;baz=boom&amp;cow=milk&amp;php=hypertext+processor ?> [/ICODE] What I want to try and do is make my PHP code run so that I can include a …

Member Avatar for slyme
0
81
Member Avatar for daastan

hi, can anyone please guide me how to install PHP fourm and IIS server on WIndows XP . i really need to get started with this tahnx

Member Avatar for DdoubleD
0
276
Member Avatar for hawashafiq

hello reader.. i am developing a website. One of the web's page is PRODUCT page where user can view, or purchase the item. There are 3 categories under PRODUCT which are; pet, gardening and food.. I'd like to implement user preferences in this page. User will pick its preferences via …

Member Avatar for hawashafiq
0
146
Member Avatar for Hugo Brand

Hi I've been doing a study of some PHP code developed by another author in 2002. The article could be found at: [url]http://www.devshed.com/c/a/PHP/Building-A-PHPBased-Mail-Client-part-2/3/[/url] The functions I need help with in understanding are: function parse($structure) //custom function developed by author function get_attachments($arr) //custom function developed by author The following line gave …

Member Avatar for Hugo Brand
0
137
Member Avatar for ebaybe

Hello, I am new at this. My new website has 'weirded out' for this reason: Parse error: syntax error, unexpected $end in /home/content/e/b/a/ebaybe1/html/wp-content/themes/paisley/page.php on line 57 ???? Please tell me what this means and do I fix it from the site/wordpress end or the files end. I am using word …

Member Avatar for ebaybe
-1
201
Member Avatar for mcatominey

The code below should produce my homepage but it doesnt display the stuff from the database, the page works by setting the content as the $content variable and then replacing it in the template file to make the page, any ideas? [CODE]$content = '<div id="leftindex">'; if ($db_found) { $SQL = …

Member Avatar for mcatominey
0
95
Member Avatar for caps_lock

Looking at the source code of this website: [URL="http://superdialcouk.dmshop.biz/numbers/0207/choose.php?dmb1_SessRef=2009-08-22_15-29-14_8068_0003"]http://superdialcouk.dmshop.biz/numbers/0207/choose.php?dmb1_SessRef=2009-08-22_15-29-14_8068_0003[/URL] What code do i copy and paste to get that table of telephone numbers on my website, the numbers need to remain dynamic in thesense tat if theyre purchased from the site given above - they then should not be viewable …

Member Avatar for Dsiembab
0
154
Member Avatar for veledrom

Hi, I have [inlinecode]header("Cache-Control: private");[/inlinecode] in page1.php to prevent page expiry problem. Let's say, when user click on Submit button it will go to page2.php Page1.php should expire if the user hit Back in the browser to go back from page2.php to page1.php How can do it? Thanks

0
33
Member Avatar for rajeshsprabhu

I am trying to use WSDL file (webservices) to push data in Oracle database through PHP,MySql. While pushing data there is restriction that only 20 records at a time can be pushed in Oracle. Hence I need to create multiple instances so that through one php program I will be …

0
43
Member Avatar for AdventDeo

Hello, I have a MySQL database and I'm trying to make a dropdown list using PHP based on the value stored in my DB. So far I have this (copied, pasted, and edited from another forum): [CODE] <form action="maintest2.php" method="POST"> <table border="0" cellpadding="2" width="100%"> <tr> <td><b>Main Category:</b></td> <td> <select name="Name"> …

Member Avatar for AdventDeo
0
139
Member Avatar for greenglow

Hi, We're using PayPal standard. My understanding is that with the "Make PayPal optional for new users" option turned on in one's account, on checkout a customer will not be automatically returned to the local success page we've created, even though the URL is properly set and the auto-return option …

0
67
Member Avatar for DealthRune

I am making 2 cookies, but when they are set, it shows me this error "Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\index.php:4) in C:\xampp\htdocs\forum\index.php on line 81" But I dont have any headers?? Here is the code [CODE]$expire=time()+60*60*24*30; setcookie('username',$u,$expire); setcookie('password',$p,$expire);[/CODE] I made a …

Member Avatar for Josh Connerty
0
328
Member Avatar for Sanit

Hi everyone, I have a website where you can vote things up and down. There is no login required to vote and it should register that you have already voted on a particular thing you have already voted on the next time you visit. It seems to work fine but …

Member Avatar for Josh Connerty
0
88
Member Avatar for IrishHenshin

Hey so basically as the title suggests I want to develop a PHP website on my Mac, the site will not be hosted on my laptop but will be hosted on an Irish web hosting server. Anyway I am wondering what is needed to develop on the Mac? I just …

Member Avatar for IrishHenshin
1
116
Member Avatar for pabzzmike

hello, i have a php/mysql vehicle database with fields make, model, price and year. in my webpage ALL database records are displayed by default using the select command in a table. i would like add a filtering functionality on all 4 fields as such i have an arrow selector on …

Member Avatar for Will Gresham
0
100
Member Avatar for Raymond_Seger

Okay, first, i'm new on this website. Nice to meet you all :P My english is not perfect but i believe you guys can understand what i am trying to say. Ehem... Okay, i have this problem. I have the knowledge of programming (class, variables type, you name it. I …

Member Avatar for Raymond_Seger
0
106
Member Avatar for whitestream6

I got arrays working first time! :) This is the website's source code, the file is testing.php. Source code: [ICODE]<?php $data = array('test'=>'testingpage', 'test1'=>'test1a', 'cars'=>'mycarpage', 'php'=>'hypertext processor'); // echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor // test // echo http_build_query($data, '', '&amp;'); // foo=bar&amp;baz=boom&amp;cow=milk&amp;php=hypertext+processor // include("http://mywebsite.localhost.com/test.php/"); ?> [/ICODE] and when typed in the …

0
43
Member Avatar for crazy4fun

I'm new to this technology. I'd be glad if somebody help me in starting this and guiding me where to start? and how to start? to learn this new technology.

Member Avatar for crazy4fun
0
150
Member Avatar for bsjy

I have been trying to use one of the many ajax autosuggest code snippets available on the web to help me with a table server scheduling form. My scheduler can find the people by their last name, and I can auto-suggest that. The database would like to record the server's …

Member Avatar for bsjy
0
107
Member Avatar for DealthRune

I'm making a PHP forum script But, when ever i try to add a new topic it gives me this error: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) VALUES (Test, General …

Member Avatar for DealthRune
0
92
Member Avatar for dmorrison

[CODE]include"../../pages/config.php"; $selectrow = mysql_query("SELECT * FROM members"); $query = mysql_fetch_array($selectrow, MYSQL_ASSOC); //Run business removal if ($query['Enable'] == "true"){ if ($query['autoRemove'] <= "0"){ $removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0"; mysql_query($removeSQL); echo "Business Removed. {$query['username']}<br>"; } $remove1 = "Update AccLink SET autoRemove = autoRemove -1"; mysql_query($remove1); echo "Run Sucessfull …

Member Avatar for somedude3488
0
128

The End.