39,323 Topics

Member Avatar for
Member Avatar for RLS0812

What is the Python (2.7) equivalent of the PHP $_POST, $_GET, $_SESSION and $_COOKIE, and how are they used ? After almost 2 years of trying I have finally gotten Python to work on my WAMP server - only to find that it is severely lacking in web page functionality.

Member Avatar for TrustyTony
0
231
Member Avatar for apanimesh061

Are the crawled URLs stored in the database then they are traversed in BFS/DFS manner .... or is it something else ? Please Help!

Member Avatar for LastMitch
0
94
Member Avatar for mantapgan

Hi everyone, im trying to print getAktiva() but it return an error: "Fatal error: Call to protected method indukPerusahaanABC::getAktiva() from context '' in C:\xampp\htdocs\sad.php on line 41" Thanks in advance <?php class indukPerusahaanABC{ protected $nama; protected $jenis; protected $alamat; private $aktivaLancar; private $aktivaTetap; public function __construct($nama, $jenis, $alamat){ $this->nama = …

Member Avatar for broj1
0
492
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having trouble in inserting a date like "2012-12-06" into a database mysql, Im using phpmyadmin+wamp and adobe dreamweaver!I want to use 3 textfields, one for the year, other for the month and a last one for the day, but I always get an error by using …

Member Avatar for guilherme.carvalho.9250
0
283
Member Avatar for Wailintun

Please help me.I'll really thank for you help! How to write code for country, state and city drop down list menu? change automatically for state and city when country is selected.

Member Avatar for diafol
0
322
Member Avatar for neha05

hiii i want to share a video link from youtube in textarea and show on the div ,when im share embeded code from youtube it showed on the div but when im share the link ,it only show the link so how i ll i share link in same way …

Member Avatar for diafol
0
425
Member Avatar for mmmosias

What is the way to write a SELECT statement to retrieve data from several tables with the same name pattern. I'd like to select data from these tables: table_2012, table_2013, table_2014... I only want the tables that have the prefix (e.g. table_) and exactly the four characters for the year. …

Member Avatar for Atli
0
164
Member Avatar for LONGWAY

I need a very big help and is urgent. I have a big "permission" problem when i run this module and I get ths errors: Warning: fopen(tmp/::name.hsh) [function.fopen]: failed to open stream: Invalid argument in ... Warning: fwrite() expects parameter 1 to be resource, boolean given in... Warning: fclose() expects …

Member Avatar for LONGWAY
0
238
Member Avatar for piyush.dwivedi.5

Hello Everyone, I have a log.txt file in the format: ================================================ [Jan 25 2012 11:26:03] - ID2PDF v.2.6 (ID2PDF.jsx) General options: [default] (ID2PDF_options.xml) ================================================ Loaded options from XML file: '/the/path/to/file/ID2PDF_options.xml extendedPrintPDF started Postfix '4.4' was append from file 'FNM040112ArtichokeHandbook_lo-metadata.xml' for file: /the/path/to/file/FNM040112ArtichokeHandbook_lo.indd printPDF started PDF Export Preset: Hearst PDF 1.6_1_16_08 …

Member Avatar for veedeoo
0
213
Member Avatar for selasedaniweb

Hi Good friends, I have an index page for my blog that pulls up all posts to the page. I have a group of posts i have assigned to a category named 'Diary'. I want to prevent posts in the 'Diary' category from showing up on the index(home) page. The …

Member Avatar for selasedaniweb
0
428
Member Avatar for persianprez

So here is my current code that doesn't work for what I'm trying to do: <?php $urlp1 = "members/"; $urlp2 = 0; $urlp3 = ".html"; $url = $urlp1.$urlp2.$urlp3; $data = file_get_contents($url); ?> <script type="text/javascript"> var url = "<?php echo $url; ?>"; var temp = getElementsByClassName('daniweb'); document.write(temp); </script> <p style="margin-bottom: 50px;"></p> …

Member Avatar for AleMonteiro
0
336
Member Avatar for jamespope44

afternoon all! I am having some issue writing a log in script for a website! this is my first ever attempt so i am hoping it is something very straight forward!!!! I am getting the following error message - Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource …

Member Avatar for deceptikon
0
270
Member Avatar for saadi06

Hi, I am habving problem with tcpdf library.I am using Version: 5.9.162.I have a table format structure and the user writes in the table format and add the data and creates the pdf but my pdf file is not creating as i wish to create them some of the data …

Member Avatar for diafol
0
1K
Member Avatar for mathieu89

Hi, This has been troubling me for the last hour and I cant think of a way around it. My SQL table looks like this: **Name, Cost** Matt, $5.00 Carl, $4.50 Tom, $6.00 Tom, $7.50 I need to make a query so that it puts anything with the same **Name** …

Member Avatar for mathieu89
0
183
Member Avatar for skn123

<?php header('Content-Type: text/html; charset=UTF-8'); if (file_exists('./admin/actions/precheck.php')) { $testing_from = ''; require_once './admin/actions/precheck.php'; } $response = ''; try { require_once 'admin/config/ProjectConfig.php'; ProjectConfig::setup(); $options = array(); $application = new Moto_Html_Application($options); $response = $application->dispatch(); } catch(Exception $e) { echo '<b>Exception</b>: '; echo $e->getMessage(); } echo $response; Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on …

Member Avatar for pritaeas
0
106
Member Avatar for aa_day90

I have this calculator class that performs business calculations distributed among small methods. I'm split between choosing to save the state, or just calculate everytime a method is called. Am I doing unnecessary micro-optimization or not? class Bill { private $value1; private $rate1; private $value2; private $rate2; // ...code here …

Member Avatar for aa_day90
0
84
Member Avatar for muralibobby2015

Hello, i am new to magento. please clarify me i want to do below task if cart amount greater than (grand total)500 then charge 10% deposit at first and before product delivery user has to pay remaining amount. if cart amount(grand total<=500) then user has to pay total amount. how …

Member Avatar for LastMitch
0
128
Member Avatar for waqar3

I want to open this flash code in popup box. But can't find solution any one can tell me ho can it is possible. I want to used this in joomla CMS. <p style="text-align: center;"> <object height="215" width="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,32,18" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="src" …

Member Avatar for LastMitch
0
146
Member Avatar for singh007

I'm using Drupal 6.2 and Ck editor. Now whenever i upload some image in ck-editor , the image gets uploaded and saved in file system successfully. My problem is when i try to show data on some page , the uploaded image is missing but text is shown but when …

Member Avatar for LastMitch
0
202
Member Avatar for jdm

I'm almost done with college and I want to work on a side project that I could use to show case my skills. I'm looking for something that I can combine a bunch of different aspect into one. I know this will be a big project and won't be able …

0
176
Member Avatar for GraficRegret

so here is the line calling the function: $login = login($username, $password); if($login == false) { $errors[] = 'That username/password combination is incorrect'; }else { $_SESSION[user_id] = $login; header('Location: anounceEdit.php'); exit(); and here is the functions code function login($username, $password) { $user_id = user_id_from_username($username); $username = sanitize($username); $password = SHA1($password); …

Member Avatar for bpinkston1
0
209
Member Avatar for Djmann1013

Hi, I have this code here: **index.php** <?php include 'core/init.php'; include 'includes/overall/overall_header.php'; ?> <h1>Welcome to AwsomeChat!</h1> <p>This is AwsomeChat - a free place just to hang out. This site is made for chatting or socializing with a friend. This site is free, no membership needed to use this site.</p> <?php …

Member Avatar for diafol
0
862
Member Avatar for Resentful

Hello, everyone. I've been attempting to make a proper proxy checker to check for HTTP proxies for a while, yet I've been unable to find one that correctly finds working proxies. The bulk of my code is below. $ch = curl_init(); //initizlize and set url curl_setopt ($ch, CURLOPT_URL, "http://google.com"); curl_setopt($ch, …

Member Avatar for Resentful
0
180
Member Avatar for chira.laura.9

Heloo everyone. I have this code for a form in PHP...but when I use $POST['collection'] or any other from th drop down lists I cannot access the vaalue of the variable passed: <form enctype="multipart/form-data" action="insert_validation.php" method="post"> <table border="0"> <tr><th>Choose category: <tr><td><select name="category"> <?php $sql=mysql_query('SELECT category from Category order by category'); …

Member Avatar for broj1
0
344
Member Avatar for mehnihma

in the string XX is always changed and string can be longer or shorter and it can be without searched word, where XX is a number example: 1 kom. nije naručeno, obično dolazi za 5 dana., slični: sony-6am6ptb1a (0 kom.), sony-s006pb1a (-9 kom.) So from that I need to output …

Member Avatar for diafol
0
146
Member Avatar for GraficRegret

ok so here is the code that is being called <?php require 'core/init.php'; if(empty($_POST) === false) { $username = $_POST['userName']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { $errors[] = 'please enter a username and password'; }else if(user_exists($username) === false) { $errors[] = 'we can't find that …

Member Avatar for GraficRegret
0
362
Member Avatar for Clanstrom

I am a php newbie, and I have realised that there are many functions to learn in php, but can anyone point out which ones are the best for beginers? Can you mentions 10 most usefull functions or more?

Member Avatar for diafol
0
218
Member Avatar for Suzie999

I'm thinking of hosting a *name that tune* type game. I don't know anything about PHP or even if it's the languge to use, but I'm hoping someone might put me straight on that matter too. Here is an outline of my needs/scenario. I post a link to a song.mp3 …

Member Avatar for Suzie999
0
273
Member Avatar for amith_ami

hi all.. pls help me.. i want to sum the price of multiple products with its quantity and shipping charges. in my products table all the products have different shipping charges. for ex: product1 shipping charges. product2 shipping charges. shipping to US = $10.99 shipping to US = $14.99 shipping …

Member Avatar for amith_ami
0
133
Member Avatar for GraficRegret

ok so here is the code I am working with, <?php include 'database/conection.php'; $allowedExts = array("jpg", "jpeg", "gif", "png"); $extension = end(explode(".", $_FILES["file"]["name"])); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 20000000) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > …

Member Avatar for GraficRegret
0
59

The End.