1,317 Posted Topics

Member Avatar for jaikanth123

If you want to run on a windows server and use Microsoft tools like SQL Server or Visual Studio ($799 and up) then this might be an OK solution. If you are aiming to write PHP applications that use MySQL and may run in Linux or Windows, then there are …

Member Avatar for chrishea
0
89
Member Avatar for doctorphp

This utility will work without CRON and can be triggered by activity on your site instead. You can't depend on it to run at a specific time however unless your site gets regular traffic. [URL="http://www.phpjobscheduler.co.uk/"]http://www.phpjobscheduler.co.uk/[/URL] I have another possible option for you and I will send you a PM for …

Member Avatar for chrishea
0
136
Member Avatar for MackAttack30

You should build a second version of the page with just the info to be exported and create the excel file from that.

Member Avatar for MackAttack30
0
69
Member Avatar for tunde011

Get the current time as a timestamp [ $wk = strtotime("$my_date $my_time"); ] Subtract your 5 minutes / 300 seconds from it [ $wk2 = $wk - 300; ]. Then you can do whatever you need to do with it: e.g. display it: [ echo date("Y-m-d H:i:s",$wk2); ]

Member Avatar for chrishea
0
758
Member Avatar for rajeesh_rsn

If you are looking for something simple, this might do it: [code=php] function is_mobile(){ $regex_match="/(nokia|iphone|android|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|"; $regex_match.="htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|"; $regex_match.="blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|"; $regex_match.="symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|"; $regex_match.="jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\*mini|320x320|240x320|176x220"; $regex_match.=")/i"; return isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT'])); } [/code] This comes from: [URL="http://mobiforge.com/developing/story/lightweight-device-detection-php"]http://mobiforge.com/developing/story/lightweight-device-detection-php[/URL]

Member Avatar for chrishea
0
122
Member Avatar for racertim

If I was going to take a screenshot,I would use the Print Screen or Snipping Tool facilities in Windows. I don't understand why you would want to do this in PHP. If you are running under Linux then I'm sure there are similar facilities available. It's a manual process of …

Member Avatar for pritaeas
0
440
Member Avatar for phaedrusGhost

Have a look at this: [URL="http://www.w3schools.com/PHP/php_file_upload.asp"]http://www.w3schools.com/PHP/php_file_upload.asp[/URL]

Member Avatar for phaedrusGhost
0
134
Member Avatar for niths

You will need to use javascript. have a look at the following item as a start: [URL="http://www.webreference.com/programming/javascript/mk/column2/"]http://www.webreference.com/programming/javascript/mk/column2/[/URL] There are some JQuery drag and drop plugins here: [URL="http://plugins.jquery.com/project/Plugins/category/45"]http://plugins.jquery.com/project/Plugins/category/45[/URL]

Member Avatar for chrishea
0
67
Member Avatar for JameB

Have a look at the PHP mail command. If you do a search you can find libraries that support this and examples.

Member Avatar for rajarajan2017
0
81
Member Avatar for Tyler78701

This is usually the result of unpaired braces (e.g. on an iF or While) or possibly unpaired quotes for a string. The problem could be anywhere in your code so you have to go through the module and look for that type of situation or compare the current version with …

Member Avatar for vibhaJ
0
80
Member Avatar for maria99

At a minimum, you need some sort of text editor to use in writing your code. There are other useful free tools out there. You can see my list at: SNIP

Member Avatar for jaikanth123
0
157
Member Avatar for stevenm84

There are quite a few systems that do this sort of thing but I don't know if any of them are free. At a minimum it may give you some ideas if you wish to continue building your own: [URL="http://www.capterra.com/school-administration-software"]http://www.capterra.com/school-administration-software[/URL]

Member Avatar for stevenm84
0
102
Member Avatar for Th3nutz

I'm not sure exactly what you are trying to accomplish but if you need to run a program on a timed basis, then you need to have a look at Cron. It's usually available on most servers.

Member Avatar for xylude
0
107
Member Avatar for theighost

This works: [code] http://checkurl.phishtank.com/checkurl/index.php?url=http://.google.com [/code]

Member Avatar for theighost
0
3K
Member Avatar for rahul95

How you go about it depends on how you learn best. Some people need to have a course with an instructor, others can do tutorials and others like me prefer to jump in an thrash about and go looking for the info as they need it. [URL="http://www.w3schools.com/"]W3Schools[/URL] provides good tutorials …

Member Avatar for gaurang4
0
134
Member Avatar for iWalletMobile

The answer is probably yes but the question isn't totally clear. If this is your database, then at the start of the program, you read the database, determine if they did it before or not and then display the appropriate page. Could anything be simpler? There may be more to …

Member Avatar for crivion
0
100
Member Avatar for phplover

If you have a function (definition) in the executable path of your code more than once you will get an error. If you will potentially have that situation and want to avoid the problem rather than re-engineer your code, use: [code=php] if (!function_exists(xxx) { function xxx( ) { ... } …

Member Avatar for phplover
0
113
Member Avatar for iWalletMobile

It's pretty simple and you [B][U]don't[/U][/B] need to pay for a gateway. You can send an SMS message just like an email. The wrinkle is that the email format differs between cell phone providers. When you want to do an SMS authentication, you must ask the person (on the website) …

Member Avatar for iWalletMobile
0
174
Member Avatar for phplover

If you use a relative address like include "inc/xxxx.php" or one that points to the root like $_SERVER['DOCUMENT_ROOT']... I don't see why you would need to change it. I don't understand why you would anticipate a need to totally change the structure. Once you define a need to have $_SERVER['DOCUMENT_ROOT']."/inc/top.inc.php" …

Member Avatar for phplover
0
173
Member Avatar for surfgrommett

You created the query statements but you didn't actually call MySQL to take action on them. You need a mysql_query statement to execute each query.

Member Avatar for metalix
0
311
Member Avatar for gbudiman

If multiple people could potentially update the file in parallel and then try to upload it to the server, you will eventually have the problem of one user overwriting someone else's changes. You could build an application to control this or maybe find an open source program that will do …

Member Avatar for chrishea
0
184
Member Avatar for dragonfyre2825

You may have a cooling problem. When you run on the battery, it is no-doubt running on a lower power setting. You could try changing your power settings to run much leaner when on AC power. Then you can see if it still shuts down on AC. Obviously, cleaning the …

Member Avatar for 6yrGSD
0
176
Member Avatar for iWalletMobile

So what is the issue? If you display another page within the iframe you are still on the original page and that address should still show in the address bar.

Member Avatar for iWalletMobile
0
115
Member Avatar for fouzia Qayyum

Please fix your post to use code tags properly. Your code is showing up as text.

Member Avatar for chrishea
0
88
Member Avatar for Srinivasa007

Good luck getting an answer! First: You have dumped a large amount of code into your post without code tags so that makes it difficult for anyone to make sense of the code. Second: Debugging is part of programming. You give no indication as to what you have already done …

Member Avatar for chrishea
-2
106
Member Avatar for SCoder1

Your question is vague and might be interpreted in different ways depending on how much importance that you put on 'properly'. You can easily mix php and html in a PHP module. Just end the PHP section with a ?> and start your html. You can go back and forth …

Member Avatar for Ankit_Parmar
0
122
Member Avatar for parkie

You can do a session_start at the beginning of the module and then add to a session counter (e.g. $_SESSION['tries']++;).You can check the value of the counter and if it is over the limit, you can print an error message and exit.

Member Avatar for parkie
0
108
Member Avatar for ptemedia

You could separate your fields with a comma or some other unique character (when the file is written) and then use explode when you read the line to separate the fields.

Member Avatar for Excizted
0
236
Member Avatar for sarminatorius

If you have some sections that should be standard on every page (like a header or footer) then you can define those parts of the page as separate PHP files and use include / require to make them part of every page that needs them.

Member Avatar for chrishea
0
86
Member Avatar for srdva59

I see that you posted the same question at: [URL="http://forums.digitalpoint.com/showthread.php?t=1858971"]http://forums.digitalpoint.com/showthread.php?t=1858971[/URL] A Google search of unix2data brings up your two posts and nothing else. What is unix2data?

Member Avatar for almostbob
0
101
Member Avatar for garymac09

Have a look at this: [URL="http://forums.techguy.org/windows-xp/799007-vaio-laptop-constantly-restarting.html"]http://forums.techguy.org/windows-xp/799007-vaio-laptop-constantly-restarting.html[/URL]

Member Avatar for garymac09
0
147
Member Avatar for 5myl

You are implying that you had another video card and that was working (?) and then you installed the GEForce 8600 and it is no longer working. If that is not correct, then you need to provide a more thorough explanation if you expect to get any help. If it …

Member Avatar for chrishea
0
160
Member Avatar for selfgov2000

See if this helps: [URL="http://social.answers.microsoft.com/Forums/en/vistawu/thread/55baee78-abb0-4610-958b-35c5b6a6202d"]http://social.answers.microsoft.com/Forums/en/vistawu/thread/55baee78-abb0-4610-958b-35c5b6a6202d[/URL]

Member Avatar for chrishea
0
46
Member Avatar for janort

You need to provide more information on when this occurs (what happens leading up to it) and what have you already tried to recover from it. If you took it to a technician, did you ask him to fix this problem and if so, what did he tell you? If …

Member Avatar for chrishea
0
42
Member Avatar for subhashchndr

There are PC utilities that do a good job of this. You may be able to do it through PHP but it may not give you as good and accurate a result as you can get from the free PC utilities. If you are determined to try it, you can …

Member Avatar for chrishea
0
85
Member Avatar for iWalletMobile

If they are entering the code that you send them into a box in your online application (as I would expect) then you don't need to pay for a gateway service. You just need to have them enter their cell number and choose from a list of cell phone service …

Member Avatar for chrishea
0
259
Member Avatar for wish02

To export to Word, Excel and other formats see: [URL="http://innovationsdesign.net/wb_2.7/pages/tech-resources/downloads/desktop_write.php"]Desktop Write[/URL] To create a file as a PDF, you can use built in support and open-source classes to construct your file OR, you can create the output as HTML and then convert to PDF. I have used this latter approach …

Member Avatar for wish02
0
100
Member Avatar for dan_t

It looks as if your first attempt to post your code didn't work correctly as it has all come out as text. This makes it more difficult for anyone to help you. Suggest that you try it again.

Member Avatar for dan_t
0
143
Member Avatar for Martsoul
Member Avatar for chrishea
0
125
Member Avatar for Designer_101

See: [URL="http://forums.codewalkers.com/php-coding-7/delete-all-files-in-directory-714057.html"]http://forums.codewalkers.com/php-coding-7/delete-all-files-in-directory-714057.html[/URL]

Member Avatar for digital-ether
0
133
Member Avatar for justinmyoung

Something like <input name="item_price_1" type="hidden" value=$due /> should work.

Member Avatar for justinmyoung
0
164
Member Avatar for sesta

You can only retrieve the value from the database once you have stored it there. The way your question is stated, it isn't clear if you are asking how to save the value or how to retrieve it. The value of the checkbox (whatever you defined for the value if …

Member Avatar for chrishea
0
108
Member Avatar for tokenjoker187

You cannot have any output prior to the session start. Thus, you can't echo anything or have any text coming from any html. If you haven't done this intentionally, it can sometimes be the result of a blank line (e.g. an empty line before the intial <?PHP)

Member Avatar for tokenjoker187
0
186
Member Avatar for rajeesh_rsn

In this format it would normally be trying to execute the index module in the folder called 120. I don't believe that this has anything to do with passing variables.

Member Avatar for Manuz
0
117
Member Avatar for ajwei810192

For starters, you are opening the file with an 'a' which is write only then you are trying to read it and that should fail. It seems that you are trying to insert into the file rather than append. If that is the case, you could try another option like …

Member Avatar for ajwei810192
0
158
Member Avatar for asher2010

There isn't one solution for all of the file types. What type of file do you want to upload?

Member Avatar for chrishea
0
49
Member Avatar for jhudson0219

The first thing to check is how you saved the module. If it doesn't have a .php suffix (xxxx.php) then it won't be recognized as a php module and your php code won't be executed.

Member Avatar for jhudson0219
0
127
Member Avatar for big24fan

The most straightforward way is to use a table: 1. Define the table before the foreach statement (e.g. $results .= "<table width=95%>") 2. You may want to define a header row (e.g. $results .= "<tr><th>xxxx<th>yyyy...) 3. Keep a count of what column you are processing. When you get to column …

Member Avatar for chrishea
0
74
Member Avatar for dalip_007

You can start with this: [URL="http://www.victorchen.info/accessing-php-class-variables-and-functions/"]http://www.victorchen.info/accessing-php-class-variables-and-functions/[/URL]

Member Avatar for dalip_007
0
147
Member Avatar for dsul

You won't see the php when you view the source. The php executes on the server and all you see in the browser is the html and javascript if there is any. In this case, the "Hello World" string should appear after the <Body> statement. There are lots of things …

Member Avatar for chrishea
0
181

The End.