38,019 Topics

Member Avatar for
Member Avatar for Keidi

I am trying to call a php script through a shell script.The script is to be called as the run on receive directive of gammu-smsd.My php script executes as expected when I call it using[CODE]/opt/lampp/bin/php myvarsreader.php[/CODE].However on trying to run my script(From terminal): [CODE]#!/bin/sh PROGRAM=/opt/lampp/bin/php myvarsreader.php eval "$PROGRAM \"\${SMS_${i}_NUMBER}\" \"\${SMS_${i}_TEXT}\"" …

Member Avatar for ckoy
0
390
Member Avatar for David 78

Hello guys...actually it's going to be a pretty hard question and probably hard to solve. Here it goes: I have a table of added members and the same table exists in "remove_members" page where I added a checkbox to each user's picture. The pic/user is supposed to be deleted when …

Member Avatar for David 78
0
129
Member Avatar for rolyestemonio

Hi..Can anyone help me out? Can anyone give me a sample image uploader in php? That it will store to php mysql database? With 4 fields namely(id, image_name, images, descriptions). [b]These are my fields.[/b] [CODE]<form action="" method="post"> <input name="image_name" type="text" id="image_name" value=""/> <input type="file" name="images" id="images"> <input name="descriptions" type="text" id="descriptions" …

Member Avatar for rolyestemonio
0
108
Member Avatar for hawk_40

Hi, I want to search a particular word from a string here is it $str="<a href" is there any way to find this link embedded in the string .... and if found it must echo "found.....................

Member Avatar for xinam
0
102
Member Avatar for phpbeginner

hi all.. is it possible to convert this array, Array ( [123] => Array ( [0] => AAA [1] => BBB ) [124] => Array ( [0] => CCC [1] => DDD [2] => EEE ) [125] => Array ( [0] => FFF ) ) to this type of array …

Member Avatar for Shanti C
0
79
Member Avatar for Xtremefaith

Having issues working with dates in PHP, very new aspect of PHP for me. Couple things I'm trying to accomplish and wouldn't mind a simple tutorial/explanation of since everything I'm finding assumes I know more than I do: [B]1. How to sort by dates?[/B] [I]Currently I am trying to query …

Member Avatar for Xtremefaith
0
157
Member Avatar for ujsiriwardana

i'm creating a e-cart. i have a problem to update cart. I want to use session array to create cart, but i don't know how to do it. can some help me to create SESSION ARRAY which can add several data. $_SESSION['ecart'] = $details; how to add several data for …

Member Avatar for eoliva
0
135
Member Avatar for medobangs

I know this is a long one but I've been trying to work around the coding for days, any help will be of great help. ______________________________________________________________________________________ [B] I have a bit of a problem, I have three pages: student_login.htm(to take in id and pwd),loginstdck.php(to check if the values match with …

Member Avatar for medobangs
0
295
Member Avatar for phpDave

Hello everyone, I am working on a script that allow users to upload an image. So far it's working except that I created an include file that is supposed to re-size the image. It's not working and I'm not sure why. Any thoughts? Here is the include file script: Thanks! …

0
46
Member Avatar for mbarandao

Hello: I have a mysql table that stores customer transaction information. I want to sum column name "total" --which has values like this: $253.20-- only where the value of another column is "mossa01". For this, I passed the variable to the code via url and trimmed it. I then used …

Member Avatar for mbarandao
0
112
Member Avatar for Joe34
Member Avatar for brandonna

I'm planning the redesign/upgrade of my site which is currently in wordpress to something that looks like the following. Can you experts out there in .php tell me if these are: 1) just custom wordpress templates or designed from the ground up 2) how much it would cost to do …

Member Avatar for chrishea
0
136
Member Avatar for Mapnoob

Hi guys/gals! I've read through a lot, great site but I'm stuck and have started pulling out teeth:( I would like to selectively display markers (that change everyday) on a Google map, using a a couple of checkboxes (areacode)and a selection list (prices). [CODE] <!--Based off of code from: http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/--> …

0
248
Member Avatar for Joe34
Member Avatar for Joe34
0
106
Member Avatar for NutanGadakh

I'm creating a website in which one menu contains forms.Every form is dependent on another form.I have many forms like this which should be fill by user one by one for that what should i use to keep tracking of user and forms. Can any one help me?

Member Avatar for chrishea
0
60
Member Avatar for sravi.pearl

hai all, any one can please tell me how to export an excel data into wampserver mysql....

Member Avatar for chrishea
0
78
Member Avatar for saadi06

hello can any one help me i have a code for pagination and it is working properly but i want give it a condition that if the first page is shown then nothing should be displayed and if the data is on the second page then the pagination should start …

Member Avatar for davehere
0
111
Member Avatar for arthurav

I have some text in a block with a certain width. I can count the number of lines in the text with substr($text,"<br />" but this is not the same with the number of line of the formatted text at that width. Is there a way to calculate that? Thank …

Member Avatar for diafol
0
125
Member Avatar for pjh1985

Hi, I am developing a dynamic website and i want to highlight the current page but i'm having some trouble in applying the styles to the links. Here is what i've got so far: [CODE] <?php function checkPage($fPage) { $fCurrent = $_GET['title']; if($fPage = $fCurrent) { $fStyle = 'class="activelink"'; return …

Member Avatar for pjh1985
0
178
Member Avatar for Roriomphe

Hi All I have created a form for a user to register and be able to Logon.I need help with username and password validation code.This is what i have done so far and I'm getting this error:error: Column count doesn't match value count at row 1 Warning: mysql_num_rows() expects parameter …

Member Avatar for Roriomphe
0
115
Member Avatar for RoyalElite96

Hi, I do know a bit PHP and also had no probles with regular expressions, [I]until now[/I]. This is my code: [CODE] $string = ereg_replace("([\"](.*)[\"])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] . Why doesn't it work? It all runs fine when using: [CODE] $string = ereg_replace("([*](.*)[*])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] , but I want …

Member Avatar for RoyalElite96
0
202
Member Avatar for coxdabd

Hi, do I need to LIMIT my blast script to fire out an emailer or can I just take it out. We have around 500 email address in our database. Having to reload the script is going to become painful - is there anything I can do? My hosting provider …

Member Avatar for coxdabd
0
254
Member Avatar for muralibobby2015

hello.... i am searching google images from my website. when ever i searched with keyword i am getting 500 internal server error. how to solve this problem? even i informed to webmaster, he said it is the programmer issue. we can't do anything for this. i searched a lot for …

0
73
Member Avatar for xuexue

could you help me guys to translate this code from PHP MySQL to PHP ODBC. i'm having a hard time to run this page using the PHP ODBC which uses MSSQL connection. any help would be very much appreciated.. thanks in advance ^^ [CODE] <?php $return_arr = array(); $sql = …

0
86
Member Avatar for lyrico

Hi to all, Can anyone show me a sample php code on how to get the client's Mother Board Serial Number? Thanks.

Member Avatar for ddggttff3
0
79
Member Avatar for chamoo007

i have a question that can we make a dynamic title using php??? is it possible? i mean the header

Member Avatar for almostbob
0
211
Member Avatar for luiii

%01 Error: Method Not Implemented GET to "..." not supported. I use this code to create a Cookie containing the Users Username: [CODE]$value =$_POST[user]; setcookie("Login_Name", $value, time()+3600);[/CODE] Then I get the above error on all pages of my site, untill the cookie expires in 30 mins. A quick scan on …

Member Avatar for Kieran Y5
0
113
Member Avatar for gamebits

The situation is this, I go on eBay do a search, look at the source code, copy the area that I want to parse, paste it in my script, run the script and get what I want from it. So basically in my script I have a variable like this …

Member Avatar for Kieran Y5
0
117
Member Avatar for divyakrishnan

Hi.. I have an issue on my project.I want to open a particular page of a PDF by clicking a hyper link.How should I do it?any idea ?

Member Avatar for chrishea
0
74
Member Avatar for El Duke

Hello folks, In short, this code is vulnerable: [CODE] <div class="search"> <form action="/search" method="get" name="header_search"> <label>{l t='Search Business'} <input name="searchtext" type="text" id="searchtext" placeholder="{l t='e.g.Marriott'}" /></label> <label>{l t='City'} <input name="cityname" type="text" id="Hsearchcity" autocomplete="off" placeholder="{l t='All Cities'}" class="commentColor cityname"/> </label> <a onclick="header_search.submit()" href="javascript:void(0)">{l t='Search'}</a> </form> </div>[/CODE] I have been trying to implement …

Member Avatar for Stefano Mtangoo
0
239

The End.